Back to CVE catalog
CVE-2025-40331

sctp: Prevent TOCTOU out-of-bounds write

Linux Linux

At a glance

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

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v3.1

7.8High
Published:
Updated:
EPSS:
0.202%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Local

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:LinuxLinuxAffected versions:
4.7Show full version range for Linux
  • Other versions are affected by default; consult the source for exceptions.
  • Other source statuses: 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

Git commit ranges (source code)

  • From commit 8f840e47f190cbe61a96945c13e9551048d42cef; before commit b106a68df0650b694b254427cd9250c04500edd3
  • From commit 8f840e47f190cbe61a96945c13e9551048d42cef; before commit 3006959371007fc2eae4a078f823c680fa52de1a
  • From commit 8f840e47f190cbe61a96945c13e9551048d42cef; before commit 72e3fea68eac8d088e44c3dd954e843478e9240e
  • From commit 8f840e47f190cbe61a96945c13e9551048d42cef; before commit 584307275b2048991b2e8984962189b6cc0a9b85
  • From commit 8f840e47f190cbe61a96945c13e9551048d42cef; before commit c9119f243d9c0da3c3b5f577a328de3e7ffd1b42
  • From commit 8f840e47f190cbe61a96945c13e9551048d42cef; before commit 2fe08fcaacb7eb019fa9c81db39b2214de216677
  • From commit 8f840e47f190cbe61a96945c13e9551048d42cef; before commit 89eac1e150dbd42963e13d23828cb8c4e0763196
  • From commit 8f840e47f190cbe61a96945c13e9551048d42cef; before commit 95aef86ab231f047bb8085c70666059b58f53c09
Vendor:Red HatRed Hat Enterprise Linux 10Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux 8Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux 9Affected versions:Source does not specify a version range
Vendor:SUSESLES-LTSS-TERADATA 15 SP2Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise Desktop 15 SP6Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise High Availability Extension 15 SP3Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise High Performance Computing 12 SP4Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise High Performance Computing 15Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise High Performance Computing 15 SP1Affected versions:Source does not specify a version range

1–10 of 35 · Page 1 of 4

CVSS scores and metrics5
Linux · CVE List / CNA (cna)Primary7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
416baaa9-dc9f-4396-8d5f-8c081fb06d67 · NVD (Secondary)7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVE-2025-40331 · OSV (source-vector)7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat · Red Hat VEX (adp)4.7 / 10MediumCVSS 3.1Details
Attack complexity
High
Confidentiality
None
Integrity
None
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
SUSE · SUSE VEX (adp)5.5 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
None
Integrity
None
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories16

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences