CVE-2025-38160

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

State
Published
Severity
Not scored
Published
Jul 3, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 93d2725affd65686792f4b57e49ef660f3c8c0f9 to before 938f625bd3364cfdc93916739add3b637ff90368Affected
  • 93d2725affd65686792f4b57e49ef660f3c8c0f9 to before 54ce9bcdaee59d4ef0703f390d55708557818f9eAffected
  • 93d2725affd65686792f4b57e49ef660f3c8c0f9 to before 52562161df3567cdaedada46834a7a8d8c4ab737Affected
  • 93d2725affd65686792f4b57e49ef660f3c8c0f9 to before 3c1adc2f8c732ea09e8c4bce5941fec019c6205dAffected
  • 93d2725affd65686792f4b57e49ef660f3c8c0f9 to before 0a2712cd24ecfeb520af60f6f859b442c7ab01ffAffected
  • 93d2725affd65686792f4b57e49ef660f3c8c0f9 to before 1b69a5299f28ce8e6afa37c3690dbc14c3a1f53fAffected
  • 93d2725affd65686792f4b57e49ef660f3c8c0f9 to before 73c46d9a93d071ca69858dea3f569111b03e549eAffected
LinuxLinux
  • 5.9Affected
  • before 5.9Not affected
  • 5.10.239 through 5.10.*Not affected
  • 5.15.186 through 5.15.*Not affected
  • 6.1.142 through 6.1.*Not affected
  • 6.6.94 through 6.6.*Not affected
  • 6.12.34 through 6.12.*Not affected
  • 6.15.3 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.