CVE-2025-40331 — Time-of-check Time-of-use (TOCTOU) Race Condition in Linux
Severity
7.8HIGHOSV
OSV3.2
No vectorEPSS
0.1%
top 79.04%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedDec 9
Latest updateApr 13
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 Packages7 packages
▶CVEListV5linux/linux8f840e47f190cbe61a96945c13e9551048d42cef — b106a68df0650b694b254427cd9250c04500edd3+8