CVE-2024-35987
riscv: Fix loading 64-bit NOMMU kernels past the start of RAM
Reported by linux · Published May 20, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.8.9, 6.6.30 |
| Linux | Linux | b008e327fa570aca210f98c817757649bae56694, aea702dde7e9876fb00571a2602f25130847bf0f, 6.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 3335068f87217ea59d08f462187dc856652eea15, 3335068f87217ea59d08f462187dc856652eea15, 3335068f87217ea59d08f462187dc856652eea15 |
| Linux | Linux | 6.4, 0, 6.6.30 |
| Linux | Linux | 6.8.9, 6.9, 3335068f87217ea59d08f462187dc856652eea15 |
| linux | linux_kernel | 6.4, 6.4, 6.4 |
Timeline
- May 20, 2024 CVE Published
- May 21, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (14 in total, the first dated here)
- Jan 10, 2026 Security Advisory (430 in total, the first dated here)
- Jan 10, 2026 CVE Updated
- Mar 31, 2026 Distribution Patch (325 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-35987
vulnetix vdb fixes CVE-2024-35987
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-35987/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart