PCI: altera: Fix resource leaks on probe failure
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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]
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
Version range not reported
- Linux Linux
5.9
References 8
git.kernel.org
- stable/c/af7cf5d56d7d57c4fbfdb7b5b693790f331b07b7
- stable/c/9cf0cc481e1645ec65e61486ae41c486c59781cb
- stable/c/99fc088d6cc6890ae35fa2f29c50ebe027844c20
- stable/c/a25bfa2a6665a1d77324d4a609e7513b87680227
- stable/c/0db9aa9ec51be0a0ffdcdfd9af2b7bf3aeb7911a
- stable/c/09c43b7b7d29c6fadb27f32cdf7f3bb6598befa9
- stable/c/6864c789b570e57f932847fa83f6b56917182d73
- stable/c/7a94138caeb27f3c49c1dbd93bf422098925bb28