Linux
KVM: arm64: nv: Delay freeing of shadow S2 structures until VM destruction
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: nv: Delay freeing of shadow S2 structures until VM destruction We free the shadow S2 structures from kvm_arch_flush_shadow_all(), which is a Bad Idea(tm). Freeing the page tables is fair game (this is what this callback is for), but freeing the container that could still be referenced by another part of the system is not great. Instead, grow separate destructors that gets called when we tear the VM down for good. From there, we can nuke both the individual MMUs as well as the global array that points to them, safe in the knowledge that the vcpus themselves have been destroyed already.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4f128f8e1aaac189f83d0f828bcdb2986d8d2e51, < 876049f026b4dfaca0cc78ec81be0e639ca8525d
- >= 4f128f8e1aaac189f83d0f828bcdb2986d8d2e51, < 22e82acec93a681071ed36f70eabe2d0c4e0bebd
- >= 4f128f8e1aaac189f83d0f828bcdb2986d8d2e51, < 5bf1c9175e657b3c2dc1cf77403031ac7aadcf66
- >= 4f128f8e1aaac189f83d0f828bcdb2986d8d2e51, < e5843f4effaa2ffac3e789ecd4456403564961d4
Fixed in 876049f026b4dfaca0cc78ec81be0e639ca8525d, 22e82acec93a681071ed36f70eabe2d0c4e0bebd, 5bf1c9175e657b3c2dc1cf77403031ac7aadcf66, e5843f4effaa2ffac3e789ecd4456403564961d4
- 6.11
Fixed in 0, 6.12.113, 6.18.56, 7.2.9, 7.3
Mitigation
Upgrade Linux to 876049f026b4dfaca0cc78ec81be0e639ca8525d or 22e82acec93a681071ed36f70eabe2d0c4e0bebd or 5bf1c9175e657b3c2dc1cf77403031ac7aadcf66 or e5843f4effaa2ffac3e789ecd4456403564961d4 or later.
Upgrade Linux to 0 or 6.12.113 or 6.18.56 or 7.2.9 or 7.3 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.