media: saa7164: fix cleanup on resource allocation 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
- Fix
- Fixed in 6.1.188, 6.6.157, 6.12.110, 6.18.51, 7.2.5
- 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: media: saa7164: fix cleanup on resource allocation failure saa7164_dev_setup() adds the device to the global saa7164_devlist before requesting the PCI BAR memory regions. If get_resources() fails, saa7164_dev_setup() decrements the device count and returns an error, but leaves the device on saa7164_devlist. The probe error path then frees the device, leaving a dangling entry on the global list. Reuse the existing MMIO mapping error path to remove the device from saa7164_devlist and decrement the device count before returning. Also release BAR0 if it was successfully requested but the BAR2 request fails.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
Version range not reported
- Linux Linux
2.6.32
- KernelLinux
From 2.6.32 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5
References 8
git.kernel.org
- stable/c/ac9d7ca8199c64c320ba8177e3c0f7b0deb7ff06
- stable/c/99bf01e2563f8bdfe5f25e489596cff455a35d6b
- stable/c/daa5b32cdf7db81a07ee2a91ce092a363e7754aa
- stable/c/77f216f8de6221efb6f6c471bc9e598f1879825b
- stable/c/69259c627009bf7621010ae9e997dad2dad3339c
- stable/c/4d2048466af9e2c960c5be6dcd317e3b657d268b
- stable/c/fc65623524b5bf23baddc6ae688d954fba0d5de2
- stable/c/28e84c6e2e6753ed238ea097b2842a32a6a6879b