Skip to content
CVE PROGRAM SOURCE RECORD8.4 High

CVE-2024-35987

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

Description

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 3335068f87217ea59d08f462187dc856652eea15 to < b008e327fa570aca210f98c817757649bae56694affected
  • 3335068f87217ea59d08f462187dc856652eea15 to < ea6628e4e2353978af7e3b4ad4fdaab6149acf3daffected
  • 3335068f87217ea59d08f462187dc856652eea15 to < aea702dde7e9876fb00571a2602f25130847bf0faffected

Linux Linux

Default version status: affected

  • 6.4affected
  • 0 to < 6.4unaffected
  • 6.6.30 to ≤ 6.6.*unaffected
  • 6.8.9 to ≤ 6.8.*unaffected
  • 6.9 to ≤ *unaffected

References