Linux
KVM: nSVM: Raise #UD if unhandled VMMCALL isn't intercepted by L1
In the Linux kernel, the following vulnerability has been resolved: KVM: nSVM: Raise #UD if unhandled VMMCALL isn't intercepted by L1 Explicitly synthesize a #UD for VMMCALL if L2 is active, L1 does NOT want to intercept VMMCALL, nested_svm_l2_tlb_flush_enabled() is true, and the hypercall is something other than one of the supported Hyper-V hypercalls. When all of the above conditions are met, KVM will intercept VMMCALL but never forward it to L1, i.e. will let L2 make hypercalls as if it were L1. The TLFS says a whole lot of nothing about this scenario, so go with the architectural behavior, which says that VMMCALL #UDs if it's not intercepted. Opportunistically do a 2-for-1 stub trade by stub-ifying the new API instead of the helpers it uses. The last remaining "single" stub will soon be dropped as well. [sean: rewrite changelog and comment, tag for stable, remove defunct stubs]
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3f4a812edf5cb0a50e65fbdfafdb3e688da18f16, < fcef67506c0234935cb0fb026740a637edb58d7c
- >= 3f4a812edf5cb0a50e65fbdfafdb3e688da18f16, < 924d721fae95687acedbaf624a094ed0e8b67104
- >= 3f4a812edf5cb0a50e65fbdfafdb3e688da18f16, < 009c0f726abeaa67aad1d96b883bdce01d405ce2
- >= 3f4a812edf5cb0a50e65fbdfafdb3e688da18f16, < 5fb4a5f361565f5b629d8a8fe5288ce8463c5727
- >= 3f4a812edf5cb0a50e65fbdfafdb3e688da18f16, < c36991c6f8d2ab56ee67aff04e3c357f45cfc76c
Fixed in fcef67506c0234935cb0fb026740a637edb58d7c, 924d721fae95687acedbaf624a094ed0e8b67104, 009c0f726abeaa67aad1d96b883bdce01d405ce2, 5fb4a5f361565f5b629d8a8fe5288ce8463c5727, c36991c6f8d2ab56ee67aff04e3c357f45cfc76c
- 6.2
Fixed in 0, 6.6.160, 6.12.86, 6.18.27, 7.0.4, 7.1
Mitigation
Upgrade Linux to fcef67506c0234935cb0fb026740a637edb58d7c or 924d721fae95687acedbaf624a094ed0e8b67104 or 009c0f726abeaa67aad1d96b883bdce01d405ce2 or 5fb4a5f361565f5b629d8a8fe5288ce8463c5727 or c36991c6f8d2ab56ee67aff04e3c357f45cfc76c or later.
Upgrade Linux to 0 or 6.6.160 or 6.12.86 or 6.18.27 or 7.0.4 or 7.1 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.