Skip to main content

Linux Kernel CVE-2025-40139

HIGH
2025-11-12 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. Access
    Gain local unprivileged shell
  2. Delivery
    Create AF_SMC socket and call connect()
  3. Exploit
    Race concurrent dst/net_device free
  4. Execution
    Trigger use-after-free on dst->dev
  5. Impact
    Kernel crash or memory disclosure

Vulnerability Assessment

Exploitation Conditions

Requires local access with the ability to create an AF_SMC socket, and the kernel must be built with CONFIG_SMC and have the SMC subsystem active - this is the concrete prerequisite, since the vulnerable code executes only in the smc_clc_prfx_set() CLC handshake path during connect(). Exploitation is limited by the need to win a use-after-free race against concurrent destination-cache/net_device teardown (timing-dependent, not deterministic), by the requirement that SMC be enabled/in use (non-default on many general-purpose deployments), and by the local-only attack vector (PR:L, no remote reach).

Impact

Signals consistently point to a low-priority kernel hardening fix rather than an urgent threat. The CVSS vector (AV:L/AC:L/PR:L/UI:N, C:H/I:H/A:H, base 7.8) reflects the generic 'local UAF = high impact' convention the kernel CNA applies, but real-world exploitability is constrained: the flaw lives in the SMC handshake path, which requires the AF_SMC protocol to be compiled in (CONFIG_SMC) and actually used, and triggering the UAF depends on winning a race against concurrent dst teardown - realistically higher attack complexity than AC:L suggests. EPSS is 0.03% (10th percentile), it is not in CISA KEV, and no POC is known, so every exploitation signal is cold. The most likely practical impact is a local DoS (kernel oops) or a narrow info leak (consistent with the 'Information Disclosure' tag), not reliable privilege escalation. Net: patch on normal kernel-update cadence; this is not a drop-everything issue.

Exploit ScenarioDerived

A local unprivileged user opens an AF_SMC socket and repeatedly issues connect() calls while inducing routing/dst churn, racing to dereference a destination cache entry after it has been freed. Winning the race yields a use-after-free on the net_device pointer, most plausibly crashing the kernel (local DoS) or leaking adjacent kernel memory; no public POC is known and the race makes reliable exploitation non-trivial.

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

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

Alert me

AnalysisAIv3 – Jul 30, 2026

Local denial of service and potential information disclosure in the Linux kernel's SMC (Shared Memory Communications) subsystem arises because smc_clc_prfx_set() dereferences sk_dst_get(sk)->dev during connect() without holding RCU or RTNL, creating a use-after-free window on the destination cache entry. A local user opening an AF_SMC socket can trigger the freed dst->dev access, risking a kernel crash or leaked memory. No public exploit identified at time of analysis, EPSS is negligible (0.03%), and it is not on CISA KEV; the upstream fix switches to __sk_dst_get()/dst_dev_rcu() under rcu_read_lock().

Earlier versions of this analysis (2)
v2 Jul 30, 2026 - 09:04 cvss changed CVSS 7.8

Local privilege-adjacent memory corruption in the Linux kernel's SMC (Shared Memory Communications) subsystem stems from a use-after-free in smc_clc_prfx_set(), which runs during connect() without RCU or RTNL protection and dereferenced sk_dst_get(sk)->dev on a destination cache entry that could be freed concurrently. Any local user able to open an SMC (AF_SMC) socket and trigger a connection can race destination-cache teardown to read or corrupt freed kernel memory, with a plausible outcome of information disclosure or escalation. There is no public exploit identified at time of analysis and EPSS is negligible (0.03%), so this is a defensively-driven upstream hardening fix rather than an actively exploited flaw.

v1 Mar 28, 2026 - 19:21

In the Linux kernel, the following vulnerability has been resolved: smc: Use __sk_dst_get() and dst_dev_rcu() in in smc_clc_prfx_set(). No vendor patch available.

RemediationAI

