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

High 8.4 Published Updated

A use-after-free vulnerability in the saa7164 media driver allows attackers to cause denial of service or execute code via improper cleanup on resource allocation failure.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-89877?

CVE-2026-89877 is a high-severity use after free vulnerability in Linux, published on 16 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.

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

Which versions are affected by CVE-2026-89877?

How do I fix CVE-2026-89877?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-89877 being exploited?

There is no known exploitation of CVE-2026-89877 in the wild and no public exploit code.

Sources

Also known as AZL-101640, BELL-CVE-2026-89877, DEBIAN-CVE-2026-89877, GHSA-33q9-xpr9-fmxv, UBUNTU-CVE-2026-89877.

Is CVE-2026-89877 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free