Skip to main content

Linux Kernel CVE-2025-40331

HIGH
2025-12-09 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain local low-privileged shell
  2. Delivery
    Load/ensure SCTP module active
  3. Exploit
    Open NETLINK_SOCK_DIAG SCTP dump request
  4. Install
    Concurrently grow endpoint address list
  5. C2
    Win TOCTOU race
  6. Execute
    Out-of-bounds kernel heap write
  7. Impact
    Memory corruption, DoS or privilege escalation

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access to a Linux host where the SCTP subsystem is present/loaded and the sock_diag SCTP dump path (sctp_diag_dump → sctp_for_each_endpoint → sctp_ep_dump) is reachable by the attacker. The concrete precondition is a race: the SCTP endpoint's bound-address list must GROW between the buffer's time-of-check (allocation) and time-of-use (write), so the attacker must concurrently add addresses to an SCTP socket while triggering the diag dump - a purely default, single-shot dump on a static address list does not overflow. Limiting factors: attacker must already have local execution (AV:L), must hold at least low privileges to open the diag socket (CVSS PR:L; note some systems gate sock_diag behind CAP_NET_ADMIN, further limiting reach), must win a timing window (making practical AC High despite the feed's AC:L), and the target must actually use/load SCTP, which many general-purpose deployments do not.

Impact

Signals are broadly consistent and point to a moderate, not urgent, priority. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H = 7.8) indicates a local, low-privilege attack with high impact to confidentiality, integrity, and availability - a plausible kernel memory-corruption/privilege-escalation or DoS primitive. However, the flaw is fundamentally a race condition, so real-world exploitation is harder than the feed's AC:L implies; a TOCTOU write depends on winning a timing window while the address list grows, which in practice warrants AC:H. EPSS is low (0.21%), the CVE is not on CISA KEV, and no POC is referenced, so there is no evidence of active or imminent widespread exploitation. Note a data gap: the CVSS lists PR:L, but whether SCTP endpoint diag dumps are reachable by fully unprivileged users or require CAP_NET_ADMIN on a given system materially changes reachability - verify the local netlink/diag access policy in your environment. Overall: patch on a normal kernel-update cadence rather than as an emergency.

Exploit ScenarioDerived

A local unprivileged (or low-privileged) user on a host with the SCTP module loaded opens a NETLINK_SOCK_DIAG socket and repeatedly requests an SCTP endpoint dump while, from another thread, rapidly binding additional addresses to an SCTP socket to grow the endpoint's address list. By winning the race between the kernel's buffer sizing and its address copy, the attacker triggers an out-of-bounds kernel heap write, corrupting adjacent memory to crash the system or, with careful heap grooming, work toward privilege escalation. No public POC is referenced, and success requires reliably hitting the TOCTOU window.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Local privilege-relevant out-of-bounds kernel write in the Linux kernel's SCTP subsystem lets an unprivileged local user corrupt kernel heap memory by exploiting a time-of-check/time-of-use (TOCTOU) gap in the SCTP diagnostic dump path (sctp_diag_dump → sctp_for_each_endpoint → sctp_ep_dump), which runs without holding the socket lock. Because the address list can grow between buffer allocation and the subsequent write, an attacker who races the dump against concurrent address additions can force a write past the allocated bounds, yielding potential memory corruption (CVSS 7.8, C/I/A High). There is no public exploit identified at time of analysis and EPSS is low (0.21%, 12th percentile), consistent with a race-dependent local flaw rather than a mass-exploited network bug.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the vendor/distribution kernel update that incorporates the referenced stable commits (git.kernel.org/stable/c/584307275b2048991b2e8984962189b6cc0a9b85 and the seven related commits) as soon as your distributor ships them, since the CVE feed provides commit hashes rather than a tagged release version. Until a patched kernel is deployed, reduce attack surface by disabling or blacklisting the SCTP module where it is not required (e.g. 'install sctp /bin/true' via modprobe, or unload if not in use) - trade-off: this breaks any application or telephony/SIGTRAN workload that relies on SCTP. Alternatively, restrict access to the sock_diag/inet_diag netlink interface (for example via CAP_NET_ADMIN gating or a seccomp/LSM policy that blocks NETLINK_SOCK_DIAG for untrusted local users) - trade-off: this can break legitimate socket-monitoring tooling such as ss and diagnostic agents. These controls only matter on hosts where local untrusted users exist.

