CVE-2026-90130 PUBLISHED

vdpa_sim: fix cleanup after worker creation failure

Assigner: Linux
Reserved: 11.09.2026 Published: 17.09.2026 Updated: 17.09.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 76acfa7bc54f1e3b9dde396e0a3534493419fd6f to feafa109f031ed111f7f968e447c13985db498e0 (excl.)
  • affected from 76acfa7bc54f1e3b9dde396e0a3534493419fd6f to 05ddc94afb69e36df59e88cfa9e5c7bf9d10cfd0 (excl.)
  • affected from 76acfa7bc54f1e3b9dde396e0a3534493419fd6f to 68b726b3a01fb02a68843781b17d05ef3d759987 (excl.)
  • affected from 76acfa7bc54f1e3b9dde396e0a3534493419fd6f to ca6f3fa599cb764518df595368b743f856fdb516 (excl.)
  • affected from 76acfa7bc54f1e3b9dde396e0a3534493419fd6f to bd670e5dfd2b01fd9692f61fa1456434c54026a4 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.4 is affected
  • unaffected from 0 to 6.4 (excl.)
  • unaffected from 6.6.157 to 6.6.* (incl.)
  • unaffected from 6.12.110 to 6.12.* (incl.)
  • unaffected from 6.18.52 to 6.18.* (incl.)
  • unaffected from 7.2.6 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References