PCI: plda: Fix IRQ domain leaks in the error paths of plda_init_interrupts()
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: plda: Fix IRQ domain leaks in the error paths of plda_init_interrupts()
plda_init_interrupts() initializes IRQ domains and creates IRQ mapping but does not unwind them when later step fails.
If platform_get_irq() or either irq_create_mapping() fails in plda_init_interrupts(), the domains are never deinitialized. If irq_create_mapping() fails, port->intx_irq stays initialized.
Hence, remove the IRQ domains in the error path by calling plda_pcie_irq_domain_deinit().
Since plda_pcie_irq_domain_deinit() now disposes of the intx_irq and msi_irq mappings itself before removing their domains, the msi_irq mapping failure path can go directly to err_irq_domain_deinit instead of disposing of port->intx_irq separately first.
This issue was found by automated review of sashiko-bot
[mani: commit log]
From the CVE record · Linux
The Linux kernel's PLDA PCI interrupt initialization can leak IRQ domains if platform_get_irq() or irq_create_mapping() fails. The input does not describe an attacker action or specify network, local, authentication, or user-interaction conditions.
Engineers running Linux kernels with the PLDA PCI driver should check their deployments; affected versions are not specified.