CVE-2022-50157: PCI: microchip: Fix refcount leak in mc_pcie_init_irq_domains()

Published Jun 18, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

PCI: microchip: Fix refcount leak in mcpcieinitirqdomains()

ofgetnextchild() returns a node pointer with refcount incremented, so we should use ofnodeput() on it when we don't need it anymore.

mcpcieinitirqdomains() only calls ofnodeput() in the normal path, missing it in some error paths. Add missing ofnodeput() to avoid refcount leak.

Affected Software

4 affected components
Linux Linux kernel
Linux Linux kernel>=5.12<5.15.61
Linux Linux kernel>=5.16<5.18.18
Linux Linux kernel>=5.19<5.19.2

Event History

Jun 18, 2025
CVE Published
via MITRE·11:03 AM
Data Sourced
via MITRE·11:03 AM
Description
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-50157?

CVE-2022-50157 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2022-50157?

To address CVE-2022-50157, update the Linux kernel to a patched version that resolves the refcount leak in mc_pcie_init_irq_domains().

3

What vulnerabilities are related to CVE-2022-50157?

CVE-2022-50157 is specifically related to a refcount leak in the PCI subsystem of the Linux kernel.

4

What systems are affected by CVE-2022-50157?

CVE-2022-50157 affects systems running vulnerable versions of the Linux kernel utilizing the PCI interface.

5

Can CVE-2022-50157 be exploited remotely?

CVE-2022-50157 does not have known specific remote exploitation vectors, but it could affect local privilege escalation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203