CVE-2026-98471: KVM: SEV: Do cache maintenance on the source VM during intra-host migration
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-98471 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.16 with commit b56639318bb2be66aceba92836279714488709b4 and fixed in 6.18.55 with commit 37dfb676fafd1eef36fe0bb649607afbb0d5521b Issue introduced in 5.16 with commit b56639318bb2be66aceba92836279714488709b4 and fixed in 7.2.9 with commit d4cc2dff12116a700add601c0262132cc26e1b2c Issue introduced in 5.16 with commit b56639318bb2be66aceba92836279714488709b4 and fixed in 7.3-rc5 with commit 93de2a6a4b91b72607136dd656edf03fb399d27f
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98471
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
arch/x86/kvm/svm/sev.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/37dfb676fafd1eef36fe0bb649607afbb0d5521b https://git.kernel.org/stable/c/d4cc2dff12116a700add601c0262132cc26e1b2c https://git.kernel.org/stable/c/93de2a6a4b91b72607136dd656edf03fb399d27f