{"id":"CVE-2025-40024","published":"2025-10-24T12:24:59Z","modified":"2026-08-05T12:07:06Z","title":"vhost: Take a reference on the task in struct vhost_task.","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvhost: Take a reference on the task in struct vhost_task.\n\nvhost_task_create() creates a task and keeps a reference to its\ntask_struct. That task may exit early via a signal and its task_struct\nwill be released.\nA pending vhost_task_wake() will then attempt to wake the task and\naccess a task_struct which is no longer there.\n\nAcquire a reference on the task_struct while creating the thread and\nrelease the reference while the struct vhost_task itself is removed.\nIf the task exits early due to a signal, then the vhost_task_wake() will\nstill access a valid task_struct. The wake is safe and will be skipped\nin this case.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00238,"percentile":0.0894,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/82a1463c968b1a6ae598a4f2fcef17b71bb7d3a0","tags":[]},{"url":"https://git.kernel.org/stable/c/d2be773a92874a070215b51b730cb2b1eaa8fae2","tags":[]},{"url":"https://git.kernel.org/stable/c/7ce635b3d3aba43296b62b5a2d97c008bc51cbd2","tags":[]},{"url":"https://git.kernel.org/stable/c/afe16653e05db07d658b55245c7a2e0603f136c0","tags":[]}],"priority":{"score":7.2,"factors":[{"name":"EPSS percentile","points":1.79},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f9010dbdce911ee1f1af1398a24b1f9f992e0080, < 82a1463c968b1a6ae598a4f2fcef17b71bb7d3a0",">= f9010dbdce911ee1f1af1398a24b1f9f992e0080, < d2be773a92874a070215b51b730cb2b1eaa8fae2",">= f9010dbdce911ee1f1af1398a24b1f9f992e0080, < 7ce635b3d3aba43296b62b5a2d97c008bc51cbd2",">= f9010dbdce911ee1f1af1398a24b1f9f992e0080, < afe16653e05db07d658b55245c7a2e0603f136c0"]},{"vendor":"Linux","product":"Linux","versions":["6.4"]}],"euvd":{"id":"EUVD-2025-35835","exploited":false,"provenance":"source"}}