Vulnerability in Kernel: UAF in peak_pci_remove()

Kernel Updated 02 Oct 2025

Summary

14/11/2021
N/A
No i
Unrated
Not published

GSD-2021-1002040: can: peak_pci: peak_pci_remove(): fix UAF. Affects Kernel versions >= e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd, < 28f28e4bc3a5e0051faa963f10b778ab38c1db69. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Kernel is a fundamental component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It provides essential functionalities for the system's operation. However, a vulnerability has been discovered in the Kernel's peak_pci_remove() function, which can lead to a use-after-free (UAF) condition. This vulnerability was introduced in version v3.4 and affects all subsequent versions until v5.10.76.

Vulnerability Detail

The vulnerability arises due to a use-after-free (UAF) condition in the peak_pci_remove() function of the Kernel. This function is responsible for handling the removal of a PCI device. By exploiting this vulnerability, an attacker could potentially execute arbitrary code or cause a denial-of-service (DoS) condition. The UAF occurs when the function attempts to access memory that has already been freed, leading to unpredictable behavior and potential security risks.

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 apply patches or backports provided by their Linux distribution's security team. These patches will address the UAF vulnerability in the Kernel without requiring a complete Kernel update. It is advisable to consult the official documentation or security advisories of the specific Linux distribution for detailed instructions on applying the patches.

Conclusion

In conclusion, a use-after-free (UAF) vulnerability has been identified in the Kernel's peak_pci_remove() function. This vulnerability can potentially allow an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition. To mitigate this risk, it is crucial to update the Linux Kernel to version v5.10.76 or later. Alternatively, users can apply patches or backports provided by their Linux distribution's security team. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially allow an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition on a system running an affected version of the Linux Kernel.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it in real-time to identify any open-source vulnerabilities, including this specific UAF vulnerability in the Kernel.

At the time of this report, there is no known public exploit for this vulnerability. However, it is crucial to apply the recommended fixes and keep the Kernel up to date to mitigate any potential risks.

This vulnerability requires local access to the system to exploit. It cannot be exploited remotely over a network connection.

If updating the Kernel is not immediately feasible, you can apply patches or backports provided by your Linux distribution's security team. These patches will address the UAF vulnerability without requiring a complete Kernel update. However, it is still recommended to update to the latest stable version of the Kernel as soon as possible.

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