Linux
KVM: SEV: Do cache maintenance on the source VM during intra-host migration
In the Linux kernel, the following vulnerability has been resolved: KVM: SEV: Do cache maintenance on the source VM during intra-host migration Manually perform cache maintenance on the source VM during intra-host migration to ensure no stale data is left in CPU caches after the VM is destroyed. Because the source VM is "converted" to a non-SEV VM, KVM's memory reclaim flows won't trigger cache maintenance, e.g. when all guest memory is reclaimed in response to detaching from the mmu_notifier. Note, relying on the destination VM to do cache maintenance isn't an option as KVM doesn't require identical guest memory configurations, i.e. the source VM may have access to memory that the destination VM does not. Enforcing equivalent memory configurations is infeasible, as it would require a *deep* comparison of memslots, e.g. to verify that not only are the memslot identical, but what the memslots point at is also identical.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b56639318bb2be66aceba92836279714488709b4, < 37dfb676fafd1eef36fe0bb649607afbb0d5521b
- >= b56639318bb2be66aceba92836279714488709b4, < d4cc2dff12116a700add601c0262132cc26e1b2c
- >= b56639318bb2be66aceba92836279714488709b4, < 93de2a6a4b91b72607136dd656edf03fb399d27f
Fixed in 37dfb676fafd1eef36fe0bb649607afbb0d5521b, d4cc2dff12116a700add601c0262132cc26e1b2c, 93de2a6a4b91b72607136dd656edf03fb399d27f
- 5.16
Fixed in 0, 6.18.55, 7.2.9, 7.3
Mitigation
Upgrade Linux to 37dfb676fafd1eef36fe0bb649607afbb0d5521b or d4cc2dff12116a700add601c0262132cc26e1b2c or 93de2a6a4b91b72607136dd656edf03fb399d27f or later.
Upgrade Linux to 0 or 6.18.55 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.