CVE-2026-90040

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
16/09/2026
Last modified:
19/10/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> KVM: SEV: Forcefully invalidate SNP VMSA if its backing gmem page is zapped<br /> <br /> Wire up a gmem_invalidate_range() call for SNP VMs, and use it to force<br /> vCPUs to reload/recheck their guest-provided VMSA if the backing gmem<br /> page is being invalidated, e.g. is being PUNCH_HOLE&amp;#39;d. Use the same core<br /> logic to handle invalidations as VMX does for the APIC-access page, as the<br /> two concepts are nearly identical: shove the physical address of a page<br /> into the vCPU&amp;#39;s control structure:<br /> <br /> 1. Snapshot the invalidation sequence counter<br /> 2. Grab the pfn (from guest_memfd in this case)<br /> 3. Acquire mmu_lock for read<br /> 4. Re-request reload if retry is needed, otherwise commit the change.<br /> <br /> Note, the re-request action in #4 is necessary as KVM&amp;#39;s retry logic is<br /> fuzzy, i.e. can get false positives. If the guest_memfd page has been<br /> dropped, at some point a subsequent reload will fail to get a PFN from<br /> guest_memfd, and KVM will fail KVM_RUN. If the retry was due to a false<br /> positive, KVM will retry until there are no relevant MMU notifier events<br /> (and will retry in the "outer" loop, i.e. will drop locks and resched as<br /> needed).<br /> <br /> Note #2! Take care to invalidate the VMSA when a relevant memslot is<br /> DELETED or MOVED, as invalidations in response to PUNCH_HOLE are predicated<br /> on memslot bindings (KVM doesn&amp;#39;t know what GFN range(s) to invalidate<br /> without a binding). And more importantly, the VMSA mapping requires a<br /> memslot, i.e. must be invalidated if its memslots disappears, regardless of<br /> the state of the underlying guest_memfd inode.<br /> <br /> Failure to invalidate the vCPU&amp;#39;s control.vmsa_pa (which is checked by<br /> pre_sev_run()) can prevent KVM from properly freeing the page as firmware<br /> will reject the RMPUPDATE to reclaim the page with FAIL_INUSE if the vCPU<br /> is actively running, i.e. if VMSA page is in-use. That in turn leads to an<br /> RMP #PF on the next use, as the page will still be assigned to the SNP VM.<br /> <br /> SEV-SNP: RMPUPDATE failed for PFN 78d198, pg_level: 1, ret: 3<br /> SEV-SNP: PFN 0x78d198, RMP entry: [0xfff0000000144001 - 0x000000000000000f]<br /> CPU: 3 UID: 0 PID: 31345 Comm: sev_snp_vmsa_pu Tainted: G U O<br /> Tainted: [U]=USER, [O]=OOT_MODULE<br /> Hardware name: Google, Inc. Arcadia_IT_80/Arcadia_IT_80, BIOS 34.86.0-102 01/25/2026<br /> Call Trace:<br /> <br /> dump_stack_lvl+0x54/0x70<br /> rmpupdate+0x12c/0x140<br /> rmp_make_shared+0x3b/0x60<br /> sev_gmem_invalidate+0xe0/0x170 [kvm_amd]<br /> delete_from_page_cache_batch+0x1d8/0x220<br /> truncate_inode_pages_range+0x120/0x3d0<br /> kvm_gmem_fallocate+0x19a/0x270 [kvm]<br /> vfs_fallocate+0x1bc/0x1f0<br /> __x64_sys_fallocate+0x48/0x70<br /> do_syscall_64+0x10a/0x480<br /> entry_SYSCALL_64_after_hwframe+0x4b/0x53<br /> RIP: 0033:0x496c7e<br /> <br /> ------------[ cut here ]------------<br /> SEV: Failed to update RMP entry for PFN 0x78d198 error -14<br /> WARNING: arch/x86/kvm/svm/sev.c:5160 at sev_gmem_invalidate+0x126/0x170 [kvm_amd], CPU#3: sev_snp_vmsa_pu/31345<br /> CPU: 3 UID: 0 PID: 31345 Comm: sev_snp_vmsa_pu Tainted: G U O<br /> Tainted: [U]=USER, [O]=OOT_MODULE<br /> Hardware name: Google, Inc. Arcadia_IT_80/Arcadia_IT_80, BIOS 34.86.0-102 01/25/2026<br /> RIP: 0010:sev_gmem_invalidate+0x12b/0x170 [kvm_amd]<br /> Call Trace:<br /> <br /> delete_from_page_cache_batch+0x1d8/0x220<br /> truncate_inode_pages_range+0x120/0x3d0<br /> kvm_gmem_fallocate+0x19a/0x270 [kvm]<br /> vfs_fallocate+0x1bc/0x1f0<br /> __x64_sys_fallocate+0x48/0x70<br /> do_syscall_64+0x10a/0x480<br /> entry_SYSCALL_64_after_hwframe+0x4b/0x53<br /> RIP: 0033:0x496c7e<br /> <br /> irq event stamp: 20689<br /> hardirqs last enabled at (20699): [] __console_unlock+0x5c/0x60<br /> hardirqs last disabled at (20708): [] __console_unlock+0x41/0x60<br /> softirqs last enabled at (20722): [] __irq_exit_rcu+0x7e/0x140<br /> softirqs last disabled at (20717): [] __irq_exit_rcu+0x7e/0x140<br /> ---[ end trace 0000000000000000 ]---<br /> BUG: unable to handle page fault for address: ffff99<br /> ---truncated---

Impact