Linux Kernel KVM Hugepage Memory Slot Validation Vulnerability

Vulnerability

A vulnerability in the Linux kernel's KVM module for x86 architecture can lead to out-of-bounds memory access when handling hugepages in the shadow memory management unit (MMU). This issue arises because the kernel fails to verify that the guest's hugepage mappings are within the bounds of the designated memory slot before checking the maximum allowable mapping level. If a guest mapping extends beyond the slot's limits, it can cause a page fault in the host, as the associated page information is allocated in a way that is not resilient to such overflows. The problem is exacerbated when the guest's memory usage exceeds KVM's current mapping capabilities, prompting KVM to create a direct shadow page that may link to an out-of-bounds guest frame number.

Impact

Exploitation of this vulnerability leads to a page fault in the host, caused by a supervisor read access in kernel mode, attempting to access a non-present page. This faulting behavior indicates a critical failure in memory management, potentially disrupting the stability and reliability of the virtualized environment.

Reproduction

The vulnerability can be reproduced by configuring a KVM virtual machine that uses hugepages and memory mappings extending beyond the bounds of the allocated memory slots. This can be achieved by creating a guest workload that generates such mappings, while KVM is set to manage memory in a way that does not properly enforce the slot boundaries.

Remediation

Users can update to the latest stable version of the Linux kernel, where this vulnerability has been addressed. Instructions for downloading the patched version are available on the official Linux kernel website.

Added: Jul 19, 2026, 12:47 PM
Updated: Jul 19, 2026, 12:47 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
3.1
exploitability
3.9
remediation
7.7
relevance
9.7
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.