CVE-2022-50157

PCI: microchip: Fix refcount leak in mc_pcie_init_irq_domains()

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

Description

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 of_node_put() on it when we don't need it anymore.

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6f15a9c9f94133bee0d861a4bf25e10aaa95219d to before c0ad5c7e68d10f6f8ffb0f4329e3c19404fbca58Affected
  • 6f15a9c9f94133bee0d861a4bf25e10aaa95219d to before 6cd5f93b5c6a66c68a91dbc604a78207252ecd43Affected
  • 6f15a9c9f94133bee0d861a4bf25e10aaa95219d to before 880ece912b958a0c92cc0baa8e906fb9b49a4b53Affected
  • 6f15a9c9f94133bee0d861a4bf25e10aaa95219d to before f030304fdeb87ec8f1b518c73703214aec6cc24aAffected
LinuxLinux
  • 5.12Affected
  • before 5.12Not affected
  • 5.15.61 through 5.15.*Not affected
  • 5.18.18 through 5.18.*Not affected
  • 5.19.2 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.