Use After Free Vulnerability in pch_can
Summary
GSD-2021-1002380: can: pch_can: pch_can_rx_normal: fix use after free. Affects Kernel versions >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 3a3c46e2eff0577454860a203be1a8295f4acb76. 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 pch_can package is a component of the Linux Kernel, which is responsible for handling Controller Area Network (CAN) communication. CAN is a widely used protocol for communication between microcontrollers and devices in automotive and industrial applications. The pch_can package provides support for the PCH (Platform Controller Hub) CAN controller found in Intel chipsets. It allows the Linux Kernel to interface with the PCH CAN controller and perform CAN communication tasks.
Vulnerability Detail
The vulnerability identified as GSD-2021-1002380 in the pch_can package is a use after free issue. This vulnerability occurs when the pch_can_rx_normal function is called, leading to a use of previously freed memory. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial of service by manipulating the freed memory. The vulnerability was introduced in version v2.6.37 of the Linux Kernel and has been fixed in version v4.9.293.
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 pch_can module. This can be done by modifying the system's module configuration files or using the appropriate module management tools. However, disabling the pch_can module will result in the loss of CAN communication capabilities for systems relying on the PCH CAN controller.
Conclusion
The use after free vulnerability in pch_can can pose a significant security risk, allowing attackers to execute arbitrary code or cause a denial of service. It is crucial to update the Linux Kernel to the fixed version or apply the provided workaround to mitigate the vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The use after free vulnerability in pch_can can potentially allow an attacker to execute arbitrary code or cause a denial of service. It is important to apply the necessary fixes to mitigate the risk.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert Playground will analyze it for any open-source vulnerabilities, including GSD-2021-1002380.
At the time of this report, there are no known public exploits for this vulnerability. However, it is important to apply the necessary fixes to prevent potential exploitation.
While updating the Linux Kernel to the fixed version is the recommended approach, you can mitigate the risk by disabling the pch_can module as mentioned in the workaround section. However, this will result in the loss of CAN communication capabilities for systems relying on the PCH CAN controller.
You can find more information about this vulnerability, including the fix commit and affected versions, in the GSD-2021-1002380 JSON report available at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1002xxx/GSD-2021-1002380.json.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.