KVM: nSVM: Triple fault if restore host CR3 fails on nested #VMEXIT
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e6318570a9b4e137b0b744832b920b38bb069561, Kernel 5d291ef0585ed880ed4dd71ea1a5965e0a65fb53, Kernel 9a738cf170a4a2332ea3a15e23ec65b5757fe4a1 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: KVM: nSVM: Triple fault if restore host CR3 fails on nested #VMEXIT If loading L1's CR3 fails on a nested #VMEXIT, nested_svm_vmexit() returns an error code that is ignored by most callers, and continues to run L1 with corrupted state. A sane recovery is not possible in this case, and HW behavior is to cause a shutdown. Inject a triple fault instead, and do not return early from nested_svm_vmexit(). Continue cleaning up the vCPU state (e.g. clear pending exceptions), to handle the failure as gracefully as possible. From the APM: Upon #VMEXIT, the processor performs the following actions in order to return to the host execution context: ... if (illegal host state loaded, or exception while loading host state) shutdown else execute first host instruction following the VMRUN Remove the return value of nested_svm_vmexit(), which is mostly unchecked anyway.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=d82aaef9c88aa27bce63751d6d6329920b1fe8da <e6318570a9b4e137b0b744832b920b38bb069561, >=d82aaef9c88aa27bce63751d6d6329920b1fe8da <5d291ef0585ed880ed4dd71ea1a5965e0a65fb53, >=d82aaef9c88aa27bce63751d6d6329920b1fe8da <9a738cf170a4a2332ea3a15e23ec65b5757fe4a1, >=d82aaef9c88aa27bce63751d6d6329920b1fe8da <af79992ecdb6817970d757fb5d853b8d9b55a0d6, >=d82aaef9c88aa27bce63751d6d6329920b1fe8da <b0eb0a8959ac2b808eb11548d002fe1f9b5650cc, >=5.9 <7.0.4, =5.9, >=d82aaef9c88aa27bce63751d6d6329920b1fe8da <2e661773890e6ba6b16064fad961da3dd311be43 | e6318570a9b4e137b0b744832b920b38bb069561, 5d291ef0585ed880ed4dd71ea1a5965e0a65fb53, 9a738cf170a4a2332ea3a15e23ec65b5757fe4a1, af79992ecdb6817970d757fb5d853b8d9b55a0d6, b0eb0a8959ac2b808eb11548d002fe1f9b5650cc, 7.0.4, 2e661773890e6ba6b16064fad961da3dd311be43 |
| linux-kernel: Kernel | >=5.9.0 <6.1.191, >=6.13.0 <6.18.57, >=6.19.0 <7.0.4, >=6.2.0 <6.6.160, >=6.7.0 <6.12.114 | 6.1.191, 6.18.57, 7.0.4, 6.6.160, 6.12.114 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket