What’s Vulnerable › Vulnerabilities

CVE-2021-47061: KVM: Destroy I/O bus devices on unregister failure _after_ sync'ing SRCU

Description

In the Linux kernel, the following vulnerability has been resolved: KVM: Destroy I/O bus devices on unregister failure _after_ sync'ing SRCU If allocating a new instance of an I/O bus fails when unregistering a device, wait to destroy the device until after all readers are guaranteed to see the new null bus. Destroying devices before the bus is nullified could lead to use-after-free since readers expect the devices on their reference of the bus to remain valid.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.37, 5.11.21, 5.12.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-47061 or the next vulnerability affects your stack