CVE-2024-50070

pinctrl: stm32: check devm_kasprintf() returned value

MEDIUM
5.5
CVSS Score
Published: October 29, 2024 at 12:50 AM UTC
Updated: June 17, 2026 at 08:03 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.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: pinctrl: stm32: check devm_kasprintf() returned value devm_kasprintf() can return a NULL pointer on failure but this returned value is not checked. Fix this lack and check the returned value. Found by code review.

Affected

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

6.6 ≤ v < 6.11.56.6 ≤ v < 6.126.6 ≤ v < 6.6.586.7 ≤ v < 6.11.532c170ff15b044579b1f8b8cdabf543406dde9da6.12 rc16.12 rc26.12 rc375285cb2b49a9bfe15fc22aecab45ef25d50e6f2
Vendor states this is fixed in 1f266957ae1207b0717c2d69096bc70654ae9fcb (fixed)
Vendor states this is fixed in 3b36bb1fca2b87f6292ca2a8593f297c5e9fab41 (fixed)
Vendor states this is fixed in a8d52de0a6c6b091b2771bcb98ce408cf9d69fe3 (fixed)
Vendor states this is fixed in b0f0e3f0552a566def55c844b0d44250c58e4df6 (fixed)
Vendor states this is fixed in 6.11.5 (unaffected)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)
Vendor states this is fixed in 6.6.58 (unaffected)

References (4)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
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