KVM: x86: Nullify irqfd->producer if updating IRTE for bypass fails
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.407.1.57.2In the Linux kernel, the following vulnerability has been resolved:
KVM: x86: Nullify irqfd->producer if updating IRTE for bypass fails
Nullify irqfd->producer if updating the IRTE for bypass fails, as leaving a dangling pointer will result in a use-after-free if the irqfd is reachable through KVM's routing, but the producer is freed separately. E.g. for VFIO PCI, the producer is embedded in struct "vfio_pci_irq_ctx" and freed when the vector is disabled, which can happen independent of routing updates.
[sean: drop PPC change, massage changelog]
From the CVE record · Linux
KVM on x86 can leave a dangling irqfd producer pointer when updating the IRTE for bypass fails. If the irqfd remains reachable through KVM routing and the producer is freed separately, this can result in a use-after-free. The input does not specify attacker access or user-interaction requirements.
Engineers running Linux kernels with KVM on x86 should check their versions against the vendor advisory; affected versions were not provided.