Null Pointer Dereference in Linux Kernel's Raspberry Pi Clock Registration

linux Updated 02 Oct 2025

Summary

03/07/2025
N/A
No i
Unrated
Not published

CVE-2025-38160: 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. Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware management and system resources. It is widely used in various distributions, including Debian. The kernel's functionality includes managing processes, memory, and device drivers. This vulnerability specifically affects the Raspberry Pi clock registration function, which is crucial for managing clock signals in Raspberry Pi devices. The lack of a NULL check in the clock registration process can lead to system instability and crashes.

Vulnerability Detail

In the Linux kernel, specifically within the Raspberry Pi clock registration function (raspberrypi_clk_register), a vulnerability has been identified due to the absence of a NULL check after calling devm_kasprintf(). When memory allocation fails, devm_kasprintf() returns NULL, leading to a potential NULL pointer dereference. This can cause the system to crash or behave unpredictably, posing a significant risk to system stability and security.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the patch as soon as it becomes available.

Conclusion

The CVE-2025-38160 vulnerability in the Linux kernel poses a significant risk due to a NULL pointer dereference in the Raspberry Pi clock registration function. Users are advised to update their systems to the latest patched version to ensure stability and security. Monitoring tools like Vulert can help keep track of vulnerabilities in your software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-38160 is a vulnerability in the Linux kernel that can lead to a NULL pointer dereference due to a missing NULL check in the raspberrypi_clk_register function.

This vulnerability can cause system crashes and instability, particularly in systems using Raspberry Pi hardware.

Yes, if you are using Debian 11, 12, or 13 with the Linux kernel, your system may be affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

While there are no specific workarounds, it is crucial to plan for an update as soon as possible to mitigate the risks associated with this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback