Skip to main content

Linux Kernel CVE-2025-40064

HIGH
2025-10-28 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
    Local user opens AF_SMC socket
  2. Delivery
    Call connect() to trigger PNET lookup
  3. Exploit
    Race frees dst net_device concurrently
  4. Execution
    Freed device read in __pnet_find_base_ndev
  5. Persist
    Kernel UAF / heap corruption
  6. Impact
    DoS or privilege escalation

Vulnerability Assessment

Exploitation Conditions

Requires the SMC protocol to be available and used: the kernel must be built with CONFIG_SMC and the attacker must be able to create an AF_SMC socket and call connect() locally. The trigger is a race - the socket's destination net_device must be freed (dst->dev swapped to blackhole_netdev, e.g. during interface teardown) between route resolution and the read in pnet_find_base_ndev(). Limiting factors: exploitation is local only (AV:L) and needs low-level privileges sufficient to open SMC sockets (PR:L); it does not work against systems without SMC in use, and reliably winning the free-vs-use race adds practical difficulty despite the CVSS AC:L rating.

Impact

The CVSS 3.1 base score of 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects local, low-privilege, low-complexity access with high impact - consistent with a kernel UAF that could yield memory disclosure or, with heap-grooming, code execution and privilege escalation. However, the real-world exploitation signals are weak: EPSS is 0.17% (7th percentile), it is not listed in CISA KEV, and no weaponized public exploit is identified. Two important caveats: exploitation requires SMC to be in use, which is uncommon on general-purpose systems and typically tied to RDMA/ISM-capable environments (mainframe/RoCE deployments), and the C:H/I:H/A:H rating is a generic kernel-UAF worst case rather than a demonstrated primitive - the syzbot report proves a KASAN-detectable crash (DoS), while confidentiality/integrity impact is inferred, not confirmed. This is a legitimate hardening/patch item but a low-urgency, non-priority issue relative to network-facing or actively exploited CVEs.

Exploit ScenarioDerived

A local, low-privileged user opens an AF_SMC socket and issues a connect() while the underlying route's net_device is being torn down (e.g., an interface going down concurrently), causing the freed device to be dereferenced in __pnet_find_base_ndev() and corrupting kernel memory. In the simplest outcome this crashes the kernel (DoS); with careful heap grooming to reoccupy the freed page, a skilled attacker could attempt to escalate privileges. No public weaponized exploit is identified, though the syzbot reproducer demonstrates reliable triggering.

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 escalation and memory corruption in the Linux kernel's SMC (Shared Memory Communications) subsystem allows a local user to trigger a use-after-free of a net_device during a connect() call on an SMC socket. The flaw lives in smc_pnet_find_ism_resource() / smc_pnet_find_roce_resource(), which dereference a destination device (dst->dev) that can be freed and swapped for blackhole_netdev before RTNL is acquired in pnet_find_base_ndev(). It was discovered by syzbot fuzzing; there is no public exploit identified at time of analysis, it is not on CISA KEV, and its EPSS probability is very low (0.17%, 7th percentile).

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the stable-tree commits 233927b645cb7a14bb98d23ac72e4c7243a9f0d9 and 3d3466878afd8d43ec0ca2facfbc7f03e40d0f79 (git.kernel.org/stable/c/...), or update to the distribution kernel package that incorporates them once your vendor publishes it. If patching cannot be done immediately, the most effective compensating control is to prevent use of the SMC protocol: blacklist the smc kernel module (e.g., 'install smc /bin/false' in modprobe.d) or avoid building CONFIG_SMC on systems that do not require Shared Memory Communications, which fully removes the vulnerable code path but disables SMC/RDMA-accelerated sockets. Where SMC is required, restrict local account access and monitor for unexpected AF_SMC socket creation, accepting that this only reduces, not eliminates, the local attack surface.

Affected ProductsAI

The vulnerability affects the Linux kernel's in-tree SMC subsystem (net/smc/smc_pnet.c), specifically any kernel version whose smc_pnet_find_ism_resource() and smc_pnet_find_roce_resource() functions use the unreferenced sk_dst_get(sk)->dev pattern prior to the fix. No specific version range or CPE was provided in the input; affected/fixed boundaries should be derived from the stable-tree commits at https://git.kernel.org/stable/c/233927b645cb7a14bb98d23ac72e4c7243a9f0d9 and https://git.kernel.org/stable/c/3d3466878afd8d43ec0ca2facfbc7f03e40d0f79. Exposure is limited to kernels built with CONFIG_SMC and systems where SMC sockets are actually used.

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, net/smc) is a Linux kernel protocol family that transparently offloads TCP-like sockets onto RDMA (SMC-R over RoCE) or shared-memory (SMC-D over ISM) hardware. During connect(), the stack resolves which physical base net_device backs the socket's route via the PNET table lookup path (smc_pnet_find_ism_resource → smc_pnet_find_ism_by_pnetid → pnet_find_base_ndev → __pnet_find_base_ndev at net/smc/smc_pnet.c:926). The bug is a classic use-after-free (CWE-416, though the input lists CWE as N/A): the code used sk_dst_get(sk)->dev and passed the device down without holding a reference, so while the device was being torn down its dst->dev was swapped to blackhole_netdev and its dst-held refcount released, freeing the device before RTNL was taken and it was first read. The fix switches to __sk_dst_get() plus dst_dev_rcu() and takes a proper reference on the device before calling the resource-lookup helpers.

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.8 MEDIUM

Local low-priv access via SMC socket; a free-vs-use race raises AC:H; demonstrated impact is a kernel crash (A:H) with only inferred, harder-to-achieve C/I corruption (C:L/I:L).

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

