CVE-2025-40331: Linux kernel · sctp: Prevent TOCTOU out-of-bounds write For the following path not holding the
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 8% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 9 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
AI-suggested
A fix for this vulnerability is available in the Linux kernel. Users and administrators should apply the official Linux kernel updates that address CVE-2025-40331 to remediate this issue. Patch status is not explicitly confirmed in the provided data, so verify with the Linux kernel vendor advisory for the exact fixed versions and update accordingly.
Description
A high-severity vulnerability in the Linux kernel SCTP implementation involves a time-of-check to time-of-use (TOCTOU) out-of-bounds write. The issue occurs in the sctp_diag_dump() path when the address list grows between buffer allocation and write, potentially leading to memory corruption. This vulnerability has been resolved in the Linux kernel.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40331 (opens in a new tab)
- git.kernel.org/stable/c/2fe08fcaacb7eb019fa9c81db39b2214de216677 (opens in a new tab)
- git.kernel.org/stable/c/3006959371007fc2eae4a078f823c680fa52de1a (opens in a new tab)
- git.kernel.org/stable/c/584307275b2048991b2e8984962189b6cc0a9b85 (opens in a new tab)
- git.kernel.org/stable/c/72e3fea68eac8d088e44c3dd954e843478e9240e (opens in a new tab)
- git.kernel.org/stable/c/89eac1e150dbd42963e13d23828cb8c4e0763196 (opens in a new tab)
- git.kernel.org/stable/c/95aef86ab231f047bb8085c70666059b58f53c09 (opens in a new tab)
- git.kernel.org/stable/c/b106a68df0650b694b254427cd9250c04500edd3 (opens in a new tab)
- git.kernel.org/stable/c/c9119f243d9c0da3c3b5f577a328de3e7ffd1b42 (opens in a new tab)