KVM: VMX: Prevent RSB underflow before vmenter
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
KVM: VMX: Prevent RSB underflow before vmenter
On VMX, there are some balanced returns between the time the guest's SPEC_CTRL value is written, and the vmenter.
Balanced returns (matched by a preceding call) are usually ok, but it's at least theoretically possible an NMI with a deep call stack could empty the RSB before one of the returns.
For maximum paranoia, don't allow *any* returns (balanced or otherwise) between the SPEC_CTRL write and the vmenter.
[ bp: Fix 32-bit build. ]
From the CVE record · Linux
The Linux kernel’s KVM VMX code could allow the return stack buffer (RSB) to underflow between writing a guest’s SPEC_CTRL value and entering the guest. An NMI with a deep call stack could trigger this condition. The input does not describe an attacker action, access requirement, or user interaction.
Engineers running Linux kernels with KVM VMX should check their deployments; affected versions are not specified.