Use-after-Free Vulnerability in can: j1939 Package

Kernel Updated 02 Oct 2025

Summary

30/06/2021
N/A
No i
Unrated
Not published

GSD-2021-1000995: can: j1939: fix Use-after-Free, hold skb ref while in use. Affects Kernel versions >= 9d71dd0c70099914fcd063135da3c580865e924c, < 509ab6bfdd0c76daebbad0f0af07da712116de22. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The can: j1939 package is a component of the Linux Kernel, which is responsible for handling communication between devices connected to the Controller Area Network (CAN). It provides a set of protocols and drivers for transmitting and receiving messages over the CAN bus. The j1939 module specifically implements the SAE J1939 standard, which is widely used in heavy-duty vehicles for diagnostics and communication purposes. This vulnerability affects the can: j1939 package and can potentially be exploited by an attacker to execute arbitrary code or cause a denial-of-service condition.

Vulnerability Detail

The vulnerability identified in the can: j1939 package is a Use-after-Free flaw. This type of vulnerability occurs when a program continues to use a memory object after it has been freed, leading to unpredictable behavior and potential security issues. In this case, the vulnerability arises from a failure to hold a reference to a socket buffer (skb) while it is still in use. An attacker could potentially manipulate the freed skb object to execute arbitrary code or disrupt the normal operation of the system. The impact and attack plausibility of this vulnerability have not been proven yet.

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

No specific workaround has been provided for this vulnerability. It is recommended to apply the fix by updating the Linux Kernel to the latest version.

Conclusion

The Use-after-Free vulnerability in the can: j1939 package of the Linux Kernel can potentially be exploited by an attacker to execute arbitrary code or cause a denial-of-service condition. To mitigate this vulnerability, it is crucial to update the Linux Kernel to version v5.10.46 or later. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The can: j1939 package is a component of the Linux Kernel that implements the SAE J1939 standard for communication over the Controller Area Network (CAN). It provides protocols and drivers for transmitting and receiving messages on the CAN bus, primarily used in heavy-duty vehicles.

A Use-after-Free vulnerability occurs when a program continues to use a memory object after it has been freed. This can lead to unpredictable behavior and potential security issues, as an attacker may be able to manipulate the freed object to execute arbitrary code or disrupt the normal operation of the system.

The impact of this vulnerability is not yet proven. However, if successfully exploited, an attacker could execute arbitrary code or cause a denial-of-service condition on the affected system.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.10.46 or later. This update includes the necessary patches to address the Use-after-Free vulnerability in the can: j1939 package.

No specific workaround has been provided for this vulnerability. It is recommended to apply the fix by updating the Linux Kernel to the latest version.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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