CVE-2025-38635 clk: davinci: Add NULL check in davinci_lpsc_clk_register()
A missing NULL check in the Linux kernel's DaVinci clock driver can cause a system crash when memory allocation fails.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-38635?
CVE-2025-38635 is a medium-severity vulnerability in Debian Debian Linux, published on 22 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2025-38635?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2025-38635?
Apply the vendor's patch.
Is CVE-2025-38635 being exploited?
There is no known exploitation of CVE-2025-38635 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as AZL-66638, AZL-73485, BELL-CVE-2025-38635, DEBIAN-CVE-2025-38635, GHSA-r59m-grjg-3vpv, ROOT-OS-DEBIAN-11-CVE-2025-38635 and 5 more.