CVE-2025-40024: vhost: Take a reference on the task in struct vhost_task.
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.
Security readout for executives and security teams
Plain-English summary
A Linux vhost task can exit while another operation still plans to wake it, causing the kernel to access an object already released from memory. The CVSS assessment indicates potential confidentiality, integrity, and availability impact from a local low-privileged attack. The supplied evidence does not establish active exploitation.
Executive priority
Treat this as a high-priority kernel update for affected multi-user or virtualization hosts. The attack is local rather than directly remote, but the stated potential impact covers complete confidentiality, integrity, and availability loss. Prioritize systems allowing untrusted local access, while using vendor backport information to avoid incorrect version-based conclusions.
Technical view
This is a task lifetime-management flaw in Linux vhost. If a signal makes a newly created vhost task exit early, a pending wake operation can access its released task_struct. The stable fixes retain a task reference during creation and release it when the vhost_task is removed, keeping the object valid for pending wake operations.
Likely exposure
Exposure is most plausible on systems running affected Linux kernels where vhost functionality is present and reachable by a local low-privileged user. The supplied version data includes ambiguous entries, including “0” and commit identifiers. Confirm exact exposure and distribution backports through vendor guidance rather than relying solely on upstream version numbers.
Exploitation context
The CVSS vector describes a local, low-complexity attack requiring low privileges and no user interaction. CVE-2025-40024 is not listed as KEV in the supplied bundle, and no cited source establishes active exploitation or a public exploit. Absence from KEV does not prove that exploitation has never occurred.
Researcher notes
The described condition is a task_struct lifetime race resembling use-after-free behavior: early task exit releases the object before a pending vhost_task_wake accesses it. The fix changes reference ownership rather than wake semantics. No CWE, trigger reliability evidence, exploit analysis, or affected-configuration detail is supplied. Version boundaries should be verified against upstream commits and distribution advisories.
Mitigation direction
Apply a distribution or kernel-vendor update containing the applicable stable fix for CVE-2025-40024.
Reboot into the updated kernel when required, following vendor maintenance guidance.
Until patched, reduce untrusted local access and prioritize vhost-using virtualization systems.
Check vendor guidance before changing or disabling vhost-dependent services.
Validation and detection
Record the running kernel release and compare it with your distribution's CVE-2025-40024 advisory.
Verify the installed update contains the applicable referenced stable-kernel fix.
After maintenance, confirm the host is running the updated kernel, not merely storing it.
Rescan updated systems and investigate any disagreement between scanner and vendor version mappings.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-40024 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
0ADP providers
5Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.