x86/kvm: Teardown PV features on boot CPU as well
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:
x86/kvm: Teardown PV features on boot CPU as well
Various PV features (Async PF, PV EOI, steal time) work through memory shared with hypervisor and when we restore from hibernation we must properly teardown all these features to make sure hypervisor doesn't write to stale locations after we jump to the previously hibernated kernel (which can try to place anything there). For secondary CPUs the job is already done by kvm_cpu_down_prepare(), register syscore ops to do the same for boot CPU.
From the CVE record · Linux
The Linux kernel did not tear down certain paravirtualized features on the boot CPU when restoring from hibernation. After restoration, the hypervisor could write to stale memory locations that the restored kernel may have reused. The input does not specify attacker access or user-interaction requirements.
Engineers running Linux kernels with x86/KVM paravirtualized features should check their kernel version; affected versions are not specified.