CVE-2024-35878of: module: prevent NULL pointer dereference in vsnprintf()
- 5.3MediumCVSS base score
- 0.79%Exploitation in 30 daysEPSS · top 43% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Linux
- 2 days later
· 2 days later
Published
- 24 months later
· 24 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVDNVD · Analyzed | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
- EPSS (exploitation in 30 days)
- 0.79% · top 43% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.
Affected products
- affected bd7a7ed774afd1a4174df34227626c95573be517 – < e4a449368a2ce6d57a775d0ead27fc07f5a86e5b
- affected bd7a7ed774afd1a4174df34227626c95573be517 – < 544561dc56f7e69a053c25e11e6170f48bb97898
- affected bd7a7ed774afd1a4174df34227626c95573be517 – < a1aa5390cc912934fee76ce80af5f940452fa987
- affected 6.4
- unaffected < 6.4
- unaffected 6.6.26 – ≤ 6.6.*
- unaffected 6.8.5 – ≤ 6.8.*
- unaffected 6.9 – ≤ *
References
References3
- https://git.kernel.org/stable/c/e4a449368a2ce6d57a775d0ead27fc07f5a86e5b (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/544561dc56f7e69a053c25e11e6170f48bb97898 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/a1aa5390cc912934fee76ce80af5f940452fa987 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-35596 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-35878)Record last updated .