Linux
KVM: x86: Nullify irqfd->producer if updating IRTE for bypass fails
In 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]
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 77e1b8332d1d7aa786f7515e9bd4055def6a1e06, < d1379888cc4230bac647ec24ab83306afbd03e88
- >= 77e1b8332d1d7aa786f7515e9bd4055def6a1e06, < d5560b6569cd05ba72c6b33427fbabc6ec46b8cf
- >= 77e1b8332d1d7aa786f7515e9bd4055def6a1e06, < ed446e8aa894883c08892cfee69782fdf8f6c3ca
Fixed in d1379888cc4230bac647ec24ab83306afbd03e88, d5560b6569cd05ba72c6b33427fbabc6ec46b8cf, ed446e8aa894883c08892cfee69782fdf8f6c3ca
- 6.17
Fixed in 0, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to d1379888cc4230bac647ec24ab83306afbd03e88 or d5560b6569cd05ba72c6b33427fbabc6ec46b8cf or ed446e8aa894883c08892cfee69782fdf8f6c3ca or later.
Upgrade Linux to 0 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.