CVEvulnerability
CVE-2024-35987
5.5 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2024-05-20
- Last modified
- 2026-08-04
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)
- 8.4 HIGH — CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
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 configurations
• linux linux kernel (>= 6.4 < 6.6.30)
• linux linux kernel (>= 6.7 < 6.8.9)
• linux linux kernel 6.9
References
- https://git.kernel.org/stable/c/aea702dde7e9876fb00571a2602f25130847bf0f Patch
- https://git.kernel.org/stable/c/b008e327fa570aca210f98c817757649bae56694 Patch
- https://git.kernel.org/stable/c/ea6628e4e2353978af7e3b4ad4fdaab6149acf3d Patch
- https://git.kernel.org/stable/c/aea702dde7e9876fb00571a2602f25130847bf0f Patch
- https://git.kernel.org/stable/c/b008e327fa570aca210f98c817757649bae56694 Patch
- https://git.kernel.org/stable/c/ea6628e4e2353978af7e3b4ad4fdaab6149acf3d Patch