KVM: nVMX: Process each host MSR entry at most once when unwinding failed VM-Entry
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c33ef9d334059f7cb167569ed7b4779752fe4425, Kernel 4.15, Kernel 4.20 and 6 more.
In the Linux kernel, the following vulnerability has been resolved: KVM: nVMX: Process each host MSR entry at most once when unwinding failed VM-Entry Add a missing "break" in the inner for-loop of the open coded mess that unwinds MSRs back to the pre-VM-Enter state when VMLAUNCH/VMRESUME VM-Fails due to a consistency check that is caught by hardware but missed by KVM. I.e. move on to the next MSR in the VM-Entry load list after performing a write using a value found in the VM-Exit load list. Processing *every* matching entry in the VM-Exit load list makes the processing quadratic, which is problematic if the load lists are full of MSRs that are expensive to emulate. E.g. writing APIC_BASE triggers kvm_recalculate_apic_map() and a whole pile of unnecessary work. Functionally, arbitrarily restoring the value of the first matching entry is "fine", because none of this is architecturally correct: the load lists are never supposed to have been used in the first place. In practice, it's likely a moot point as no well-behaved VMM will have multiple, diverging entries in the load lists.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=bd18bffca35397214ae68d85cf7203aca25c3c1d <c33ef9d334059f7cb167569ed7b4779752fe4425, >=4.14.113 <4.15, >=4.19.36 <4.20, >=bd18bffca35397214ae68d85cf7203aca25c3c1d <05fae367c6878d08f54a7c5bb6986a5e57e9bd1c, >=bd18bffca35397214ae68d85cf7203aca25c3c1d <42b98982aedf40f5076bf045bf359df4dea09468, >=bd18bffca35397214ae68d85cf7203aca25c3c1d <6a4697ec81693f8db41a1c3ba81f3b9b2510879f, =05e788500b46cb3c45231ea51a3e4b36c2ccd3c0, =4.20, =f35e2a685c8168cbe2b92def87b0c6c0d6b19152 | c33ef9d334059f7cb167569ed7b4779752fe4425, 4.15, 4.20, 05fae367c6878d08f54a7c5bb6986a5e57e9bd1c, 42b98982aedf40f5076bf045bf359df4dea09468, 6a4697ec81693f8db41a1c3ba81f3b9b2510879f |
| linux-kernel: Kernel | >=4.19.36 <4.20, >=4.20.0 <6.12.118, >=6.13.0 <6.18.64, >=6.19.0 <7.3.5, >=4.14.113 <4.15 | 4.20, 6.12.118, 6.18.64, 7.3.5, 4.15 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket