CVE-2026-74524

riscv: mm: Fix out-of-bounds page-table walk during memory hot-remove

Published Aug 15, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

riscv: mm: Fix out-of-bounds page-table walk during memory hot-remove

remove_pud_mapping() and remove_p4d_mapping() obtain a child table base
with pud_offset(p4dp, 0) and p4d_offset(pgd, 0), then add the index for
addr.

RISC-V folds page-table levels at runtime. When a level is folded, its
offset helper returns the parent entry itself, but the index can still be
nonzero. Adding it walks past the parent table. Sv48 folds P4D, while Sv39
folds both P4D and PUD, so memory hot-remove can descend into unrelated
memory and pass an invalid page to __free_pages(). This can trigger:

kernel BUG at include/linux/mm.h:1810!
VM_BUG_ON_PAGE(page_ref_count(page) == 0)
arch_remove_memory+0x1e/0x5c
try_remove_memory+0x15e/0x200
remove_memory+0x24/0x3c

Only add the index when the corresponding page-table level is enabled,
matching p4d_offset() and pud_offset().

Analysis

AI-generated

Technical impact

The vulnerability occurs when the Linux kernel performs a memory hot‑remove on a RISC‑V platform. The remove_pud_mapping() and remove_p4d_mapping() routines incorrectly calculate page‑table indices when page‑table levels are folded at runtime. The calculation can walk past the parent table and reference a page that is unrelated to the memory being removed. This results in the kernel triggering a BUG in mm.h through __free_pages(), producing an unhandled VM_BUG_ON_PAGE, and ultimately causing a kernel panic. The primary impact is a local denial‑of‑service attack that brings the entire system down to a crash state, as the kernel aborts execution.

Affected Systems

Any Linux kernel running on RISC‑V architectures is potentially affected, as the flaw is part of the generic mm implementation that applies to all RISC‑V builds. No specific kernel version range is provided in the advisory, so the vulnerability may exist in all releases that include the cited unpatched code until the patch is applied.

Risk and Exploitability

The CVSS score of 5.5 indicates a medium severity vulnerability, but the risk remains high because the flaw leads to a forced kernel crash. The advisory lists an EPSS score of <1% (approximately 0.00168), indicating a very low exploitation probability, yet the likelihood of exploitation is considered non‑negligible given the ease of triggering hot‑remove on systems that support dynamic memory changes. The vulnerability is not listed in the CISA KEV catalog. Attackers would need local or root privileges to execute memory hot‑remove or could abuse a privileged user’s ability to unload kernel modules that perform such operations.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the patch for the out‑of‑bounds page‑table walk, such as the commits referenced in the advisory.
  • After updating, reboot the system to load the fixed kernel and ensure the hot‑remove functionality is correctly initialized.
  • If the system does not require dynamic memory hot‑remove, disable the feature (e.g., via sysctl or boot parameter) and restrict privileged users from performing memory hot‑remove operations to reduce attack surface.

Generated by OpenCVE AI on August 22, 2026 at 04:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4788-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6466-1 linux security update
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-122
Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-122
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: riscv: mm: Fix out-of-bounds page-table walk during memory hot-remove remove_pud_mapping() and remove_p4d_mapping() obtain a child table base with pud_offset(p4dp, 0) and p4d_offset(pgd, 0), then add the index for addr. RISC-V folds page-table levels at runtime. When a level is folded, its offset helper returns the parent entry itself, but the index can still be nonzero. Adding it walks past the parent table. Sv48 folds P4D, while Sv39 folds both P4D and PUD, so memory hot-remove can descend into unrelated memory and pass an invalid page to __free_pages(). This can trigger: kernel BUG at include/linux/mm.h:1810! VM_BUG_ON_PAGE(page_ref_count(page) == 0) arch_remove_memory+0x1e/0x5c try_remove_memory+0x15e/0x200 remove_memory+0x24/0x3c Only add the index when the corresponding page-table level is enabled, matching p4d_offset() and pud_offset().
Title riscv: mm: Fix out-of-bounds page-table walk during memory hot-remove
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 17, 2026, 5:21 AM
Reserved
Aug 15, 2026, 5:44 AM
Status
Received
Published
Aug 15, 2026, 1:17 PM
Modified
Aug 17, 2026, 6:19 AM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM