Skip to content
CVE Ledger
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • Data statusPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
  • Support the projectPage
Back

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

Timeline

  1. ID reserved

    By Linux

  2. · 8 months later

    Published

  3. · 8 months later

    Record updated

Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.

Scores

CVSS scores of CVE-2025-40331, by who scored it
Scored byCVSSScoreVector
LinuxCNA (assigner)3.1High7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVDNVD · Deferred3.1High7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS (exploitation in 30 days)
0.20% · top 90% of all CVEs (9 Nov 2026)
CISA SSVC
Exploitation: none · Automatable: no · Technical impact: partial
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.

Affected products

  • Linux · Linux

    • affected 8f840e47f190cbe61a96945c13e9551048d42cef – < b106a68df0650b694b254427cd9250c04500edd3
    • affected 8f840e47f190cbe61a96945c13e9551048d42cef – < 3006959371007fc2eae4a078f823c680fa52de1a
    • affected 8f840e47f190cbe61a96945c13e9551048d42cef – < 72e3fea68eac8d088e44c3dd954e843478e9240e
    • affected 8f840e47f190cbe61a96945c13e9551048d42cef – < 584307275b2048991b2e8984962189b6cc0a9b85
    • affected 8f840e47f190cbe61a96945c13e9551048d42cef – < c9119f243d9c0da3c3b5f577a328de3e7ffd1b42
    • affected 8f840e47f190cbe61a96945c13e9551048d42cef – < 2fe08fcaacb7eb019fa9c81db39b2214de216677
    • affected 8f840e47f190cbe61a96945c13e9551048d42cef – < 89eac1e150dbd42963e13d23828cb8c4e0763196
    • affected 8f840e47f190cbe61a96945c13e9551048d42cef – < 95aef86ab231f047bb8085c70666059b58f53c09
  • Linux · Linux

    • affected 4.7
    • unaffected < 4.7
    • unaffected 5.4.302 – ≤ 5.4.*
    • unaffected 5.10.247 – ≤ 5.10.*
    • unaffected 5.15.197 – ≤ 5.15.*
    • unaffected 6.1.159 – ≤ 6.1.*
    • unaffected 6.6.117 – ≤ 6.6.*
    • unaffected 6.12.58 – ≤ 6.12.*
    • unaffected 6.17.8 – ≤ 6.17.*
    • unaffected 6.18 – ≤ *

References

8

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2025-40331 badge
[![CVE-2025-40331](https://cveledger.app/badge/CVE-2025-40331.svg)](https://cveledger.app/cve/CVE-2025-40331)

Record last updated .