Refcount Leak in Linux Kernel's Mediatek PCI Subsystem - CVE-2022-49454

linux Updated 02 Oct 2025

Summary

26/02/2025
N/A
Yes i
Medium
5.5

CVE-2022-49454: In the Linux kernel, the following vulnerability has been resolved: PCI: mediatek: Fix refcount leak in mtk_pcie_subsys_powerup() The of_find_compatible_node() function returns a node pointer with refcount incremented, W... Affects linux versions < 5.18.5-1. Fixed in 5.18.5-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 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 Linux kernel is a core component of many operating systems, providing essential services for hardware management and system resources. It supports a wide range of hardware architectures and is known for its stability and performance. The Mediatek PCI subsystem is responsible for managing PCI devices in systems using Mediatek hardware. This subsystem is crucial for ensuring proper communication between the operating system and hardware components, but it is susceptible to vulnerabilities that can lead to resource leaks and system instability.

Vulnerability Detail

CVE-2022-49454 is a vulnerability in the Linux kernel's Mediatek PCI subsystem, specifically in the mtk_pcie_subsys_powerup() function. The issue arises from a reference count leak due to the improper handling of the of_find_compatible_node() function, which increments the reference count of a node pointer. If the reference count is not decremented using of_node_put(), it can lead to resource leaks, potentially causing memory exhaustion and system instability. This vulnerability affects versions of the Linux kernel prior to 5.18.5-1.

How To Fix

Minimum fixed version

5.18.5-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 mentioned for this vulnerability. The best course of action is to apply the patch as soon as it becomes available.

Conclusion

CVE-2022-49454 is a critical vulnerability in the Linux kernel's Mediatek PCI subsystem that can lead to resource leaks and system instability. It is essential to update to the patched version 5.18.5-1 to mitigate the risks associated with this vulnerability. Regular monitoring and timely updates are crucial for maintaining system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49454 is a vulnerability in the Linux kernel's Mediatek PCI subsystem that involves a reference count leak.

The vulnerability can lead to resource leaks, which may result in memory exhaustion and system instability.

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

Yes, a patch is available in version 5.18.5-1 of the Linux package.

While there are no specific workarounds, it is recommended to monitor your system for unusual behavior until you can apply the patch.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

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