smc: Fix use-after-free in __pnet_find_base_ndev().

syzbot reported use-after-free of net_device in __pnet_find_base_ndev(), which was called during connect(). [0]

smc_pnet_find_ism_resource() fetches sk_dst_get(sk)->dev and passes down to pnet_find_base_ndev(), where RTNL is held. Then, UAF happened at __pnet_find_base_ndev() when the dev is first used.

This means dev had already been freed before acquiring RTNL in pnet_find_base_ndev().

While dev is going away, dst->dev could be swapped with blackhole_netdev, and the dev's refcnt by dst will be released.

We must hold dev's refcnt before calling smc_pnet_find_ism_resource().

Also, smc_pnet_find_roce_resource() has the same problem.

Let's use __sk_dst_get() and dst_dev_rcu() in the two functions.

[0]: BUG: KASAN: use-after-free in __pnet_find_base_ndev+0x1b1/0x1c0 net/smc/smc_pnet.c:926 Read of size 1 at addr ffff888036bac33a by task syz.0.3632/18609

CPU: 1 UID: 0 PID: 18609 Comm: syz.0.3632 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: <TASK> dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 __pnet_find_base_ndev+0x1b1/0x1c0 net/smc/smc_pnet.c:926 pnet_find_base_ndev net/smc/smc_pnet.c:946 [inline] smc_pnet_find_ism_by_pnetid net/smc/smc_pnet.c:1103 [inline] smc_pnet_find_ism_resource+0xef/0x390 net/smc/smc_pnet.c:1154 smc_find_ism_device net/smc/af_smc.c:1030 [inline] smc_find_proposal_devices net/smc/af_smc.c:1115 [inline] __smc_connect+0x372/0x1890 net/smc/af_smc.c:1545 smc_connect+0x877/0xd90 net/smc/af_smc.c:1715 __sys_connect_file net/socket.c:2086 [inline] __sys_connect+0x313/0x440 net/socket.c:2105 __do_sys_connect net/socket.c:2111 [inline] __se_sys_connect net/socket.c:2108 [inline] __x64_sys_connect+0x7a/0x90 net/socket.c:2108 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f47cbf8eba9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f47ccdb1038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f47cc1d5fa0 RCX: 00007f47cbf8eba9 RDX: 0000000000000010 RSI: 0000200000000280 RDI: 000000000000000b RBP: 00007f47cc011e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f47cc1d6038 R14: 00007f47cc1d5fa0 R15: 00007ffc512f8aa8 </TASK>

The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888036bacd00 pfn:0x36bac flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0001243d08 ffff8880b863fdc0 0000000000000000 raw: ffff888036bacd00 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 2, migratetype Unmovable, gfp_mask 0x446dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_COMP), pid 16741, tgid 16741 (syz-executor), ts 343313197788, free_ts 380670750466 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 ___kmalloc_large_node+0x5f/0x1b0 mm/slub.c:4317 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:4348 __do_kmalloc_node mm/slub.c:4364 [inline] __kvmalloc_node ---truncated---

Executive ViewAI

Why It Matters

The Linux kernel SMC (Shared Memory Communications) subsystem contains a local privilege escalation vulnerability (CVE-2025-40064, CVSS 7.8) that allows unprivileged local users to trigger memory corruption and gain elevated privileges. Any Linux system with SMC enabled is affected, creating risk of unauthorized privilege escalation and system compromise. Leadership should prioritize interim access controls immediately and prepare for rapid patch deployment once vendor remediation becomes available.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) enforce principle of least privilege on local user accounts and restrict shell access to administrators only; (2) disable SMC kernel module via runtime blacklist or compile-time kernel configuration if not required for operations; (3) apply SELinux or AppArmor mandatory access control policies to restrict local process capability escalation; (4) monitor audit logs and syslog for use-after-free or memory corruption indicators; (5) isolate critical systems requiring SMC in restricted-access network zones to reduce local attack surface.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Ubiquitous
Linux kernel runs on a huge fraction of servers and devices worldwide
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.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

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

Vendor StatusVendor

SUSE

Severity: Moderate
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://access.redhat.com/errata/RHSA-2026:2721 ADVISORY https://access.redhat.com/errata/RHSA-2026:2722 ADVISORY https://access.redhat.com/errata/RHSA-2026:27708 ADVISORY https://access.redhat.com/errata/RHSA-2026:3083 ADVISORY https://access.redhat.com/errata/RHSA-2026:3110 ADVISORY https://access.redhat.com/errata/RHSA-2026:4111 ADVISORY https://access.redhat.com/errata/RHSA-2026:6954 ADVISORY https://access.redhat.com/errata/RHSA-2026:9513 ADVISORY https://access.redhat.com/errata/RHSA-2026:9514 ADVISORY https://access.redhat.com/errata/RHSA-2026:9643 ADVISORY https://ubuntu.com/security/notices/USN-8781-1 ADVISORY https://vuldb.com/vuln/330260 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:0316/ 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/005a7173d8e4710646043a681af36f79ce05a29b REF https://git.kernel.org/stable/c/08aca586482e88aab9616a3e81bc36cad22674a5 REF https://git.kernel.org/stable/c/233927b645cb7a14bb98d23ac72e4c7243a9f0d9 REF https://git.kernel.org/stable/c/302dbed4760bcd19a661cc1c282d91bb7481307e REF https://git.kernel.org/stable/c/3d3466878afd8d43ec0ca2facfbc7f03e40d0f79

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