Skip to main content

Linux Kernel CVE-2025-40061

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
    Gain local low-priv shell on host with rxe loaded
  2. Delivery
    Open rxe RDMA device and saturate task queue
  3. Exploit
    Concurrently trigger task drain/cleanup
  4. Execution
    Win race overwriting DRAINING state
  5. Persist
    Trigger use-after-free on freed task
  6. Impact
    Corrupt kernel memory / escalate privileges

Vulnerability Assessment

Exploitation Conditions

Requires the Soft-RoCE driver (rdma_rxe / kernel CONFIG_RDMA_RXE) to be loaded and an rxe device configured, giving the attacker a local low-privileged path to issue RDMA verbs - this is NOT a default configuration on most systems, which is the primary limiting factor. The attacker must also concurrently trigger a drain/cleanup path (rxe_cleanup_task or rxe_disable_task) and win the timing race where do_task() exhausts its iteration budget inside the lock-release window; this narrow race is a further practical limit. Local access is mandatory (AV:L) and low privileges are required (PR:L); no remote access and no user interaction are involved.

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 7.8 High) reflects a local, low-privilege path to full kernel compromise. However, the AC:L rating is arguably optimistic: exploitation depends on winning a narrow race between do_task() iteration exhaustion and a concurrent drain/cleanup, which in practice is timing-sensitive and non-deterministic - closer to AC:H. Corroborating this, EPSS is only 0.19% (9th percentile) and there is no KEV listing and no public exploit identified, so this is a real memory-safety bug but not an imminent widespread-exploitation priority. The most significant limiting factor is exposure: the rxe module is not loaded by default in most deployments, so the true attack surface is far narrower than the 'Linux kernel' product footprint suggests. Note the conflict between the 'Information Disclosure' tag and the CVSS I:H/A:H - treat impact as memory corruption/UAF, potentially privilege escalation, not merely disclosure.

Exploit ScenarioDerived

A low-privileged local user with access to the rxe RDMA interface repeatedly issues RDMA operations that keep do_task() saturated at its iteration budget while concurrently triggering task teardown (disable/cleanup) to hit the drain window. By winning the race, the attacker causes a task to reschedule against freed state, producing a use-after-free that can crash the kernel or be groomed toward privilege escalation. No public exploit code is identified at this time, and the local attack vector plus race-timing requirement make reliable exploitation non-trivial.

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 via use-after-free in the Linux kernel's RDMA/rxe (Soft-RoCE) driver allows a low-privileged local user to corrupt kernel memory by winning a race in do_task(). When the task loop exhausts its iteration budget it blindly resets state to TASK_STATE_IDLE, overwriting a concurrent TASK_STATE_DRAINING set during rxe_cleanup_task()/rxe_disable_task() teardown, so a task reschedules against freed structures. No public exploit identified at time of analysis and EPSS is low (0.19%, 9th percentile), consistent with a hard-to-win kernel race rather than a mass-exploited flaw.

RemediationAI

Upstream fix available (commits/backports); a specific released tag is not stated in the provided data, so update to the fixed stable kernel that carries commit 660b6959c4170637f5db2279d1f71af33a49e49b (and its siblings 52edccfb..., 85288bcf..., 8ca7eada...) for your branch via your distribution's kernel update channel. The fix restores pre-migration behavior by forcing a continued loop iteration when state is TASK_STATE_DRAINING so the task drains to TASK_STATE_DRAINED correctly. Where immediate patching is not possible, the most effective compensating control is to prevent the vulnerable code from loading: blacklist/unload the rdma_rxe module (e.g., ensure it is not auto-loaded and 'rmmod rdma_rxe' where no RDMA emulation is needed), which fully removes the attack surface but disables Soft-RoCE for any workload relying on it. If rxe is required, restrict local access and avoid untrusted local users on the host, since exploitation requires local low-privileged access. Refer to the git.kernel.org stable references above for the authoritative patch.

Affected ProductsAI

