# CVE-2026-72447: sctp: hold socket lock when dumping endpoints in sctp_diag

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-08-15T05:56:57.089Z
- Modified: 2026-11-06T17:19:44.627Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

sctp: hold socket lock when dumping endpoints in sctp_diag

SCTP_DIAG endpoint dumping was traversing endpoint address lists without
holding lock_sock(), while those lists could change concurrently via
socket operations (e.g., bindx changes). This creates a race where
nla_reserve() counts addresses under RCU protection, but the subsequent
copy may see fewer entries, potentially leaking uninitialized memory to
userspace.

Fix this by:

- Taking a reference on each endpoint during hash traversal
- Moving socket operations (lock_sock()) outside read_lock_bh()
- Serializing address list access during dump
- Reworking sctp_for_each_endpoint() to support restart-based traversal
  with (net, pos) tracking

Also:

- Add WARN_ON_ONCE() for inconsistent address counts
- Fix idiag_states filtering for LISTEN vs association cases
- Skip dumping endpoints being freed (ep->base.dead)
- Move dump position tracking into iterator, removing cb->args[4] and
  its comment for sctp_ep_dump().,
- Update the comment for cb->args[4] and remove the comment for unused
  cb->args[5] for sctp_sock_dump().

Note: traversal is restart-based and may re-scan buckets multiple times,
but this is acceptable due to small bucket sizes and required to support
sleeping-safe callbacks.

This issue was reported by Nico Yip (@_cyeaa_) working with TrendAI Zero
Day Initiative.

(As written by CVE List.)

## Affected

- Linux Linux: from 8f840e47f190cbe61a96945c13e9551048d42cef before f98c294a9369b6fe89e652c06357ee594be4dfa2; from 8f840e47f190cbe61a96945c13e9551048d42cef before 8b38e3dcfde3077dbc03eb8ef88e03cc19f70b8a; from 8f840e47f190cbe61a96945c13e9551048d42cef before ec3c2d59a192e17e1014ba71afc368ba162ecac3; from 8f840e47f190cbe61a96945c13e9551048d42cef before 722576aba0a6d9423714550b1c03239b0f0def77; from 8f840e47f190cbe61a96945c13e9551048d42cef before abe7f8828e6ac8be858870c2bf836258844f97d5; from 8f840e47f190cbe61a96945c13e9551048d42cef before 207bb4ce8fe7de961ae7bb33569ad2cd61f44954; from 8f840e47f190cbe61a96945c13e9551048d42cef before f09a245f33e567b604efa1960b7a2d25dd9c8713; from 8f840e47f190cbe61a96945c13e9551048d42cef before 7d8297e26b4e20b5d1c3c3fe51fe81a1c7fbc823; 4.7 (not affected: before 4.7; from 5.10.261 up to 5.10.*; from 5.15.212 up to 5.15.*; from 6.1.178 up to 6.1.*; from 6.6.145 up to 6.6.*; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## 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>

## Sources

- CVE List: [CVE-2026-72447](https://www.cve.org/CVERecord?id=CVE-2026-72447), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-72447](https://nvd.nist.gov/vuln/detail/CVE-2026-72447), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-72447 · Whole record: https://cve.day/CVE-2026-72447.json · Rebuilt by cve.day 2026-11-25T22:59:33.125Z
