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
Share

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
qualitative

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

2
Analysis Generated
Jul 30, 2026 - 07:59 vuln.today
CVE Published
Oct 24, 2025 - 13:15 cve.org
HIGH 7.8

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.

AnalysisAI

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.

Technical ContextAI

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.

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.

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.

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

Share

CVE-2025-40024 vulnerability details – vuln.today

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