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().
Published: 2026-08-15
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 DSA Debian DSA DSA-6466-1 linux security update
History

Sat, 22 Aug 2026 03:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122

Sat, 22 Aug 2026 00:15:00 +0000

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


Sat, 15 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122

Sat, 15 Aug 2026 12:45:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:21:07.108Z

Reserved: 2026-08-15T05:44:03.911Z

Link: CVE-2026-74524

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T13:17:57.660

Modified: 2026-08-17T06:19:49.290

Link: CVE-2026-74524

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-74524 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T05:00:13Z

Weaknesses