Linux
KVM: x86: Reset IRTE to host control if *new* route isn't postable
In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Reset IRTE to host control if *new* route isn't postable Restore an IRTE back to host control (remapped or posted MSI mode) if the *new* GSI route prevents posting the IRQ directly to a vCPU, regardless of the GSI routing type. Updating the IRTE if and only if the new GSI is an MSI results in KVM leaving an IRTE posting to a vCPU. The dangling IRTE can result in interrupts being incorrectly delivered to the guest, and in the worst case scenario can result in use-after-free, e.g. if the VM is torn down, but the underlying host IRQ isn't freed.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= efc644048ecde54f016011fe10110addd0de348f, < e5f2dee9f7fcd2ff4b97869f3c66a0d89c167769
- >= efc644048ecde54f016011fe10110addd0de348f, < 116c7d35b8f72eac383b9fd371d7c1a8ffc2968b
- >= efc644048ecde54f016011fe10110addd0de348f, < 023816bd5fa46fab94d1e7917fe131b79ed1fb41
- >= efc644048ecde54f016011fe10110addd0de348f, < 3481fd96d801715942b6f69fe251133128156f30
- >= efc644048ecde54f016011fe10110addd0de348f, < b5de7ac74f69603ad803c524b840bffd36368fc3
- >= efc644048ecde54f016011fe10110addd0de348f, < 3066ec21d1a33896125747f68638725f456308db
- >= efc644048ecde54f016011fe10110addd0de348f, < 9bcac97dc42d2f4da8229d18feb0fe2b1ce523a2
Fixed in e5f2dee9f7fcd2ff4b97869f3c66a0d89c167769, 116c7d35b8f72eac383b9fd371d7c1a8ffc2968b, 023816bd5fa46fab94d1e7917fe131b79ed1fb41, 3481fd96d801715942b6f69fe251133128156f30, b5de7ac74f69603ad803c524b840bffd36368fc3, 3066ec21d1a33896125747f68638725f456308db, 9bcac97dc42d2f4da8229d18feb0fe2b1ce523a2
- 4.4
Fixed in 0, 5.10.237, 5.15.181, 6.1.136, 6.6.89, 6.12.26, 6.14.5, 6.15
Mitigation
Upgrade Linux to e5f2dee9f7fcd2ff4b97869f3c66a0d89c167769 or 116c7d35b8f72eac383b9fd371d7c1a8ffc2968b or 023816bd5fa46fab94d1e7917fe131b79ed1fb41 or 3481fd96d801715942b6f69fe251133128156f30 or b5de7ac74f69603ad803c524b840bffd36368fc3 or 3066ec21d1a33896125747f68638725f456308db or 9bcac97dc42d2f4da8229d18feb0fe2b1ce523a2 or later.
Upgrade Linux to 0 or 5.10.237 or 5.15.181 or 6.1.136 or 6.6.89 or 6.12.26 or 6.14.5 or 6.15 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.