PCI: microchip: Fix refcount leak in mc_pcie_init_irq_domains()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s Microchip PCI driver leaks a device-tree node reference in some error paths of mc_pcie_init_irq_domains(). The input does not describe an attacker action or specify whether exploitation requires network access, local access, authentication, or user interaction.
Engineers running the Linux kernel with the Microchip PCI driver should check their version; affected versions are not specified.