The affected product is the mainline and stable Linux kernel, specifically the RDMA/rxe (Soft-RoCE) driver (drivers/infiniband/sw/rxe). Exact affected version ranges are not enumerated in the provided NVD data and no CPE strings were supplied; the four git.kernel.org stable references (commits 52edccfb555142678c836c285bf5b4ec760bd043, 660b6959c4170637f5db2279d1f71af33a49e49b, 85288bcf7ffe11e7b036edf91937bc62fd384076, and 8ca7eada62fcfabf6ec1dc7468941e791c1d8729) correspond to the fix backported across multiple stable branches. The bug was introduced by the tasklet-to-workqueue migration in rxe, so kernels containing that migration up to the fixed commits are affected; consult the individual stable commit trees to map exact fixed versions per branch.

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 Soft-RoCE (rxe) driver in the kernel's InfiniBand/RDMA subsystem, which emulates RDMA verbs over ordinary Ethernet. The rxe task scheduler (do_task) processes send/receive/completion work in bounded iterations and, when its budget is exhausted, reschedules itself. The root cause is a classic concurrency defect: a state-machine transition that fails to re-check the current task->state before writing it. Although a spinlock guards state changes, rxe_cleanup_task() and rxe_disable_task() drop the lock while polling is_done() during drain, opening a window in which do_task() overwrites TASK_STATE_DRAINING. The result is a use-after-free (CWE-416) driven by a race condition (CWE-362); the NVD CWE field is unpopulated (N/A) and the vendor-supplied tag 'Information Disclosure' understates the C:H/I:H/A:H memory-corruption impact. The regression was introduced when rxe migrated from tasklets to workqueues and the drain special-casing was dropped.

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 access with low privileges to the rxe device (AV:L/PR:L); winning the drain timing race is non-deterministic so AC:H; UAF yields full memory-corruption impact (C/I/A:H).

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:P/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 6.5 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:

RDMA/rxe: Fix race in do_task() when draining

When do_task() exhausts its iteration budget (!ret), it sets the state to TASK_STATE_IDLE to reschedule, without a secondary check on the current task->state. This can overwrite the TASK_STATE_DRAINING state set by a concurrent call to rxe_cleanup_task() or rxe_disable_task().

While state changes are protected by a spinlock, both rxe_cleanup_task() and rxe_disable_task() release the lock while waiting for the task to finish draining in the while(!is_done(task)) loop. The race occurs if do_task() hits its iteration limit and acquires the lock in this window. The cleanup logic may then proceed while the task incorrectly reschedules itself, leading to a potential use-after-free.

This bug was introduced during the migration from tasklets to workqueues, where the special handling for the draining case was lost.

Fix this by restoring the original pre-migration behavior. If the state is TASK_STATE_DRAINING when iterations are exhausted, set cont to 1 to force a new loop iteration. This allows the task to finish its work, so that a subsequent iteration can reach the switch statement and correctly transition the state to TASK_STATE_DRAINED, stopping the task as intended.

Executive ViewAI

Why It Matters

CVE-2025-40061 is a local privilege escalation vulnerability in the Linux kernel's RDMA/rxe driver enabling low-privileged users to corrupt kernel memory and gain elevated access. No public exploit identified at time of analysis; exploitation requires winning a difficult kernel race condition, significantly limiting practical attack surface. Organizations with shared systems, multi-tenant environments, or untrusted local users face risk and require immediate infrastructure inventory and risk assessment.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable rxe driver if not operationally required; enforce strict local access controls and multi-factor authentication for system access; deploy SELinux or AppArmor in enforce mode to restrict privilege escalation pathways; enable kernel-level auditing to detect exploitation attempts; isolate multi-tenant workloads to separate kernel instances where feasible; implement monitoring for kernel panic patterns and unexpected privilege escalations.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Ubiquitous
Linux kernel is ubiquitous, though the vulnerable rxe module is rarely loaded
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

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:15.6.17.8.134 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.0/toolbox:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.65 Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.88 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.105 Affected

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