CVE-2025-38160
clk: bcm: rpi: Add NULL check in raspberrypi_clk_register()
Check your servers for CVE-2025-38160
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38160 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.8% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 93d2725affd65686792f4b57e49ef660f3c8c0f9, before 938f625bd3364cfdc93916739add3b637ff90368 affected from 93d2725affd65686792f4b57e49ef660f3c8c0f9, before 54ce9bcdaee59d4ef0703f390d55708557818f9e affected from 93d2725affd65686792f4b57e49ef660f3c8c0f9, before 52562161df3567cdaedada46834a7a8d8c4ab737 affected from 93d2725affd65686792f4b57e49ef660f3c8c0f9, before 3c1adc2f8c732ea09e8c4bce5941fec019c6205d affected from 93d2725affd65686792f4b57e49ef660f3c8c0f9, before 0a2712cd24ecfeb520af60f6f859b442c7ab01ff affected from 93d2725affd65686792f4b57e49ef660f3c8c0f9, before 1b69a5299f28ce8e6afa37c3690dbc14c3a1f53f affected from 93d2725affd65686792f4b57e49ef660f3c8c0f9, before 73c46d9a93d071ca69858dea3f569111b03e549e
Other versions: unaffected
|
| Linux |
affected 5.9 unaffected before 5.9 unaffected from 5.10.239 up to and including 5.10.* unaffected from 5.15.186 up to and including 5.15.* unaffected from 6.1.142 up to and including 6.1.* unaffected from 6.6.94 up to and including 6.6.* unaffected from 6.12.34 up to and including 6.12.* unaffected from 6.15.3 up to and including 6.15.* unaffected 6.16 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38160 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38160
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38160
trivy image --scanners vuln IMAGE | grep CVE-2025-38160
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/938f625bd3364cfdc93916739add3b637ff90368 git.kernel.org
- https://git.kernel.org/stable/c/54ce9bcdaee59d4ef0703f390d55708557818f9e git.kernel.org
- https://git.kernel.org/stable/c/52562161df3567cdaedada46834a7a8d8c4ab737 git.kernel.org
- https://git.kernel.org/stable/c/3c1adc2f8c732ea09e8c4bce5941fec019c6205d git.kernel.org
- https://git.kernel.org/stable/c/0a2712cd24ecfeb520af60f6f859b442c7ab01ff git.kernel.org
- https://git.kernel.org/stable/c/1b69a5299f28ce8e6afa37c3690dbc14c3a1f53f git.kernel.org
- https://git.kernel.org/stable/c/73c46d9a93d071ca69858dea3f569111b03e549e git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
Source: the record CVE-2025-38160 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse