CVE-2024-35878
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-35878 is a NULL pointer dereference vulnerability discovered in the Linux kernel's device tree and open firmware driver module. The vulnerability was identified in the of_modalias() function where improper handling of str and len parameters could cause a kernel oops in vsnprintf(). The issue was discovered by the Linux Verification Center (linuxtesting.org) using their Svace static analysis tool (Kernel Git).

Technical details

The vulnerability occurs in the Linux kernel's of_modalias() function where the vsnprintf() function only allows passing a NULL pointer when the length parameter is also 0. Additionally, negative values of the len parameter could result in a buffer overflow since snprintf() takes a size_t parameter while the function uses ssize_t. The issue has been assigned a CVSS v3.1 Base Score of 5.3 (MEDIUM) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (NVD).

Impact

When exploited, this vulnerability could cause a kernel oops (crash) through a NULL pointer dereference, potentially leading to a denial of service condition. The impact is primarily focused on system availability, with no direct impact on confidentiality or integrity (CISA-ADP).

Exploitability

The vulnerability requires passing specific parameters to the of_modalias() function, where either a NULL pointer is passed with a non-zero length, or a negative length value is provided. The issue has been classified as having low attack complexity and requiring no privileges or user interaction (NVD).

Mitigation and workarounds

The vulnerability has been patched in the Linux kernel by adding input validation checks. The fix ensures that if the length parameter is greater than 0 and the string pointer is NULL, or if the length is negative, the function returns -EINVAL. The patch has been merged into the mainline kernel and is being backported to stable kernel versions (Kernel Git).

Additional resources


SourceThis 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-68450NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-core
NoYesAug 12, 2026
CVE-2026-68449NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 12, 2026
CVE-2026-68448NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesAug 12, 2026
CVE-2026-68447NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-modules
NoYesAug 12, 2026
CVE-2026-68446NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 12, 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