Use-after-Free Vulnerability in can: j1939 Package
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.