{"id":"CVE-2024-35987","summary":"riscv: Fix loading 64-bit NOMMU kernels past the start of RAM","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: Fix loading 64-bit NOMMU kernels past the start of RAM\n\ncommit 3335068f8721 (\"riscv: Use PUD/P4D/PGD pages for the linear\nmapping\") added logic to allow using RAM below the kernel load address.\nHowever, this does not work for NOMMU, where PAGE_OFFSET is fixed to the\nkernel load address. Since that range of memory corresponds to PFNs\nbelow ARCH_PFN_OFFSET, mm initialization runs off the beginning of\nmem_map and corrupts adjacent kernel memory. Fix this by restoring the\nprevious behavior for NOMMU kernels.","modified":"2026-04-02T10:10:03.561207Z","published":"2024-05-20T09:47:53.717Z","related":["MGASA-2024-0263","MGASA-2024-0266"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35987.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/aea702dde7e9876fb00571a2602f25130847bf0f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b008e327fa570aca210f98c817757649bae56694"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ea6628e4e2353978af7e3b4ad4fdaab6149acf3d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35987.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35987"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3335068f87217ea59d08f462187dc856652eea15"},{"fixed":"b008e327fa570aca210f98c817757649bae56694"},{"fixed":"ea6628e4e2353978af7e3b4ad4fdaab6149acf3d"},{"fixed":"aea702dde7e9876fb00571a2602f25130847bf0f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35987.json"}}],"schema_version":"1.7.5"}