7.8high
vhost: Take a reference on the task in struct vhost_task.
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from f9010dbdce911ee1f1af1398a24b1f9f992e0080 before 82a1463c968b1a6ae598a4f2fcef17b71bb7d3a0, from f9010dbdce911ee1f1af1398a24b1f9f992e0080 before d2be773a92874a070215b51b730cb2b1eaa8fae2, from f9010dbdce911ee1f1af1398a24b1f9f992e0080 before 7ce635b3d3aba43296b62b5a2d97c008bc51cbd2, from f9010dbdce911ee1f1af1398a24b1f9f992e0080 before afe16653e05db07d658b55245c7a2e0603f136c0, 6.4 Not affected: before 6.4, from 6.6.109 up to 6.6.*, from 6.12.50 up to 6.12.*, from 6.16.10 up to 6.16.*, from 6.17 up to * | CVE List |
What each source says
CVE List
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.
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-40024 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-40024 changed 2026-10-19 | Public domain |