vdpa_sim: fix cleanup after worker creation failure (Linux Linux)

CVE-2026-90130
Not available

At a glance

Source
NVD
EPSS
EPSS 0.20 % · percentile 10 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Received

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.

References

European references

CERT-FR advisories

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ 76acfa7bc54f1e3b9dde396e0a3534493419fd6f < feafa109f031ed111f7f968e447c13985db498e0
affected : ≥ 76acfa7bc54f1e3b9dde396e0a3534493419fd6f < 05ddc94afb69e36df59e88cfa9e5c7bf9d10cfd0
affected : ≥ 76acfa7bc54f1e3b9dde396e0a3534493419fd6f < 68b726b3a01fb02a68843781b17d05ef3d759987
affected : ≥ 76acfa7bc54f1e3b9dde396e0a3534493419fd6f < ca6f3fa599cb764518df595368b743f856fdb516
affected : ≥ 76acfa7bc54f1e3b9dde396e0a3534493419fd6f < bd670e5dfd2b01fd9692f61fa1456434c54026a4
Other versions : unaffected
Linux · Linux
affected : 6.4
unaffected : ≥ 0 < 6.4
unaffected : ≥ 6.6.157 ≤ 6.6.*
unaffected : ≥ 6.12.110 ≤ 6.12.*
unaffected : ≥ 6.18.52 ≤ 6.18.*
unaffected : ≥ 7.2.6 ≤ 7.2.*
unaffected : ≥ 7.3 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD