{"id":"CVE-2026-72447","state":"PUBLISHED","title":"sctp: hold socket lock when dumping endpoints in sctp_diag","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsctp: hold socket lock when dumping endpoints in sctp_diag\n\nSCTP_DIAG endpoint dumping was traversing endpoint address lists without\nholding lock_sock(), while those lists could change concurrently via\nsocket operations (e.g., bindx changes). This creates a race where\nnla_reserve() counts addresses under RCU protection, but the subsequent\ncopy may see fewer entries, potentially leaking uninitialized memory to\nuserspace.\n\nFix this by:\n\n- Taking a reference on each endpoint during hash traversal\n- Moving socket operations (lock_sock()) outside read_lock_bh()\n- Serializing address list access during dump\n- Reworking sctp_for_each_endpoint() to support restart-based traversal\n  with (net, pos) tracking\n\nAlso:\n\n- Add WARN_ON_ONCE() for inconsistent address counts\n- Fix idiag_states filtering for LISTEN vs association cases\n- Skip dumping endpoints being freed (ep->base.dead)\n- Move dump position tracking into iterator, removing cb->args[4] and\n  its comment for sctp_ep_dump().,\n- Update the comment for cb->args[4] and remove the comment for unused\n  cb->args[5] for sctp_sock_dump().\n\nNote: traversal is restart-based and may re-scan buckets multiple times,\nbut this is acceptable due to small bucket sizes and required to support\nsleeping-safe callbacks.\n\nThis issue was reported by Nico Yip (@_cyeaa_) working with TrendAI Zero\nDay Initiative.","publishedAt":"2026-08-15T05:56:57.089Z","updatedAt":"2026-08-17T05:14:49.557Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"f98c294a9369b6fe89e652c06357ee594be4dfa2","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"8b38e3dcfde3077dbc03eb8ef88e03cc19f70b8a","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"ec3c2d59a192e17e1014ba71afc368ba162ecac3","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"722576aba0a6d9423714550b1c03239b0f0def77","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"abe7f8828e6ac8be858870c2bf836258844f97d5","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"207bb4ce8fe7de961ae7bb33569ad2cd61f44954","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"f09a245f33e567b604efa1960b7a2d25dd9c8713","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"7d8297e26b4e20b5d1c3c3fe51fe81a1c7fbc823","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/sctp/sctp.h","net/sctp/diag.c","net/sctp/socket.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.7","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/sctp/sctp.h","net/sctp/diag.c","net/sctp/socket.c"]}],"references":["https://git.kernel.org/stable/c/f98c294a9369b6fe89e652c06357ee594be4dfa2","https://git.kernel.org/stable/c/8b38e3dcfde3077dbc03eb8ef88e03cc19f70b8a","https://git.kernel.org/stable/c/ec3c2d59a192e17e1014ba71afc368ba162ecac3","https://git.kernel.org/stable/c/722576aba0a6d9423714550b1c03239b0f0def77","https://git.kernel.org/stable/c/abe7f8828e6ac8be858870c2bf836258844f97d5","https://git.kernel.org/stable/c/207bb4ce8fe7de961ae7bb33569ad2cd61f44954","https://git.kernel.org/stable/c/f09a245f33e567b604efa1960b7a2d25dd9c8713","https://git.kernel.org/stable/c/7d8297e26b4e20b5d1c3c3fe51fe81a1c7fbc823"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/72xxx/CVE-2026-72447.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-72447","state":"PUBLISHED","datePublished":"2026-08-15T05:56:57.089Z","dateUpdated":"2026-08-17T05:14:49.557Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-09T03:40:39.931Z"},"containers":{"cna":{"title":"sctp: hold socket lock when dumping endpoints in sctp_diag","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsctp: hold socket lock when dumping endpoints in sctp_diag\n\nSCTP_DIAG endpoint dumping was traversing endpoint address lists without\nholding lock_sock(), while those lists could change concurrently via\nsocket operations (e.g., bindx changes). This creates a race where\nnla_reserve() counts addresses under RCU protection, but the subsequent\ncopy may see fewer entries, potentially leaking uninitialized memory to\nuserspace.\n\nFix this by:\n\n- Taking a reference on each endpoint during hash traversal\n- Moving socket operations (lock_sock()) outside read_lock_bh()\n- Serializing address list access during dump\n- Reworking sctp_for_each_endpoint() to support restart-based traversal\n  with (net, pos) tracking\n\nAlso:\n\n- Add WARN_ON_ONCE() for inconsistent address counts\n- Fix idiag_states filtering for LISTEN vs association cases\n- Skip dumping endpoints being freed (ep->base.dead)\n- Move dump position tracking into iterator, removing cb->args[4] and\n  its comment for sctp_ep_dump().,\n- Update the comment for cb->args[4] and remove the comment for unused\n  cb->args[5] for sctp_sock_dump().\n\nNote: traversal is restart-based and may re-scan buckets multiple times,\nbut this is acceptable due to small bucket sizes and required to support\nsleeping-safe callbacks.\n\nThis issue was reported by Nico Yip (@_cyeaa_) working with TrendAI Zero\nDay Initiative."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"f98c294a9369b6fe89e652c06357ee594be4dfa2","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"8b38e3dcfde3077dbc03eb8ef88e03cc19f70b8a","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"ec3c2d59a192e17e1014ba71afc368ba162ecac3","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"722576aba0a6d9423714550b1c03239b0f0def77","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"abe7f8828e6ac8be858870c2bf836258844f97d5","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"207bb4ce8fe7de961ae7bb33569ad2cd61f44954","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"f09a245f33e567b604efa1960b7a2d25dd9c8713","versionType":"git"},{"version":"8f840e47f190cbe61a96945c13e9551048d42cef","status":"affected","lessThan":"7d8297e26b4e20b5d1c3c3fe51fe81a1c7fbc823","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/sctp/sctp.h","net/sctp/diag.c","net/sctp/socket.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.7","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/sctp/sctp.h","net/sctp/diag.c","net/sctp/socket.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f98c294a9369b6fe89e652c06357ee594be4dfa2"},{"url":"https://git.kernel.org/stable/c/8b38e3dcfde3077dbc03eb8ef88e03cc19f70b8a"},{"url":"https://git.kernel.org/stable/c/ec3c2d59a192e17e1014ba71afc368ba162ecac3"},{"url":"https://git.kernel.org/stable/c/722576aba0a6d9423714550b1c03239b0f0def77"},{"url":"https://git.kernel.org/stable/c/abe7f8828e6ac8be858870c2bf836258844f97d5"},{"url":"https://git.kernel.org/stable/c/207bb4ce8fe7de961ae7bb33569ad2cd61f44954"},{"url":"https://git.kernel.org/stable/c/f09a245f33e567b604efa1960b7a2d25dd9c8713"},{"url":"https://git.kernel.org/stable/c/7d8297e26b4e20b5d1c3c3fe51fe81a1c7fbc823"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T05:14:49.557Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"5.10.261"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"5.15.212"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"6.1.178"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"6.6.145"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}