Skip to main content

Linux Kernel CVE-2025-40024

HIGH
2025-10-24 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 access to virtualization host
  2. Delivery
    Create vhost worker task via vhost device
  3. Exploit
    Signal worker to exit during pending wake
  4. Execution
    Trigger use-after-free on freed task_struct
  5. Persist
    Reclaim freed slot via heap grooming
  6. Impact
    Escalate privileges or crash kernel

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access to a Linux host with the vhost subsystem in use and the ability to create/interact with a vhost worker task (vhost-net/vhost-scsi/vhost-vsock), then to cause that worker task to exit early via a signal while a vhost_task_wake() is pending - a race condition. Limiting factors: the attacker needs local, at least low-privileged access to vhost device functionality (per CVSS PR:L, this is authenticated/local, not remote unauthenticated), the target must actually be running vhost-backed virtualization, and success depends on winning a narrow timing window between the task's signal-driven exit and the pending wake, which raises practical attack complexity above a simple deterministic bug.

Impact

The provided CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.8) rates this High with local vector, low privileges, and high impact to all three of confidentiality, integrity, and availability. However, the nature of the bug - an early task exit racing a pending wake - implies a timing window, so real-world attack complexity is arguably higher than the AC:L in the input suggests; independent assessment leans AC:H. EPSS is low (0.19%, percentile 9%) and there is no KEV listing and no public exploit, so this is not an active mass-exploitation priority. The tag labels it 'Information Disclosure,' but a kernel use-after-free more realistically threatens integrity/availability and potential local privilege escalation, so the tag understates and the impact metrics may overstate a single fixed outcome. No SSVC decision data was supplied. Net: a legitimate host-kernel hardening fix that matters most for multi-tenant virtualization hosts, but not an emergency for most fleets absent evidence of exploitation.

Exploit ScenarioDerived

A local user or a low-privileged process with access to vhost worker devices on a virtualization host creates a vhost task, then arranges for that worker to be terminated by a signal at the moment a wake is pending, causing the kernel to dereference the freed task_struct. By grooming kernel heap allocations to reclaim the freed slot, a skilled attacker could turn the use-after-free into privilege escalation or reliably crash the host. No public proof-of-concept was identified at time of analysis, and the required race window makes 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

Use-after-free in the Linux kernel vhost subsystem allows a local attacker with access to vhost worker devices to trigger access to a freed task_struct, potentially leading to privilege escalation or a kernel crash on hosts running virtio/vhost-backed virtualization. The flaw occurs when a vhost_task exits early via a signal and a pending vhost_task_wake() dereferences the released task structure. There is no public exploit identified at time of analysis and EPSS is low (0.19%, 9th percentile), consistent with a local race-condition bug rather than a mass-exploitation target.

RemediationAI

Patch available per vendor advisory: apply the upstream Linux stable fix that takes a reference on the task_struct in struct vhost_task, delivered via the git.kernel.org commits 7ce635b3d3aba43296b62b5a2d97c008bc51cbd2, 82a1463c968b1a6ae598a4f2fcef17b71bb7d3a0, afe16653e05db07d658b55245c7a2e0603f136c0, and d2be773a92874a070215b51b730cb2b1eaa8fae2; an exact released kernel version is not stated in the input, so update to your distribution's kernel build that incorporates these commits and reboot. As a compensating control on hosts you cannot immediately patch, restrict access to vhost device nodes (/dev/vhost-net, /dev/vhost-vsock, /dev/vhost-scsi) to trusted virtualization services only and avoid granting untrusted local users or containers permissions to create vhost workers - the trade-off is that this does not fully close the race for legitimate virtualization tenants and may not be feasible where guests already legitimately use vhost. Where vhost-vsock or vhost-scsi are unused, unloading or disabling those modules reduces attack surface at the cost of losing that device functionality.

Affected ProductsAI

The affected product is the mainline and stable Linux kernel, specifically builds that include the vhost worker/vhost_task code path (used by vhost-net, vhost-scsi, and vhost-vsock). No exact vulnerable version range or CPE was provided in the input; the fix is delivered as stable-tree commits at git.kernel.org (7ce635b3d3aba43296b62b5a2d97c008bc51cbd2, 82a1463c968b1a6ae598a4f2fcef17b71bb7d3a0, afe16653e05db07d658b55245c7a2e0603f136c0, and d2be773a92874a070215b51b730cb2b1eaa8fae2), indicating multiple stable branches received backports. Administrators should map these commit hashes to their distribution's kernel package changelog to determine the exact patched version for their 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 kernel's vhost infrastructure, which offloads virtio device emulation (vhost-net, vhost-scsi, vhost-vsock) into a dedicated in-kernel worker thread created by vhost_task_create(). That helper caches a pointer to the worker's task_struct but did not hold its own reference count. If the worker exits early - for example, killed by a signal - the task_struct is freed, yet a queued vhost_task_wake() still holds and dereferences the stale pointer. This is a classic use-after-free (CWE-416, although the input lists CWE as N/A) arising from a reference-counting/lifetime mismatch between the vhost_task object and the underlying kernel task. The upstream fix acquires a reference on the task_struct at thread creation and releases it only when the vhost_task itself is destroyed, so the wake path always sees a valid (if exiting) task and safely skips the wake.

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 vhost access needed (AV:L, PR:L) and a signal-versus-wake race window makes it AC:H; a kernel use-after-free can yield full C/I/A impact within the 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 6.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:

vhost: Take a reference on the task in struct vhost_task.

vhost_task_create() creates a task and keeps a reference to its task_struct. That task may exit early via a signal and its task_struct will be released. A pending vhost_task_wake() will then attempt to wake the task and access a task_struct which is no longer there.

Acquire a reference on the task_struct while creating the thread and release the reference while the struct vhost_task itself is removed. If the task exits early due to a signal, then the vhost_task_wake() will still access a valid task_struct. The wake is safe and will be skipped in this case.

Executive ViewAI

Why It Matters

A vulnerability in the Linux kernel's virtualization subsystem (CVE-2025-40024) could allow local attackers with vhost device access to gain elevated system privileges or crash virtualization hosts. With a high severity rating (CVSS 7.8) but low current exploitation risk (0.2% EPSS) and no public exploit identified at time of analysis, the primary risk lies in uncontrolled local system access. Organizations should immediately audit and restrict vhost device access while preparing for vendor patches.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Restrict /dev/vhost* device access to authorized users only via filesystem permissions (e.g., mode 0600 or 0640); deploy SELinux or AppArmor mandatory access control policies on vhost device operations; implement kernel audit logging for vhost device access attempts; isolate vhost worker processes with container security or strict process isolation; maintain monitoring for kernel crashes or anomalous privilege escalation attempts on virtualization hosts.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Ubiquitous
Linux kernel; vhost path present on most virtualization/KVM hosts
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/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.115 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.83 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.146 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.91 Affected
Image SL-Micro-Azure Image SL-Micro-BYOS-Azure Image SL-Micro-BYOS-EC2 Image SL-Micro-BYOS-GCE Image SL-Micro-EC2 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 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-Azure Image SUSE-Multi-Linux-Manager-Proxy-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-Azure-llc Image SUSE-Multi-Linux-Manager-Server-Azure-ltd Image SUSE-Multi-Linux-Manager-Server-BYOS-Azure Image SUSE-Multi-Linux-Manager-Server-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Server-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-EC2-llc Image SUSE-Multi-Linux-Manager-Server-EC2-ltd Affected

References

Advisories & patches

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