CVE-2025-38160

clk: bcm: rpi: Add NULL check in raspberrypi_clk_register()

MEDIUM
5.5
CVSS Score
Published: July 3, 2025 at 08:36 AM UTC
Updated: June 17, 2026 at 09:16 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

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: clk: bcm: rpi: Add NULL check in raspberrypi_clk_register() devm_kasprintf() returns NULL when memory allocation fails. Currently, raspberrypi_clk_register() does not check for this case, which results in a NULL pointer dereference. Add NULL check after devm_kasprintf() to prevent this issue.

Affected

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

5.11 ≤ v < 5.15.1865.16 ≤ v < 6.1.1425.9 ≤ v < 5.10.2395.9 ≤ v < 5.15.1865.9 ≤ v < 6.1.1425.9 ≤ v < 6.12.345.9 ≤ v < 6.15.35.9 ≤ v < 6.165.9 ≤ v < 6.6.946.13 ≤ v < 6.15.36.2 ≤ v < 6.6.946.7 ≤ v < 6.12.345.993d2725affd65686792f4b57e49ef660f3c8c0f9
Vendor states this is fixed in 0a2712cd24ecfeb520af60f6f859b442c7ab01ff (fixed)
Vendor states this is fixed in 1b69a5299f28ce8e6afa37c3690dbc14c3a1f53f (fixed)
Vendor states this is fixed in 3c1adc2f8c732ea09e8c4bce5941fec019c6205d (fixed)
Vendor states this is fixed in 52562161df3567cdaedada46834a7a8d8c4ab737 (fixed)
Vendor states this is fixed in 54ce9bcdaee59d4ef0703f390d55708557818f9e (fixed)
Vendor states this is fixed in 73c46d9a93d071ca69858dea3f569111b03e549e (fixed)
Vendor states this is fixed in 938f625bd3364cfdc93916739add3b637ff90368 (fixed)
Vendor states this is fixed in 5.10.239 (unaffected)
Vendor states this is fixed in 5.15.186 (unaffected)
Vendor states this is fixed in 5.9 (unaffected)
Vendor states this is fixed in 6.1.142 (unaffected)
Vendor states this is fixed in 6.12.34 (unaffected)
Vendor states this is fixed in 6.15.3 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)
Vendor states this is fixed in 6.6.94 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0a2712cd24ecfeb520af60f6f859b442c7ab01ff
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1b69a5299f28ce8e6afa37c3690dbc14c3a1f53f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3c1adc2f8c732ea09e8c4bce5941fec019c6205d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/52562161df3567cdaedada46834a7a8d8c4ab737
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/54ce9bcdaee59d4ef0703f390d55708557818f9e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/73c46d9a93d071ca69858dea3f569111b03e549e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/938f625bd3364cfdc93916739add3b637ff90368
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
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