PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2024-35987: 
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-35987 affects the Linux kernel, specifically related to RISC-V architecture. The vulnerability was discovered and disclosed on May 20, 2024. The issue involves incorrect handling of 64-bit NOMMU kernels when loading past the start of RAM, which was introduced by commit 3335068f8721 that added logic for using RAM below the kernel load address (Kernel Git).

Technical details

The vulnerability stems from a logic issue where PAGE_OFFSET is fixed to the kernel load address in NOMMU configurations. When memory corresponds to PFNs below ARCH_PFN_OFFSET, the mm initialization process runs off the beginning of mem_map and corrupts adjacent kernel memory. This occurs specifically in the RISC-V architecture's memory management implementation (Kernel Git).

Impact

The vulnerability can lead to kernel memory corruption in systems using 64-bit NOMMU kernels on RISC-V architecture. This affects the memory management subsystem and could potentially compromise system stability (Ubuntu Security).

Exploitability

The vulnerability specifically affects RISC-V systems running 64-bit NOMMU kernels. It requires specific hardware architecture and kernel configuration to be exploitable (NVD).

Mitigation and workarounds

The issue has been fixed in various Linux kernel versions. Ubuntu has released patches for affected versions, including linux-lowlatency 6.8.0-40.40.1 for Ubuntu 24.04 LTS. The fix involves restoring the previous behavior for NOMMU kernels by modifying the condition for setting kernel_map.va_pa_offset (Ubuntu Security).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

bullseye

linux

Fixed

sid

linux: 6.8.9-1

Fixed

trixie

linux: 6.8.9-1

Fixed

Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-98862MEDIUM6
  • Linux Kernel logoLinux Kernel
  • linux-iot
NoYesOct 18, 2026
CVE-2026-98859MEDIUM5.7
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-partner
NoYesOct 18, 2026
CVE-2026-98861MEDIUM4.7
  • Linux Kernel logoLinux Kernel
  • linux-fips
NoYesOct 18, 2026
CVE-2026-98863NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-riscv
NoYesOct 18, 2026
CVE-2026-98858NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-ibm-5.15
NoYesOct 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management