CVE-2024-35878: linux-libc-dev - Prevent NULL pointer dereference in vsnprintf()
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.