sctp: Prevent TOCTOU out-of-bounds write
Published Dec 9, 2025
7.8
HIGHCVSS 3.1
EPSS 0.19%
Description
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).
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 4.7StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<4.7
- Version 5.10.247StatusunaffectedConstraints<=5.10.*
- Version 5.15.197StatusunaffectedConstraints<=5.15.*
- Version 5.4.302StatusunaffectedConstraints<=5.4.*
- Version 6.1.159StatusunaffectedConstraints<=6.1.*
- Version 6.12.58StatusunaffectedConstraints<=6.12.*
- Version 6.17.8StatusunaffectedConstraints<=6.17.*
- Version 6.18StatusunaffectedConstraints<=*
- Version 6.6.117StatusunaffectedConstraints<=6.6.*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| |||||||||||||||||||||||||||||||||
| Linux | Linux | affected |
|
No data.
No data.
Red Hat Enterprise Linux 10
kernel
Affected
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Affected
Red Hat Enterprise Linux 8
kernel-rt
Affected
Red Hat Enterprise Linux 9
kernel
Affected
Red Hat Enterprise Linux 9
kernel-rt
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Jun 16, 2026 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2025–2026- EPSS v4
- EPSS v5
Percentile over time
- EPSS v4
- EPSS v5
Table of values (3 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.19% (0.00188) | 7.60th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.20% (0.00201) | 10.06th | v5 (v2026.06.15) |
| Dec 9, 2025 | 0.02% (0.00024) | 5.79th | v4 (v2025.03.14) |
References (13)
- https://access.redhat.com/security/cve/CVE-2025-40331 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2420422 Issue Tracking
- https://git.kernel.org/stable/c/2fe08fcaacb7eb019fa9c81db39b2214de216677
- https://git.kernel.org/stable/c/3006959371007fc2eae4a078f823c680fa52de1a
- https://git.kernel.org/stable/c/584307275b2048991b2e8984962189b6cc0a9b85
- https://git.kernel.org/stable/c/72e3fea68eac8d088e44c3dd954e843478e9240e
- https://git.kernel.org/stable/c/89eac1e150dbd42963e13d23828cb8c4e0763196
- https://git.kernel.org/stable/c/95aef86ab231f047bb8085c70666059b58f53c09
- https://git.kernel.org/stable/c/b106a68df0650b694b254427cd9250c04500edd3
- https://git.kernel.org/stable/c/c9119f243d9c0da3c3b5f577a328de3e7ffd1b42
- https://lore.kernel.org/linux-cve-announce/2025120910-CVE-2025-40331-ee3c@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2025-40331
- https://www.cve.org/CVERecord?id=CVE-2025-40331
Change history (0)
No recorded changes yet.