CVE-2024-35878 Details
Description
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 oops in vsnprintf() since it only allows passing a NULL ptr when the length is also 0. Also, we need to filter out the negative values of the len parameter as these will result in a really huge buffer since snprintf() takes size_t parameter while ours is ssize_t... Found by Linux Verification Center (linuxtesting.org) with the Svace static analysis tool.
A vulnerability in the Linux kernel's of_modalias() function can lead to a NULL pointer dereference in vsnprintf(), causing a kernel oops. This issue arises because of improper handling of the str and len parameters, which can be manipulated to pass a NULL pointer. The vulnerability affects the snprintf() function, which only accepts a NULL pointer when the length is zero. Additionally, negative values for the len parameter can create excessively large buffers, as snprintf() expects a size_t type while len is ssize_t. This vulnerability has been addressed in the Linux kernel stable tree.
Users can upgrade to the latest version of the Linux kernel stable tree where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 21, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | < 6.6.26 >= 6.7, < 6.8.5 6.9 rc1 6.9 rc2 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Apr 7, 2025 | Initial Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| Nov 12, 2024 | CVE Modified | CISA-ADP |
| May 29, 2024 | CVE Modified | kernel.org |
| May 19, 2024 | New CVE Received | kernel.org |