VDB

CVE-2024-35987

CVE-2024-35987 PUBLISHED CVSS 8.4 HIGH

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.

PackageEcosystemFixed in
linux_kernellinux6.8.9, 6.6.30
LinuxLinuxb008e327fa570aca210f98c817757649bae56694, aea702dde7e9876fb00571a2602f25130847bf0f, 6.4

Risk scores

CVSS 3.1
8.4
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux3335068f87217ea59d08f462187dc856652eea15, 3335068f87217ea59d08f462187dc856652eea15, 3335068f87217ea59d08f462187dc856652eea15
LinuxLinux6.4, 0, 6.6.30
LinuxLinux6.8.9, 6.9, 3335068f87217ea59d08f462187dc856652eea15
linuxlinux_kernel6.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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›