Critical NULL Pointer Dereference in Linux Kernel - Affects Debian Linux Packages

linux Updated 02 Oct 2025

Summary

22/08/2025
N/A
No i
Unrated
Not published

CVE-2025-38665: In the Linux kernel, the following vulnerability has been resolved: can: netlink: can_changelink(): fix NULL pointer deref of struct can_priv::do_set_mode Andrei Lalaev reported a NULL pointer deref when a CAN device is... 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 the core component of the Debian operating system, responsible for managing hardware resources and providing essential services to applications. It is known for its stability, performance, and security features. However, vulnerabilities can arise, impacting the kernel's functionality and the overall security of systems running Debian. This specific vulnerability affects various versions of the Linux package across Debian distributions 11, 12, 13, and 14.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the CAN (Controller Area Network) subsystem, specifically in the function can_changelink(). This issue arises when a CAN device is restarted from a Bus Off state, and the driver does not implement the struct can_priv::do_set_mode callback. This can lead to a NULL pointer dereference, causing potential system crashes or instability. The vulnerability was reported by Andrei Lalaev and affects multiple Debian versions, with the risk of exploitation if the affected code paths are triggered.

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

As a workaround, users can avoid manual restarts of CAN devices or configure the automatic restart delay in can_changelink() to prevent triggering the NULL pointer dereference. Additionally, ensure that the struct can_priv::do_set_mode callback is implemented correctly in the driver to avoid this issue.

Conclusion

The identified vulnerability in the Linux kernel poses a significant risk to systems running Debian. It is crucial for users to update their packages to the patched versions to mitigate potential risks. Implementing workarounds can provide temporary relief, but updating is the best course of action.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability is a NULL pointer dereference in the Linux kernel's CAN subsystem, which can lead to system crashes.

Debian versions 11, 12, 13, and 14 are affected, with specific patched versions available for 13 and 14.

You can use Vulert, a tool that monitors open-source vulnerabilities in your software. Simply upload your manifest file, like package-lock.json, to check for vulnerabilities.

As a temporary measure, avoid manual restarts of CAN devices and ensure that the struct can_priv::do_set_mode callback is implemented in your driver.

Detailed information can be found in the CVE report for CVE-2025-38665, which outlines the vulnerability and its implications.

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