CVE-2024-35878: linux-libc-dev - Prevent NULL pointer dereference in vsnprintf()

linux Updated 02 Oct 2025

Summary

19/05/2024
No i
Unrated
Not published

CVE-2024-35878: In the Linux kernel, the following vulnerability has been resolved: of: module: prevent NULL pointer dereference in vsnprintf() In of_modalias(), we can get passed the str and len parameters which would cause a kernel oo... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

linux-libc-dev is a package in the Linux kernel that provides the C library headers for the Linux system. It is used by developers to compile and build applications for the Linux operating system. The linux-libc-dev package contains the necessary header files and libraries for building programs that use the standard C library functions. This vulnerability affects the linux-libc-dev package version 6.1.90-1.

Vulnerability Detail

The vulnerability CVE-2024-35878 in the linux-libc-dev package has been resolved. The vulnerability was found in the of_modalias() function, where a NULL pointer dereference could occur in vsnprintf(). This could lead to a kernel oops, causing a denial of service. The issue arises when the str and len parameters are passed, which can result in a kernel oops in vsnprintf() since it only allows passing a NULL pointer when the length is also 0. Additionally, negative values of the len parameter need to be filtered out, as they can result in a large buffer size. This vulnerability was discovered by the Linux Verification Center using the Svace static analysis tool.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to apply the fix by updating the linux-libc-dev package to the latest version.

Conclusion

The vulnerability CVE-2024-35878 in the linux-libc-dev package has been resolved. Users are advised to update the linux-libc-dev package to version 6.1.90-2 or later to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

linux-libc-dev is a package in the Linux kernel that provides the C library headers for the Linux system. It is used by developers to compile and build applications for the Linux operating system.

The vulnerability can lead to a kernel oops, causing a denial of service. An attacker may be able to exploit this vulnerability to crash the system or cause other disruptions.

This vulnerability was discovered by the Linux Verification Center using the Svace static analysis tool.

Yes, a fix for this vulnerability is available. Users should update the linux-libc-dev package to version 6.1.90-2 or later.

There is no known workaround for this vulnerability. It is recommended to apply the fix by updating the linux-libc-dev package to the latest version.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback