# CVE-2026-89877: media: saa7164: fix cleanup on resource allocation failure

- Severity: High 8.4 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-09-16T10:31:44.194Z
- Modified: 2026-10-30T13:20:34.540Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 443c1228d50518f3c550e1fef490a2c9d9246ce7 before ac9d7ca8199c64c320ba8177e3c0f7b0deb7ff06; from 443c1228d50518f3c550e1fef490a2c9d9246ce7 before 99bf01e2563f8bdfe5f25e489596cff455a35d6b; from 443c1228d50518f3c550e1fef490a2c9d9246ce7 before daa5b32cdf7db81a07ee2a91ce092a363e7754aa; from 443c1228d50518f3c550e1fef490a2c9d9246ce7 before 77f216f8de6221efb6f6c471bc9e598f1879825b; from 443c1228d50518f3c550e1fef490a2c9d9246ce7 before 69259c627009bf7621010ae9e997dad2dad3339c; from 443c1228d50518f3c550e1fef490a2c9d9246ce7 before 4d2048466af9e2c960c5be6dcd317e3b657d268b; from 443c1228d50518f3c550e1fef490a2c9d9246ce7 before fc65623524b5bf23baddc6ae688d954fba0d5de2; from 443c1228d50518f3c550e1fef490a2c9d9246ce7 before 28e84c6e2e6753ed238ea097b2842a32a6a6879b; 2.6.32 (not affected: before 2.6.32; from 5.10.273 up to 5.10.*; from 5.15.224 up to 5.15.*; from 6.1.188 up to 6.1.*; from 6.6.157 up to 6.6.*; from 6.12.110 up to 6.12.*; from 6.18.51 up to 6.18.*; from 7.2.5 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/ac9d7ca8199c64c320ba8177e3c0f7b0deb7ff06>
- <https://git.kernel.org/stable/c/99bf01e2563f8bdfe5f25e489596cff455a35d6b>
- <https://git.kernel.org/stable/c/daa5b32cdf7db81a07ee2a91ce092a363e7754aa>
- <https://git.kernel.org/stable/c/77f216f8de6221efb6f6c471bc9e598f1879825b>
- <https://git.kernel.org/stable/c/69259c627009bf7621010ae9e997dad2dad3339c>
- <https://git.kernel.org/stable/c/4d2048466af9e2c960c5be6dcd317e3b657d268b>
- <https://git.kernel.org/stable/c/fc65623524b5bf23baddc6ae688d954fba0d5de2>
- <https://git.kernel.org/stable/c/28e84c6e2e6753ed238ea097b2842a32a6a6879b>

## Sources

- CVE List: [CVE-2026-89877](https://www.cve.org/CVERecord?id=CVE-2026-89877), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-89877](https://nvd.nist.gov/vuln/detail/CVE-2026-89877), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-89877 · Whole record: https://cve.day/CVE-2026-89877.json · Rebuilt by cve.day 2026-11-25T22:59:38.965Z
