# CVE-2025-38635: clk: davinci: Add NULL check in davinci_lpsc_clk_register()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-08-22T16:00:43.181Z
- Modified: 2026-06-17T09:17:15.623Z
- Weaknesses: CWE-476
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from c6ed4d734bc7f731709dab0ffd69eed499dd5277 before 77e9ad7a2d0e2a771c9e0be04b9d1639413b5f13; from c6ed4d734bc7f731709dab0ffd69eed499dd5277 before 7843412e5927dafbb844782c56b6380564064109; from c6ed4d734bc7f731709dab0ffd69eed499dd5277 before 2adc945b70c4d97e9491a6c0c9f3b217a9eecfba; from c6ed4d734bc7f731709dab0ffd69eed499dd5277 before 105e8115944a9f93e9412abe7bb07ed96725adf9; from c6ed4d734bc7f731709dab0ffd69eed499dd5277 before 1d92608a29251278015f57f3572bc950db7519f0; from c6ed4d734bc7f731709dab0ffd69eed499dd5277 before 7943ed1f05f5cb7372dca2aa227f848747a98791; from c6ed4d734bc7f731709dab0ffd69eed499dd5277 before 6fb19cdcf040e1dec052a9032acb66cc2ad1d43f; from c6ed4d734bc7f731709dab0ffd69eed499dd5277 before 23f564326deaafacfd7adf6104755b15216d8320; from c6ed4d734bc7f731709dab0ffd69eed499dd5277 before 13de464f445d42738fe18c9a28bab056ba3a290a; 4.17 (not affected: before 4.17; from 5.4.297 up to 5.4.*; from 5.10.241 up to 5.10.*; from 5.15.190 up to 5.15.*; from 6.1.148 up to 6.1.*; from 6.6.102 up to 6.6.*; from 6.12.42 up to 6.12.*; from 6.15.10 up to 6.15.*; from 6.16.1 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 4.17 before 5.4.297; from 5.5 before 5.10.241; from 5.11 before 5.15.190; from 5.16 before 6.1.148; from 6.2 before 6.6.102; from 6.7 before 6.12.42; from 6.13 before 6.15.10; from 6.16 before 6.16.1
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/77e9ad7a2d0e2a771c9e0be04b9d1639413b5f13> (patch)
- <https://git.kernel.org/stable/c/7843412e5927dafbb844782c56b6380564064109> (patch)
- <https://git.kernel.org/stable/c/2adc945b70c4d97e9491a6c0c9f3b217a9eecfba> (patch)
- <https://git.kernel.org/stable/c/105e8115944a9f93e9412abe7bb07ed96725adf9> (patch)
- <https://git.kernel.org/stable/c/1d92608a29251278015f57f3572bc950db7519f0> (patch)
- <https://git.kernel.org/stable/c/7943ed1f05f5cb7372dca2aa227f848747a98791> (patch)
- <https://git.kernel.org/stable/c/6fb19cdcf040e1dec052a9032acb66cc2ad1d43f> (patch)
- <https://git.kernel.org/stable/c/23f564326deaafacfd7adf6104755b15216d8320> (patch)
- <https://git.kernel.org/stable/c/13de464f445d42738fe18c9a28bab056ba3a290a> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38635](https://www.cve.org/CVERecord?id=CVE-2025-38635), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38635](https://nvd.nist.gov/vuln/detail/CVE-2025-38635), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38635 · Whole record: https://cve.day/CVE-2025-38635.json · Rebuilt by cve.day 2026-11-25T22:59:03.533Z
