CVE-2025-40331: Linux kernel · sctp: Prevent TOCTOU out-of-bounds write
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High · fixed in 5.15.0-1103.110~20.04.1 : patch Linux kernel soon.
Data as of 26 Oct 2026, 17:16 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.
- Patch
- Available – fixed in 5.15.0-1103.110~20.04.1, 5.15.0-1110.119~20.04.1, 5.15.0-1103.112~20.04.1 +69
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 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10linuxpkg:deb/ubuntu/linux?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10linux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-oraclepkg:deb/ubuntu/linux-oracle?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and should be applied promptly. The fix is included in the Ubuntu security update USN-8029-1, which updates the linux-azure kernel to versions beyond the affected ones. Systems running affected versions should upgrade to the fixed kernel releases as specified in the advisory. No additional mitigations are indicated by the vendor advisory.
Description
A time-of-check to time-of-use (TOCTOU) vulnerability in the Linux kernel SCTP subsystem was resolved. The flaw involved an out-of-bounds write when the address list grew between buffer allocation and write operations in sctp_diag_dump() and related functions. This could lead to memory corruption. The vulnerability affects specific linux-azure kernel versions prior to certain patch releases. A fix is available as part of a broader Linux kernel security update.
References
- ubuntu.com/security/CVE-2025-40331 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-40331 (opens in a new tab)
- git.kernel.org/linus/95aef86ab231f047bb8085c70666059b58f53c09 (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)
- ubuntu.com/security/notices/USN-8029-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8030-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8048-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-8095-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8096-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8100-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8095-2 (opens in a new tab)