Linux
media: saa7164: fix cleanup on resource allocation failure
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 443c1228d50518f3c550e1fef490a2c9d9246ce7, < ac9d7ca8199c64c320ba8177e3c0f7b0deb7ff06
- >= 443c1228d50518f3c550e1fef490a2c9d9246ce7, < 99bf01e2563f8bdfe5f25e489596cff455a35d6b
- >= 443c1228d50518f3c550e1fef490a2c9d9246ce7, < daa5b32cdf7db81a07ee2a91ce092a363e7754aa
- >= 443c1228d50518f3c550e1fef490a2c9d9246ce7, < 77f216f8de6221efb6f6c471bc9e598f1879825b
- >= 443c1228d50518f3c550e1fef490a2c9d9246ce7, < 69259c627009bf7621010ae9e997dad2dad3339c
- >= 443c1228d50518f3c550e1fef490a2c9d9246ce7, < 4d2048466af9e2c960c5be6dcd317e3b657d268b
- >= 443c1228d50518f3c550e1fef490a2c9d9246ce7, < fc65623524b5bf23baddc6ae688d954fba0d5de2
- >= 443c1228d50518f3c550e1fef490a2c9d9246ce7, < 28e84c6e2e6753ed238ea097b2842a32a6a6879b
Fixed in ac9d7ca8199c64c320ba8177e3c0f7b0deb7ff06, 99bf01e2563f8bdfe5f25e489596cff455a35d6b, daa5b32cdf7db81a07ee2a91ce092a363e7754aa, 77f216f8de6221efb6f6c471bc9e598f1879825b, 69259c627009bf7621010ae9e997dad2dad3339c, 4d2048466af9e2c960c5be6dcd317e3b657d268b, fc65623524b5bf23baddc6ae688d954fba0d5de2, 28e84c6e2e6753ed238ea097b2842a32a6a6879b
- 2.6.32
Fixed in 0, 5.10.273, 5.15.224, 6.1.188, 6.6.157, 6.12.110, 6.18.51, 7.2.5, 7.3
Mitigation
Upgrade Linux to ac9d7ca8199c64c320ba8177e3c0f7b0deb7ff06 or 99bf01e2563f8bdfe5f25e489596cff455a35d6b or daa5b32cdf7db81a07ee2a91ce092a363e7754aa or 77f216f8de6221efb6f6c471bc9e598f1879825b or 69259c627009bf7621010ae9e997dad2dad3339c or 4d2048466af9e2c960c5be6dcd317e3b657d268b or fc65623524b5bf23baddc6ae688d954fba0d5de2 or 28e84c6e2e6753ed238ea097b2842a32a6a6879b or later.
Upgrade Linux to 0 or 5.10.273 or 5.15.224 or 6.1.188 or 6.6.157 or 6.12.110 or 6.18.51 or 7.2.5 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.