CVE-2025-40331

sctp: Prevent TOCTOU out-of-bounds write

HIGH
7.8
CVSS Score
Published: December 9, 2025 at 04:09 AM UTC
Updated: October 14, 2026 at 10:10 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: sctp: Prevent TOCTOU out-of-bounds write For the following path not holding the sock lock, sctp_diag_dump() -> sctp_for_each_endpoint() -> sctp_ep_dump() make sure not to exceed bounds in case the address list has grown between buffer allocation (time-of-check) and write (time-of-use).

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.78f840e47f190cbe61a96945c13e9551048d42cef
Vendor states this is fixed in 2fe08fcaacb7eb019fa9c81db39b2214de216677 (fixed)
Vendor states this is fixed in 3006959371007fc2eae4a078f823c680fa52de1a (fixed)
Vendor states this is fixed in 584307275b2048991b2e8984962189b6cc0a9b85 (fixed)
Vendor states this is fixed in 72e3fea68eac8d088e44c3dd954e843478e9240e (fixed)
Vendor states this is fixed in 89eac1e150dbd42963e13d23828cb8c4e0763196 (fixed)
Vendor states this is fixed in 95aef86ab231f047bb8085c70666059b58f53c09 (fixed)
Vendor states this is fixed in b106a68df0650b694b254427cd9250c04500edd3 (fixed)
Vendor states this is fixed in c9119f243d9c0da3c3b5f577a328de3e7ffd1b42 (fixed)
Vendor states this is fixed in 4.7 (unaffected)
Vendor states this is fixed in 5.10.247 (unaffected)
Vendor states this is fixed in 5.15.197 (unaffected)
Vendor states this is fixed in 5.4.302 (unaffected)
Vendor states this is fixed in 6.1.159 (unaffected)
Vendor states this is fixed in 6.12.58 (unaffected)
Vendor states this is fixed in 6.17.8 (unaffected)
Vendor states this is fixed in 6.18 (unaffected)
Vendor states this is fixed in 6.6.117 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card