PCI: altera: Fix resource leaks on probe failure
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.15.212, Kernel 6.1.178, Kernel 5.10.261 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: PCI: altera: Fix resource leaks on probe failure The chained IRQ handler is set during probe, but is only removed during the driver remove(). If pci_host_probe() fails, the handler and INTx IRQ domain remain set even though the devm-managed host bridge storage containing struct altera_pcie will be released, leaving the handler with a stale data pointer. Interrupts are also enabled before pci_host_probe() is called. If probe fails after that point, the controller interrupt source should be disabled before the chained handler and INTx domain are removed. So set the chained handler only after the INTx domain has been created. Disable controller interrupts during IRQ teardown, and tear the IRQ setup down if pci_host_probe() fails. [mani: commit log]
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.11 <5.15.212, >=5.16 <6.1.178, >=5.9 <5.10.261, >=6.13 <6.18.39, >=6.19 <7.1.4, >=6.2 <6.6.145, >=6.7 <6.12.97, >=c63aed7334c21de8d626ff028ccad98cf5847a0e <0db9aa9ec51be0a0ffdcdfd9af2b7bf3aeb7911a, >=c63aed7334c21de8d626ff028ccad98cf5847a0e <6864c789b570e57f932847fa83f6b56917182d73, >=c63aed7334c21de8d626ff028ccad98cf5847a0e <7a94138caeb27f3c49c1dbd93bf422098925bb28, >=c63aed7334c21de8d626ff028ccad98cf5847a0e <99fc088d6cc6890ae35fa2f29c50ebe027844c20, >=c63aed7334c21de8d626ff028ccad98cf5847a0e <9cf0cc481e1645ec65e61486ae41c486c59781cb, >=c63aed7334c21de8d626ff028ccad98cf5847a0e <a25bfa2a6665a1d77324d4a609e7513b87680227, >=c63aed7334c21de8d626ff028ccad98cf5847a0e <af7cf5d56d7d57c4fbfdb7b5b693790f331b07b7, =5.9, >=c63aed7334c21de8d626ff028ccad98cf5847a0e <09c43b7b7d29c6fadb27f32cdf7f3bb6598befa9 | 5.15.212, 6.1.178, 5.10.261, 6.18.39, 7.1.4, 6.6.145, 6.12.97, 0db9aa9ec51be0a0ffdcdfd9af2b7bf3aeb7911a, 6864c789b570e57f932847fa83f6b56917182d73, 7a94138caeb27f3c49c1dbd93bf422098925bb28, 99fc088d6cc6890ae35fa2f29c50ebe027844c20, 9cf0cc481e1645ec65e61486ae41c486c59781cb, a25bfa2a6665a1d77324d4a609e7513b87680227, af7cf5d56d7d57c4fbfdb7b5b693790f331b07b7, 09c43b7b7d29c6fadb27f32cdf7f3bb6598befa9 |
| linux-kernel: Kernel | >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=5.9.0 <5.10.261, >=6.13.0 <6.18.39, >=6.19.0 <7.1.4, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97 | 5.15.212, 6.1.178, 5.10.261, 6.18.39, 7.1.4, 6.6.145, 6.12.97 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket