CVE-2024-35878

of: module: prevent NULL pointer dereference in vsnprintf()

MEDIUM
5.3
CVSS Score
Published: May 19, 2024 at 08:34 AM UTC
Updated: June 17, 2026 at 07:35 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 0.8%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 6.6.266.4 ≤ v < 6.6.266.4 ≤ v < 6.8.56.4 ≤ v < 6.96.7 ≤ v < 6.8.56.9 rc16.9 rc2bd7a7ed774afd1a4174df34227626c95573be517
Vendor states this is fixed in 544561dc56f7e69a053c25e11e6170f48bb97898 (fixed)
Vendor states this is fixed in a1aa5390cc912934fee76ce80af5f940452fa987 (fixed)
Vendor states this is fixed in e4a449368a2ce6d57a775d0ead27fc07f5a86e5b (fixed)
Vendor states this is fixed in 6.4 (unaffected)
Vendor states this is fixed in 6.6.26 (unaffected)
Vendor states this is fixed in 6.8.5 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/544561dc56f7e69a053c25e11e6170f48bb97898
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a1aa5390cc912934fee76ce80af5f940452fa987
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e4a449368a2ce6d57a775d0ead27fc07f5a86e5b

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.3MEDIUMCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card