KVM: Destroy I/O bus devices on unregister failure _after_ sync'ing SRCU
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s KVM I/O bus can encounter a use-after-free if allocation fails while unregistering a device. The failure can cause a device to be destroyed before readers stop using it. The input does not specify an attack path, authentication requirements, or user interaction.
Engineers running the Linux kernel with KVM should check their versions; affected versions are not specified in the input.