CVE-2024-35987

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:*

History

24 Sep 2025, 18:16

Type Values Removed Values Added
First Time Linux linux Kernel
Linux
CWE NVD-CWE-noinfo
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
References () https://git.kernel.org/stable/c/aea702dde7e9876fb00571a2602f25130847bf0f - () https://git.kernel.org/stable/c/aea702dde7e9876fb00571a2602f25130847bf0f - Patch
References () https://git.kernel.org/stable/c/b008e327fa570aca210f98c817757649bae56694 - () https://git.kernel.org/stable/c/b008e327fa570aca210f98c817757649bae56694 - Patch
References () https://git.kernel.org/stable/c/ea6628e4e2353978af7e3b4ad4fdaab6149acf3d - () https://git.kernel.org/stable/c/ea6628e4e2353978af7e3b4ad4fdaab6149acf3d - Patch
CPE cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:*

21 Nov 2024, 09:21

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, se resolvió la siguiente vulnerabilidad: riscv: se corrigió la carga de kernels NOMMU de 64 bits después del inicio de la confirmación de RAM. 3335068f8721 ("riscv: use páginas PUD/P4D/PGD para el mapeo lineal") se agregó lógica para permitir el uso RAM debajo de la dirección de carga del kernel. Sin embargo, esto no funciona para NOMMU, donde PAGE_OFFSET está fijado a la dirección de carga del kernel. Dado que ese rango de memoria corresponde a los PFN por debajo de ARCH_PFN_OFFSET, la inicialización de mm se ejecuta desde el principio de mem_map y corrompe la memoria del kernel adyacente. Solucione este problema restaurando el comportamiento anterior de los núcleos NOMMU.
References () https://git.kernel.org/stable/c/aea702dde7e9876fb00571a2602f25130847bf0f - () https://git.kernel.org/stable/c/aea702dde7e9876fb00571a2602f25130847bf0f -
References () https://git.kernel.org/stable/c/b008e327fa570aca210f98c817757649bae56694 - () https://git.kernel.org/stable/c/b008e327fa570aca210f98c817757649bae56694 -
References () https://git.kernel.org/stable/c/ea6628e4e2353978af7e3b4ad4fdaab6149acf3d - () https://git.kernel.org/stable/c/ea6628e4e2353978af7e3b4ad4fdaab6149acf3d -

20 May 2024, 10:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-05-20 10:15

Updated : 2025-09-24 18:16


NVD link : CVE-2024-35987

Mitre link : CVE-2024-35987

CVE.ORG link : CVE-2024-35987


JSON object : View

Products Affected

linux

  • linux_kernel