Upstream fix available (stable commits 0736993bfe5c and 935d783e5de9; a released patched tag is not stated in the input), so update to the fixed stable/distribution kernel that incorporates these commits (https://git.kernel.org/stable/c/0736993bfe5c7a9c744ae3fac62d769dfdae54e1). Apply your distribution's kernel security update once it references CVE-2025-40139. As a compensating control where patching must be deferred, restrict or disable the SMC protocol: block loading of the smc module (e.g., an 'install smc /bin/true' modprobe rule or blacklist entry) or avoid enabling CONFIG_SMC, and prevent unprivileged creation of AF_SMC sockets; the trade-off is that any workload relying on SMC-R/SMC-D RDMA acceleration loses that transparent offload and falls back to standard TCP.

Affected ProductsAI

The affected product is the Linux kernel, specifically the SMC (Shared Memory Communications) networking subsystem in net/smc/smc_clc.c. NVD provides no CPE ranges and the CWE is unspecified, so exact affected version boundaries are not enumerated in the input; the fix landed via the stable tree as commits 0736993bfe5c7a9c744ae3fac62d769dfdae54e1 and 935d783e5de9b64587f3adb25641dd8385e64ddb (https://git.kernel.org/stable/c/0736993bfe5c7a9c744ae3fac62d769dfdae54e1 and https://git.kernel.org/stable/c/935d783e5de9b64587f3adb25641dd8385e64ddb). Only kernels with CONFIG_SMC enabled and the SMC protocol in use are practically exposed.

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

SMC (Shared Memory Communications, RFC 7609) is a Linux kernel protocol family (AF_SMC) that transparently accelerates TCP-like connections over RDMA (SMC-R) or shared memory (SMC-D). During connection setup, smc_clc_prfx_set() computes the IP subnet prefix advertised in the SMC CLC handshake by inspecting the socket's routing destination (dst) and its associated net_device. The bug is a classic use-after-free (CWE-416, though NVD lists CWE as N/A): the code obtained the dst via sk_dst_get() and dereferenced ->dev outside any RCU read-side critical section or RTNL lock, so the referenced dst_entry/net_device could be freed concurrently by the networking stack. The fix uses __sk_dst_get() together with dst_dev_rcu() under rcu_read_lock() after kernel_getsockname(), and notes that smc_clc_prfx_set()'s return value is unused by the caller.

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 5.3 MEDIUM

Local AF_SMC socket needs only unprivileged access (PR:L); the UAF is race-dependent (AC:H); realistic impact is crash/DoS (A:H) with a limited info leak (C:L), not integrity loss.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:H
4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
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

Lifecycle Timeline

4
Analysis Updated
Jul 30, 2026 - 09:05 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 30, 2026 - 09:04 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
CVE Published
Nov 12, 2025 - 11:15 nvd
N/A

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

smc: Use __sk_dst_get() and dst_dev_rcu() in in smc_clc_prfx_set().

smc_clc_prfx_set() is called during connect() and not under RCU nor RTNL.

Using sk_dst_get(sk)->dev could trigger UAF.

Let's use __sk_dst_get() and dev_dst_rcu() under rcu_read_lock() after kernel_getsockname().

Note that the returned value of smc_clc_prfx_set() is not used in the caller.

While at it, we change the 1st arg of smc_clc_prfx_set[46]_rcu() not to touch dst there.

Executive ViewAI

Why It Matters

A use-after-free vulnerability in the Linux kernel's SMC (Shared Memory Communications) subsystem (CVE-2025-40139) allows local users to trigger kernel panics or disclose kernel memory, risking system unavailability and potential data exposure. Organizations running Linux systems with SMC enabled and permitting local user access face elevated risk; no vendor patches are currently available.

Business Impact: High
Compensating Controls

Disable the SMC kernel module (echo 'blacklist smc' >> /etc/modprobe.d/blacklist.conf and reboot) on systems where operationally unnecessary; restrict local and remote access using role-based access controls and multi-factor authentication; enable kernel panic logging and alerting to detect exploitation attempts; establish communication with Linux vendors regarding upstream fix availability.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Prevalence
Ubiquitous
Linux kernel runs almost everywhere, though SMC subsystem is niche
Data Quality
5 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.0%
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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
Container suse/hpc/warewulf4-x86_64/sle-hpc-node:latest Image SLES15-SP6 Image SLES15-SP6-BYOS Image SLES15-SP6-BYOS-Azure Image SLES15-SP6-BYOS-EC2 Image SLES15-SP6-BYOS-GCE Image SLES15-SP6-CHOST-BYOS Image SLES15-SP6-CHOST-BYOS-Aliyun Image SLES15-SP6-CHOST-BYOS-Azure Image SLES15-SP6-CHOST-BYOS-EC2 Image SLES15-SP6-CHOST-BYOS-GCE Image SLES15-SP6-CHOST-BYOS-GDC Image SLES15-SP6-CHOST-BYOS-SAP-CCloud Image SLES15-SP6-EC2 Image SLES15-SP6-EC2-ECS-HVM Image SLES15-SP6-GCE Image SLES15-SP6-HPC-BYOS Image SLES15-SP6-HPC-BYOS-Azure Image SLES15-SP6-HPC-BYOS-EC2 Image SLES15-SP6-HPC-BYOS-GCE Image SLES15-SP6-HPC-EC2 Image SLES15-SP6-HPC-GCE Image SLES15-SP6-Hardened-BYOS Image SLES15-SP6-Hardened-BYOS-Azure Image SLES15-SP6-Hardened-BYOS-EC2 Image SLES15-SP6-Hardened-BYOS-GCE Image SLES15-SP6-SAP Image SLES15-SP6-SAP-Azure Image SLES15-SP6-SAP-EC2 Image SLES15-SP6-SAP-GCE Image SLES15-SP6-SAPCAL Image SLES15-SP6-SAPCAL-Azure Image SLES15-SP6-SAPCAL-EC2 Image SLES15-SP6-SAPCAL-GCE Affected
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.1/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.80 Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.114 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.82 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.116 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.55 Affected

References

Advisories & patches
ADVISORY https://ubuntu.com/security/notices/USN-8781-1 ADVISORY https://vuldb.com/vuln/332161 ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4393/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4422/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4505/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4516/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4517/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4521/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0263/ 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:0411/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0474/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0475/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0495/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0496/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0617/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1131/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20012/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20015/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20021/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20039/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20059/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20334/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20473/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20478/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20496/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20519/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20562/ REF https://git.kernel.org/stable/c/0736993bfe5c7a9c744ae3fac62d769dfdae54e1 REF https://git.kernel.org/stable/c/5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde REF https://git.kernel.org/stable/c/80d1fd39f4e37d836655e9f7ffccaf78925049bf REF https://git.kernel.org/stable/c/935d783e5de9b64587f3adb25641dd8385e64ddb REF https://git.kernel.org/stable/c/956c57daba55cf9ed25d9f2512883b8a1a927599

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