CVE-2025-40024
vhost: Take a reference on the task in struct vhost_task.
Description
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.
INFO
Published Date :
Oct. 24, 2025, 1:15 p.m.
Last Modified :
Oct. 19, 2026, 9:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Acquire task reference during thread creation.
- Release reference when vhost_task is removed.
- Handle early task exit safely.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-40024.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-40024 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-40024
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-40024 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-40024 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 19, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: vhost: Tomar una referencia a la tarea en la estructura vhost_task. vhost_task_create() crea una tarea y mantiene una referencia a su task_struct. Esa tarea puede salir prematuramente a través de una señal y su task_struct será liberada. Una vhost_task_wake() pendiente intentará entonces despertar la tarea y acceder a una task_struct que ya no existe. Adquirir una referencia a la task_struct mientras se crea el hilo y liberar la referencia mientras la propia estructura vhost_task es eliminada. Si la tarea sale prematuramente debido a una señal, entonces la vhost_task_wake() seguirá accediendo a una task_struct válida. El despertar es seguro y será omitido en este caso. -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 30, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'f9010dbdce911ee1f1af1398a24b1f9f992e0080', 'lessThan': '82a1463c968b1a6ae598a4f2fcef17b71bb7d3a0', 'versionType': 'git'}, {'status': 'affected', 'version': 'f9010dbdce911ee1f1af1398a24b1f9f992e0080', 'lessThan': 'd2be773a92874a070215b51b730cb2b1eaa8fae2', 'versionType': 'git'}, {'status': 'affected', 'version': 'f9010dbdce911ee1f1af1398a24b1f9f992e0080', 'lessThan': '7ce635b3d3aba43296b62b5a2d97c008bc51cbd2', 'versionType': 'git'}, {'status': 'affected', 'version': 'f9010dbdce911ee1f1af1398a24b1f9f992e0080', 'lessThan': 'afe16653e05db07d658b55245c7a2e0603f136c0', 'versionType': 'git'}], 'programFiles': ['kernel/vhost_task.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.4'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.4', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.109', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.50', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.16.10', 'versionType': 'semver', 'lessThanOrEqual': '6.16.*'}, {'status': 'unaffected', 'version': '6.17', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['kernel/vhost_task.c'], 'defaultStatus': 'affected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 24, 2025
Action Type Old Value New Value Added Description 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. Added Reference https://git.kernel.org/stable/c/7ce635b3d3aba43296b62b5a2d97c008bc51cbd2 Added Reference https://git.kernel.org/stable/c/82a1463c968b1a6ae598a4f2fcef17b71bb7d3a0 Added Reference https://git.kernel.org/stable/c/afe16653e05db07d658b55245c7a2e0603f136c0 Added Reference https://git.kernel.org/stable/c/d2be773a92874a070215b51b730cb2b1eaa8fae2