CVE-2026-46113
Use-After-Free in Linux Kernel KVM x86 Shadow Paging
Publication date: 2026-05-28
Last updated on: 2026-05-28
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux_kernel | kvm | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
What immediate steps should I take to mitigate this vulnerability?
The vulnerability has been resolved in the Linux kernel by fixing the shadow paging use-after-free issue in KVM's x86 implementation. Immediate mitigation involves updating the Linux kernel to a version that includes this fix.
Since the issue is related to KVM's handling of shadow paging and guest page tables, applying the kernel update that contains the patch will prevent the use-after-free condition.
Can you explain this vulnerability to me?
This vulnerability exists in the Linux kernel's KVM (Kernel-based Virtual Machine) component related to x86 shadow paging. The issue arises because the shadow MMU incorrectly assumes that guest frame numbers (GFNs) for direct shadow pages are always within a certain range. When guest page tables are modified between virtual machine entries, this assumption breaks, leading to a use-after-free condition.
Specifically, when a large page mapping (2MB) is changed by the guest, KVM creates a kvm_mmu_page for the original mapping. If the mapping changes and the guest accesses a different page in the same area, KVM installs a new shadow page table entry (SPTE) with a GFN outside the original range. Because of this, the reverse mapping (rmap) entry cannot be found and removed properly when the kvm_mmu_page is invalidated.
As a result, operations that walk the rmap later may dereference a freed kvm_mmu_page, causing a use-after-free bug. The root cause is that KVM assumes the GFN matches the shadow page, which is not always true after guest modifications. The fix involves checking for GFN mismatches and properly zapping the old SPTE to prevent stale references.
How can this vulnerability impact me? :
This vulnerability can lead to a use-after-free condition within the KVM virtualization subsystem of the Linux kernel. Such a condition may cause system instability, crashes, or potentially allow an attacker with guest privileges to execute arbitrary code or escalate privileges on the host system.
Because the bug involves dereferencing freed memory due to stale reverse mappings, it could be exploited to compromise the integrity and security of the host running virtual machines, impacting the confidentiality, integrity, and availability of the system.