CVE-2024-35878: of: module: prevent NULL pointer dereference in vsnprintf()
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.
Security readout for executives and security teams
Plain-English summary
CVE-2024-35878 is a Linux kernel flaw that can crash affected systems by triggering a NULL pointer dereference in Open Firmware module alias handling. The published impact is availability only: no confidentiality or integrity impact is reported.
Executive priority
Treat this as a moderate availability risk. It is not described as data theft or privilege escalation, but unauthenticated network reachability in the CVSS vector makes patch tracking important for exposed or critical Linux services.
Technical view
The flaw is in of_modalias(), where invalid str and len parameters can reach vsnprintf(). NULL with nonzero length can cause an oops, and negative ssize_t lengths can become very large size_t values in snprintf-style handling. Upstream stable commits add parameter filtering.
Likely exposure
Exposure depends on whether systems run affected Linux kernel versions or downstream vendor kernels containing the vulnerable Open Firmware module code. The bundle lists Linux kernel 6.4 and affected ranges ending around 6.6.26, 6.8.5, and 6.9, but distro backport status must be checked.
Exploitation context
The CVSS vector is network, low complexity, no privileges, and no user interaction, with low availability impact. The source bundle does not identify public exploitation, proof-of-concept activity, or CISA KEV listing.
Researcher notes
Evidence is limited to the CVE record and upstream Linux stable references. The root cause is improper validation around of_modalias() parameters before formatted output handling. Avoid assuming exploitability beyond the published CVSS and availability impact.
Mitigation direction
Apply Linux kernel updates containing the referenced upstream stable commits.
Check distribution advisories for backported fixes matching your kernel package.
Prioritize internet-facing or availability-sensitive Linux systems first.
If no vendor package is available, follow vendor guidance for supported kernel upgrade paths.
Validation and detection
Inventory running kernel versions across Linux hosts.
Compare installed kernel packages against vendor advisories for CVE-2024-35878.
Confirm patched kernels include the relevant upstream stable fixes or backports.
Review monitoring for unexplained kernel oops or crash events on affected systems.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-476 · source CWE mapping
NULL Pointer Dereference
NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.