Refcount Leak in Linux Kernel's PCI Mediatek Gen3 - CVE-2022-50154

linux Updated 02 Oct 2025

Summary

18/06/2025
N/A
Yes i
Unrated
Not published

CVE-2022-50154: In the Linux kernel, the following vulnerability has been resolved: PCI: mediatek-gen3: Fix refcount leak in mtk_pcie_init_irq_domains() of_get_child_by_name() returns a node pointer with refcount incremented, so we shou... Affects linux versions < 6.0.2-1. Fixed in 6.0.2-1. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. It supports a wide range of hardware architectures and is known for its stability and performance. The vulnerability CVE-2022-50154 affects the PCI subsystem, specifically the Mediatek Gen3 implementation, which is responsible for managing PCI devices. This vulnerability arises from improper reference counting, which can lead to resource leaks and potential system instability.

Vulnerability Detail

CVE-2022-50154 is a vulnerability in the Linux kernel where a reference count leak occurs in the function mtk_pcie_init_irq_domains(). The function of_get_child_by_name() returns a node pointer with an incremented reference count, but the code fails to release this reference when it is no longer needed. This oversight can lead to memory leaks, potentially exhausting system resources and affecting overall system performance. The issue has been identified and resolved in the patched version of the kernel.

How To Fix

Minimum fixed version

6.0.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds available for this vulnerability other than applying the patch. It is recommended to update the package as soon as possible to mitigate any risks associated with the refcount leak.

Conclusion

CVE-2022-50154 is a significant vulnerability in the Linux kernel that can lead to resource leaks due to improper reference counting. It is essential to update to the patched version to ensure system stability and performance. Regular monitoring of vulnerabilities using tools like Vulert can help maintain the security of your applications.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-50154 is a vulnerability in the Linux kernel related to a reference count leak in the PCI Mediatek Gen3 implementation.

The vulnerability can lead to memory leaks, which may exhaust system resources and affect overall system stability and performance.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

While there are no specific workarounds, it is crucial to plan for an update as soon as possible to mitigate the risks associated with this vulnerability.

More information can be found in the official CVE database and on the Linux kernel mailing lists where the issue was discussed.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

6.0.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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