CVE-2024-35878
of: module: prevent NULL pointer dereference in vsnprintf()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= bd7a7ed774afd1a4174df34227626c95573be517, < e4a449368a2ce6d57a775d0ead27fc07f5a86e5b; >= bd7a7ed774afd1a4174df34227626c95573be517, < 544561dc56f7e69a053c25e11e6170f48bb97898; >= bd7a7ed774afd1a4174df34227626c95573be517, < a1aa5390cc912934fee76ce80af5f940452fa987
- Anyone running Linux 6.4
Vulnerability facts
- Affected
- Linux >= bd7a7ed774afd1a4174df34227626c95573be517, < e4a449368a2ce6d57a775d0ead27fc07f5a86e5b; >= bd7a7ed774afd1a4174df34227626c95573be517, < 544561dc56f7e69a053c25e11e6170f48bb97898; >= bd7a7ed774afd1a4174df34227626c95573be517, < a1aa5390cc912934fee76ce80af5f940452fa987; Linux 6.4
- Fixed in
- Linux 544561dc56f7e69a053c25e11e6170f48bb97898
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- EPSS
- 1.08% chance of exploitation in 30 days (percentile 65, 2026-11-26)
- CWE
- CWE-476
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= bd7a7ed774afd1a4174df34227626c95573be517, < e4a449368a2ce6d57a775d0ead27fc07f5a86e5b; >= bd7a7ed774afd1a4174df34227626c95573be517, < 544561dc56f7e69a053c25e11e6170f48bb97898; >= bd7a7ed774afd1a4174df34227626c95573be517, < a1aa5390cc912934fee76ce80af5f940452fa987 | — | cvelist |
| Linux | 6.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-35878. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-35878.md Affected: Linux >= bd7a7ed774afd1a4174df34227626c95573be517, < e4a449368a2ce6d57a775d0ead27fc07f5a86e5b; >= bd7a7ed774afd1a4174df34227626c95573be517, < 544561dc56f7e69a053c25e11e6170f48bb97898; >= bd7a7ed774afd1a4174df34227626c95573be517, < a1aa5390cc912934fee76ce80af5f940452fa987; Linux 6.4 Fixed in: Linux 544561dc56f7e69a053c25e11e6170f48bb97898 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2024-35878 being exploited?
There is no confirmed exploitation: CVE-2024-35878 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.08% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-35878?
Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-35878?
Linux >= bd7a7ed774afd1a4174df34227626c95573be517, < e4a449368a2ce6d57a775d0ead27fc07f5a86e5b; >= bd7a7ed774afd1a4174df34227626c95573be517, < 544561dc56f7e69a053c25e11e6170f48bb97898; >= bd7a7ed774afd1a4174df34227626c95573be517, < a1aa5390cc912934fee76ce80af5f940452fa987; Linux 6.4.
Is there a fix for CVE-2024-35878?
Yes. Fixed in Linux 544561dc56f7e69a053c25e11e6170f48bb97898. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-35878?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.