Use After Free Vulnerability in pch_can

Kernel Updated 02 Oct 2025

Summary

19/12/2021
N/A
No i
Unrated
Not published

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 ↓

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 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 →

Share this vulnerability

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.

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