CVE-2025-38160

published 3 Jul 2025 · updated 11 May 2026

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

7.0HighCVSS 7.0EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0a2712cd24ecfeb520af60f6f859b442c7ab01ff, Kernel 1b69a5299f28ce8e6afa37c3690dbc14c3a1f53f, Kernel 3c1adc2f8c732ea09e8c4bce5941fec019c6205d and 4 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.9, >=93d2725affd65686792f4b57e49ef660f3c8c0f9 <0a2712cd24ecfeb520af60f6f859b442c7ab01ff, >=93d2725affd65686792f4b57e49ef660f3c8c0f9 <1b69a5299f28ce8e6afa37c3690dbc14c3a1f53f, >=93d2725affd65686792f4b57e49ef660f3c8c0f9 <3c1adc2f8c732ea09e8c4bce5941fec019c6205d, >=93d2725affd65686792f4b57e49ef660f3c8c0f9 <52562161df3567cdaedada46834a7a8d8c4ab737, >=93d2725affd65686792f4b57e49ef660f3c8c0f9 <54ce9bcdaee59d4ef0703f390d55708557818f9e, >=93d2725affd65686792f4b57e49ef660f3c8c0f9 <73c46d9a93d071ca69858dea3f569111b03e549e, >=93d2725affd65686792f4b57e49ef660f3c8c0f9 <938f625bd3364cfdc93916739add3b637ff903680a2712cd24ecfeb520af60f6f859b442c7ab01ff, 1b69a5299f28ce8e6afa37c3690dbc14c3a1f53f, 3c1adc2f8c732ea09e8c4bce5941fec019c6205d, 52562161df3567cdaedada46834a7a8d8c4ab737, 54ce9bcdaee59d4ef0703f390d55708557818f9e, 73c46d9a93d071ca69858dea3f569111b03e549e, 938f625bd3364cfdc93916739add3b637ff90368

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-38160 severity on Zeptric[![CVE-2025-38160](https://zeptric.io/badge/cve/CVE-2025-38160.svg)](https://zeptric.io/cve/CVE-2025-38160)