Refcount Leak in Linux Kernel's PCI Microchip Package - CVE-2022-50157

linux Updated 02 Oct 2025

Summary

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

CVE-2022-50157: In the Linux kernel, the following vulnerability has been resolved: PCI: microchip: Fix refcount leak in mc_pcie_init_irq_domains() of_get_next_child() returns a node pointer with refcount incremented, so we should use o... 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware and software interaction. The PCI Microchip package within the kernel facilitates communication between the operating system and PCI devices. This package is critical for ensuring that hardware components function correctly and efficiently. However, it is susceptible to vulnerabilities that can lead to resource leaks, impacting system stability and performance.

Vulnerability Detail

CVE-2022-50157 is a vulnerability in the Linux kernel's PCI Microchip package, specifically in the mc_pcie_init_irq_domains() function. The issue arises from a refcount leak due to improper handling of node pointers returned by the of_get_next_child() function. When the function is called, it increments the reference count of the node pointer, but if the pointer is not released using of_node_put() in certain error paths, it leads to a memory leak. This vulnerability can result in increased memory usage and potential system instability over time.

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

Conclusion

CVE-2022-50157 is a significant vulnerability in the Linux kernel's PCI Microchip package that can lead to memory leaks and system instability. Users are encouraged to update to the patched version 6.0.2-1 to mitigate the risk. Regular monitoring and prompt updates are essential for maintaining system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-50157 is a vulnerability in the Linux kernel's PCI Microchip package that leads to a refcount leak, potentially causing memory issues.

If exploited, this vulnerability can lead to increased memory usage and system instability, affecting overall performance.

Yes, a patch is available in version 6.0.2-1 of the Linux kernel. Users should update to this version or later.

While there are no specific workarounds, it is advisable to monitor your system for unusual behavior and apply the patch as soon as possible.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

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