Bug 2420422 (CVE-2025-40331) - CVE-2025-40331 kernel: sctp: Prevent TOCTOU out-of-bounds write
Summary: CVE-2025-40331 kernel: sctp: Prevent TOCTOU out-of-bounds write
Keywords:
Status: NEW
Alias: CVE-2025-40331
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-09 05:02 UTC by OSIDB Bzimport
Modified: 2025-12-11 18:32 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-09 05:02:18 UTC
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).


Note You need to log in before you can comment on or make changes to this bug.