U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2025-40331 Detail

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).


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].

URL Source(s) Tag(s)
https://git.kernel.org/stable/c/2fe08fcaacb7eb019fa9c81db39b2214de216677 kernel.org
https://git.kernel.org/stable/c/3006959371007fc2eae4a078f823c680fa52de1a kernel.org
https://git.kernel.org/stable/c/584307275b2048991b2e8984962189b6cc0a9b85 kernel.org
https://git.kernel.org/stable/c/72e3fea68eac8d088e44c3dd954e843478e9240e kernel.org
https://git.kernel.org/stable/c/89eac1e150dbd42963e13d23828cb8c4e0763196 kernel.org
https://git.kernel.org/stable/c/95aef86ab231f047bb8085c70666059b58f53c09 kernel.org
https://git.kernel.org/stable/c/b106a68df0650b694b254427cd9250c04500edd3 kernel.org
https://git.kernel.org/stable/c/c9119f243d9c0da3c3b5f577a328de3e7ffd1b42 kernel.org

Weakness Enumeration

CWE-ID CWE Name Source

Change History

1 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2025-40331
NVD Published Date:
12/09/2025
NVD Last Modified:
12/09/2025
Source:
kernel.org