Skip to contentSkip to conversation

CVE-2026-90130: vdpa_sim: fix cleanup after worker creation failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

vdpa_sim: fix cleanup after worker creation failure

vdpasim_create() leaves vdpasim->worker as an ERR_PTR when kthread_run_worker() fails. The error path then drops the device reference, which releases the partially initialized simulator.

vdpasim_free() unconditionally passes the worker pointer to kthread_destroy_worker(), so the ERR_PTR is dereferenced and can trigger a general protection fault.

Store the worker error, clear the pointer, and only clean up the worker when it was successfully initialized. Also make the release path tolerate partially initialized objects by guarding virtqueue and IOTLB cleanup, since the same release path can be reached from other initialization failures.

I found this bug myself, though the patch was written with AI assistance.

The Linux kernel CVE team has assigned CVE-2026-90130 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.4 with commit 76acfa7bc54f1e3b9dde396e0a3534493419fd6f and fixed in 6.6.157 with commit feafa109f031ed111f7f968e447c13985db498e0
	Issue introduced in 6.4 with commit 76acfa7bc54f1e3b9dde396e0a3534493419fd6f and fixed in 6.12.110 with commit 05ddc94afb69e36df59e88cfa9e5c7bf9d10cfd0
	Issue introduced in 6.4 with commit 76acfa7bc54f1e3b9dde396e0a3534493419fd6f and fixed in 6.18.52 with commit 68b726b3a01fb02a68843781b17d05ef3d759987
	Issue introduced in 6.4 with commit 76acfa7bc54f1e3b9dde396e0a3534493419fd6f and fixed in 7.2.6 with commit ca6f3fa599cb764518df595368b743f856fdb516
	Issue introduced in 6.4 with commit 76acfa7bc54f1e3b9dde396e0a3534493419fd6f and fixed in 7.3-rc1 with commit bd670e5dfd2b01fd9692f61fa1456434c54026a4

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-90130

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/vdpa/vdpa_sim/vdpa_sim.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/feafa109f031ed111f7f968e447c13985db498e0
	https://git.kernel.org/stable/c/05ddc94afb69e36df59e88cfa9e5c7bf9d10cfd0
	https://git.kernel.org/stable/c/68b726b3a01fb02a68843781b17d05ef3d759987
	https://git.kernel.org/stable/c/ca6f3fa599cb764518df595368b743f856fdb516
	https://git.kernel.org/stable/c/bd670e5dfd2b01fd9692f61fa1456434c54026a4