CVE-2024-35987

published 20 May 2024 · updated 5 Aug 2026

riscv: Fix loading 64-bit NOMMU kernels past the start of RAM

8.4HighCVSS 8.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel aea702dde7e9876fb00571a2602f25130847bf0f, Kernel b008e327fa570aca210f98c817757649bae56694 and Kernel ea6628e4e2353978af7e3b4ad4fdaab6149acf3d.

In the Linux kernel, the following vulnerability has been resolved: riscv: Fix loading 64-bit NOMMU kernels past the start of RAM commit 3335068f8721 ("riscv: Use PUD/P4D/PGD pages for the linear mapping") added logic to allow using RAM below the kernel load address. However, this does not work for NOMMU, where PAGE_OFFSET is fixed to the kernel load address. Since that range of memory corresponds to PFNs below ARCH_PFN_OFFSET, mm initialization runs off the beginning of mem_map and corrupts adjacent kernel memory. Fix this by restoring the previous behavior for NOMMU kernels.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.4, >=3335068f87217ea59d08f462187dc856652eea15 <aea702dde7e9876fb00571a2602f25130847bf0f, >=3335068f87217ea59d08f462187dc856652eea15 <b008e327fa570aca210f98c817757649bae56694, >=3335068f87217ea59d08f462187dc856652eea15 <ea6628e4e2353978af7e3b4ad4fdaab6149acf3daea702dde7e9876fb00571a2602f25130847bf0f, b008e327fa570aca210f98c817757649bae56694, ea6628e4e2353978af7e3b4ad4fdaab6149acf3d

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-35987 severity on Zeptric[![CVE-2024-35987](https://zeptric.io/badge/cve/CVE-2024-35987.svg)](https://zeptric.io/cve/CVE-2024-35987)