Linux Kernel Out-of-Bounds Vulnerability in Vmemmap Address Calculation on RISC-V

Vulnerability

A vulnerability in the Linux kernel's RISC-V architecture has been addressed, concerning an out-of-bounds issue in the vmemmap address calculation. In the sparse vmemmap model, the virtual address for vmemmap is derived from the VMEMMAP_START and the physical RAM base. However, the kernel initializes struct pages starting from the first page in the same section as the physical RAM base. If this first page's physical address does not align with the expected value, the calculated virtual address can fall below VMEMMAP_START, leading to an out-of-bounds condition. This vulnerability could cause issues during the initialization of unavailable memory ranges by misaligning the virtual addresses of certain struct pages.

Impact

The vulnerability could lead to incorrect virtual address mappings for struct pages, potentially causing memory access violations or corruption.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.0
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

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