Use-after-free vulnerability in bus: mhi: pci_generic package

Kernel Updated 02 Oct 2025

Summary

30/06/2021
N/A
No i
Unrated
Not published

GSD-2021-1001023: bus: mhi: pci_generic: Fix possible use-after-free in mhi_pci_remove(). Affects Kernel versions >= 8562d4fe34a3ef52da077f77985994bb9ad1f83e, < c597d5c59c7a6417dba06590f59b922e01188e8d. 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 bus: mhi: pci_generic package is a component of the Linux Kernel. It provides support for the MHI (Mobile High-Definition Link) bus on PCI devices. The MHI bus is used for communication between the host and peripheral devices, such as modems. The pci_generic driver is responsible for managing the MHI bus on PCI devices. It allows the host to send commands and data to the peripheral devices and handle their responses. However, a use-after-free vulnerability has been discovered in the mhi_pci_remove() function of the pci_generic driver.

Vulnerability Detail

The use-after-free vulnerability in mhi_pci_remove() occurs when the driver attempts to access memory that has already been freed. This can lead to a variety of issues, including crashes, privilege escalation, and arbitrary code execution. An attacker who can trigger the vulnerable code path may be able to exploit this vulnerability to gain unauthorized access or control over the affected system. The vulnerability was introduced in version v5.12 of the Linux Kernel and has been fixed in version v5.12.11.

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

There is no known workaround 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 bus: mhi: pci_generic package of the Linux Kernel can lead to various security issues, including crashes, privilege escalation, and arbitrary code execution. It is crucial to update the Kernel to version v5.12.11 or later to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The bus: mhi: pci_generic package is a component of the Linux Kernel that provides support for the MHI bus on PCI devices.

The MHI (Mobile High-Definition Link) bus is used for communication between the host and peripheral devices, such as modems.

A use-after-free vulnerability occurs when a program attempts to access memory that has already been freed. This can lead to crashes, privilege escalation, and arbitrary code execution.

The impact of this vulnerability can vary, but it could potentially allow an attacker to gain unauthorized access or control over the affected system.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.12.11 or later.

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