CVE-2024-35878: of: module: prevent NULL pointer dereference in vsnprintf()
Vulnerability summary
CVE-2024-35878 is a medium (CVSS 5.3) NULL Pointer Dereference vulnerability in linux. EPSS estimates a 0.79% chance of exploitation in the next 30 days, higher than 56.4% of scored vulnerabilities.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 26 · Related 25Timeline
- 19-05-2024PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.79%
Chance of exploitation in the next 30 days
Percentile
56%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.79% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu90 products
- linux< 6.8.0-38.38
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 6.8.0-1011.12
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ bd7a7ed774afd1a4174df34227626c95573be517, < e4a449368a2ce6d57a775d0ead27fc07f5a86e5b | ≥ bd7a7ed774afd1a4174df34227626c95573be517, < 544561dc56f7e69a053c25e11e6170f48bb97898 | ≥ bd7a7ed774afd1a4174df34227626c95573be517, < a1aa5390cc912934fee76ce80af5f940452fa987 | 6.4
- linux_kernel< 6.6.26 | ≥ 6.7, < 6.8.5 | 6.9:rc1 | 6.9:rc2
Debian1 product
- linux< 6.8.9-1
3 vendors · 93 products