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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-06-18T11:03:14.530Z
- Modified: 2026-06-17T05:22:52.523Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6f15a9c9f94133bee0d861a4bf25e10aaa95219d before c0ad5c7e68d10f6f8ffb0f4329e3c19404fbca58; from 6f15a9c9f94133bee0d861a4bf25e10aaa95219d before 6cd5f93b5c6a66c68a91dbc604a78207252ecd43; from 6f15a9c9f94133bee0d861a4bf25e10aaa95219d before 880ece912b958a0c92cc0baa8e906fb9b49a4b53; from 6f15a9c9f94133bee0d861a4bf25e10aaa95219d before f030304fdeb87ec8f1b518c73703214aec6cc24a; 5.12 (not affected: before 5.12; from 5.15.61 up to 5.15.*; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.12 before 5.15.61; from 5.16 before 5.18.18; from 5.19 before 5.19.2

## References

- <https://git.kernel.org/stable/c/c0ad5c7e68d10f6f8ffb0f4329e3c19404fbca58> (patch)
- <https://git.kernel.org/stable/c/6cd5f93b5c6a66c68a91dbc604a78207252ecd43> (patch)
- <https://git.kernel.org/stable/c/880ece912b958a0c92cc0baa8e906fb9b49a4b53> (patch)
- <https://git.kernel.org/stable/c/f030304fdeb87ec8f1b518c73703214aec6cc24a> (patch)

## Sources

- CVE List: [CVE-2022-50157](https://www.cve.org/CVERecord?id=CVE-2022-50157), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50157](https://nvd.nist.gov/vuln/detail/CVE-2022-50157), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50157 · Whole record: https://cve.day/CVE-2022-50157.json · Rebuilt by cve.day 2026-11-25T22:58:21.079Z
