0.0
NA
CVE-2025-40331
sctp: Prevent TOCTOU out-of-bounds write
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).

INFO

Published Date :

Dec. 9, 2025, 4:17 p.m.

Last Modified :

Dec. 9, 2025, 6:36 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2025-40331 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Apply the Linux kernel patch to prevent TOCTOU out-of-bounds writes in sctp.
  • Update the Linux kernel to the patched version.
  • Verify the sctp module is secured.
  • Monitor for any further related issues.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-40331 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-40331 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-40331 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-40331 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Dec. 09, 2025

    Action Type Old Value New Value
    Added 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).
    Added Reference https://git.kernel.org/stable/c/2fe08fcaacb7eb019fa9c81db39b2214de216677
    Added Reference https://git.kernel.org/stable/c/3006959371007fc2eae4a078f823c680fa52de1a
    Added Reference https://git.kernel.org/stable/c/584307275b2048991b2e8984962189b6cc0a9b85
    Added Reference https://git.kernel.org/stable/c/72e3fea68eac8d088e44c3dd954e843478e9240e
    Added Reference https://git.kernel.org/stable/c/89eac1e150dbd42963e13d23828cb8c4e0763196
    Added Reference https://git.kernel.org/stable/c/95aef86ab231f047bb8085c70666059b58f53c09
    Added Reference https://git.kernel.org/stable/c/b106a68df0650b694b254427cd9250c04500edd3
    Added Reference https://git.kernel.org/stable/c/c9119f243d9c0da3c3b5f577a328de3e7ffd1b42
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
No CVSS metrics available for this vulnerability.