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.
Published: 2026-08-15
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SCTP_DIAG endpoint dumping in the Linux kernel traversed endpoint address lists without holding the socket lock, leading to a race condition. While the routine counted addresses under RCU protection, concurrent socket operations could modify the lists, causing fewer entries to be copied and potentially leaking uninitialized kernel memory to user space. This race condition results in information disclosure (CWE-824).

Affected Systems

The vulnerability affects all Linux kernels derived from the mainline in which the SCTP diagnostics code is present, prior to the application of the fixes referenced in the advisory commit set. Distributions shipping these kernels before the patch are impacted, with no specific version limiting the scope beyond the presence of the diagnostic routine.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity; however, the EPSS score of less than 1% and omission from the CISA KEV catalog suggest a low likelihood of current exploitation. The likely attack vector is via the SCTP netlink interface used for diagnostics, which probably requires privileged access; this assumption is inferred from the need to invoke dump operations. If an attacker can trigger the dump, the race can leak kernel data, exposing internal memory contents to the attacker, but no direct code execution or privilege escalation results. Thus, the risk is primarily information disclosure with low exploitation probability.

Generated by OpenCVE AI on August 22, 2026 at 05:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that incorporates the SCTP diagnostics fix.
  • Restrict access to the SCTP diagnostic netlink interface so only privileged users can invoke dumps.
  • Monitor kernel logs for WARN_ON_ONCE messages that may indicate inconsistent address counts or race conditions.

Generated by OpenCVE AI on August 22, 2026 at 05:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 04:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-244
CWE-362

Thu, 20 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-824
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sat, 15 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-244
CWE-362

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
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.
Title sctp: hold socket lock when dumping endpoints in sctp_diag
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:14:49.557Z

Reserved: 2026-08-09T03:40:39.931Z

Link: CVE-2026-72447

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:18.600

Modified: 2026-08-17T06:19:12.170

Link: CVE-2026-72447

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72447 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T05:45:05Z

Weaknesses
  • CWE-824

    Access of Uninitialized Pointer