Use After Free Vulnerability in can: sja1000
Summary
GSD-2021-1002454: can: sja1000: fix use after free in ems_pcmcia_add_card(). Affects Kernel versions >= fd734c6f25aea4b2b44b045e489aec67b388577e, < 1a295fea90e1acbe80c6d4940f5ff856edcd6bec. 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: sja1000 package is a component of the Linux Kernel, which is responsible for handling CAN (Controller Area Network) communication. CAN is a widely used protocol for communication between microcontrollers and devices in automotive and industrial applications. The sja1000 driver provides support for the SJA1000 CAN controller, allowing devices to send and receive CAN messages. However, a vulnerability has been discovered in the ems_pcmcia_add_card() function of the can: sja1000 package, which can lead to a use after free issue.
Vulnerability Detail
The use after free vulnerability in the ems_pcmcia_add_card() function of the can: sja1000 package allows an attacker to exploit a freed memory region. This can result in various consequences, such as crashes, privilege escalation, or the execution of arbitrary code. The vulnerability was introduced in version v3.2 of the Linux Kernel by commit fd734c6f25aea4b2b44b045e489aec67b388577e and is fixed in version v5.4.165 by commit 1a295fea90e1acbe80c6d4940f5ff856edcd6bec.
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 disable the affected functionality by removing or blacklisting the can: sja1000 module. This can be done by modifying the kernel configuration or using the appropriate module management tools. However, it is highly recommended to apply the official fix by updating the Linux Kernel to a version that includes the patch for this vulnerability.
Conclusion
In conclusion, the can: sja1000 package in the Linux Kernel is vulnerable to a use after free issue in the ems_pcmcia_add_card() function. This vulnerability can have serious consequences, including crashes, privilege escalation, or the execution of arbitrary code. It is crucial to update the Linux Kernel to version v5.4.165 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The can: sja1000 package is a component of the Linux Kernel that provides support for the SJA1000 CAN controller, allowing devices to communicate using the CAN protocol.
A use after free vulnerability occurs when a program continues to use a memory region after it has been freed. This can lead to crashes, privilege escalation, or the execution of arbitrary code.
The use after free vulnerability in the can: sja1000 package can result in crashes, privilege escalation, or the execution of arbitrary code, depending on how it is exploited.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.165 or later. Instructions for updating the kernel can be found in the Linux Kernel documentation.
Yes, users can disable the affected functionality by removing or blacklisting the can: sja1000 module. However, it is recommended to apply the official fix by updating the Linux Kernel.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.