Affected ProductsAI

The vulnerability affects the Linux kernel SCTP subsystem across multiple stable branches; the eight git.kernel.org/stable commit references indicate backports to several maintained longterm/stable series rather than a single version. No CPE strings, exact affected-version ranges, or distribution advisories were provided in the input, so precise vulnerable/fixed version boundaries per branch are not independently confirmed here. Fix commits are published upstream (e.g. https://git.kernel.org/stable/c/584307275b2048991b2e8984962189b6cc0a9b85 and the seven sibling commits under git.kernel.org/stable/c/). Only kernels with SCTP compiled/loaded and reachable via the sock_diag interface are exploitable.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the Linux kernel SCTP (Stream Control Transmission Protocol) implementation, specifically its integration with the sock_diag/inet_diag netlink introspection interface. When userspace requests an SCTP endpoint dump, the kernel walks all endpoints via sctp_for_each_endpoint() and serializes each endpoint's bound-address list in sctp_ep_dump(). This path does not hold the socket lock, so the number of addresses checked when the output buffer (skb) is sized can differ from the number present when the addresses are actually copied. That mismatch is a classic TOCTOU race (CWE-367) that results in an out-of-bounds write (CWE-787); the CVE feed lists the CWE as N/A but the description ('Prevent TOCTOU out-of-bounds write') and the 'Buffer Overflow' tag confirm the root-cause class. The fix bounds-checks the copy so a grown address list cannot exceed the allocated buffer.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local netlink access with low privileges (AV:L/PR:L); the TOCTOU race window makes reliable triggering hard (AC:H); kernel heap corruption yields high C/I/A within an unchanged scope.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 4.7 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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

Executive ViewAI

Why It Matters

CVE-2025-40331 is a high-severity local kernel memory corruption vulnerability in Linux SCTP that allows unprivileged local users to corrupt kernel heap memory through a race condition, potentially enabling privilege escalation. While no public exploits currently exist and EPSS scoring is low (0.2%), the flaw affects any Linux system with SCTP enabled and requires patch planning once available from vendors.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: restrict local system access through least-privilege access control and disable unnecessary local accounts, enforce mandatory access control (SELinux/AppArmor) in enforcing mode to constrain unprivileged process capabilities, disable SCTP protocol at kernel module level if not required, and implement audit logging to detect exploitation attempts.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Ubiquitous
Linux kernel runs on nearly all servers, cloud, and embedded systems
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Image SL-Micro Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.115 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.146 Affected
Container suse/sl-micro/6.0/toolbox:latest Affected

References

Advisories & patches
ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0263/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0278/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0281/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0293/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0315/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0316/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0317/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0350/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0369/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0411/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0617/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20207/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20220/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20228/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20477/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20479/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20498/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20520/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20564/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20772/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20794/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20819/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20845/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20872/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20876/ REF https://git.kernel.org/stable/c/2fe08fcaacb7eb019fa9c81db39b2214de216677 REF https://git.kernel.org/stable/c/3006959371007fc2eae4a078f823c680fa52de1a REF https://git.kernel.org/stable/c/584307275b2048991b2e8984962189b6cc0a9b85 REF https://git.kernel.org/stable/c/72e3fea68eac8d088e44c3dd954e843478e9240e REF https://git.kernel.org/stable/c/89eac1e150dbd42963e13d23828cb8c4e0763196 REF https://git.kernel.org/stable/c/95aef86ab231f047bb8085c70666059b58f53c09 REF https://git.kernel.org/stable/c/b106a68df0650b694b254427cd9250c04500edd3 REF https://git.kernel.org/stable/c/c9119f243d9c0da3c3b5f577a328de3e7ffd1b42

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy