CVE-2025-38635

clk: davinci: Add NULL check in davinci_lpsc_clk_register()

MEDIUM
5.5
CVSS Score
Published: August 22, 2025 at 04:00 PM UTC
Updated: June 17, 2026 at 09:17 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.17 ≤ v < 5.10.2414.17 ≤ v < 5.15.1904.17 ≤ v < 5.4.2974.17 ≤ v < 6.1.1484.17 ≤ v < 6.12.424.17 ≤ v < 6.15.104.17 ≤ v < 6.16.14.17 ≤ v < 6.174.17 ≤ v < 6.6.1025.11 ≤ v < 5.15.1905.16 ≤ v < 6.1.1485.5 ≤ v < 5.10.2416.13 ≤ v < 6.15.106.16 ≤ v < 6.16.16.2 ≤ v < 6.6.1026.7 ≤ v < 6.12.424.17c6ed4d734bc7f731709dab0ffd69eed499dd5277
Vendor states this is fixed in 105e8115944a9f93e9412abe7bb07ed96725adf9 (fixed)
Vendor states this is fixed in 13de464f445d42738fe18c9a28bab056ba3a290a (fixed)
Vendor states this is fixed in 1d92608a29251278015f57f3572bc950db7519f0 (fixed)
Vendor states this is fixed in 23f564326deaafacfd7adf6104755b15216d8320 (fixed)
Vendor states this is fixed in 2adc945b70c4d97e9491a6c0c9f3b217a9eecfba (fixed)
Vendor states this is fixed in 6fb19cdcf040e1dec052a9032acb66cc2ad1d43f (fixed)
Vendor states this is fixed in 77e9ad7a2d0e2a771c9e0be04b9d1639413b5f13 (fixed)
Vendor states this is fixed in 7843412e5927dafbb844782c56b6380564064109 (fixed)
Vendor states this is fixed in 7943ed1f05f5cb7372dca2aa227f848747a98791 (fixed)
Vendor states this is fixed in 4.17 (unaffected)
Vendor states this is fixed in 5.10.241 (unaffected)
Vendor states this is fixed in 5.15.190 (unaffected)
Vendor states this is fixed in 5.4.297 (unaffected)
Vendor states this is fixed in 6.1.148 (unaffected)
Vendor states this is fixed in 6.12.42 (unaffected)
Vendor states this is fixed in 6.15.10 (unaffected)
Vendor states this is fixed in 6.16.1 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)
Vendor states this is fixed in 6.6.102 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/105e8115944a9f93e9412abe7bb07ed96725adf9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/13de464f445d42738fe18c9a28bab056ba3a290a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1d92608a29251278015f57f3572bc950db7519f0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/23f564326deaafacfd7adf6104755b15216d8320
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2adc945b70c4d97e9491a6c0c9f3b217a9eecfba
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6fb19cdcf040e1dec052a9032acb66cc2ad1d43f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/77e9ad7a2d0e2a771c9e0be04b9d1639413b5f13
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7843412e5927dafbb844782c56b6380564064109

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card