CVE-2025-40017 media: iris: Fix memory leak by freeing untracked persist buffer

Not scored Published Updated

A memory leak in the Linux kernel iris media driver allows attackers to cause denial of service by exhausting system memory.

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-2025-40017?

CVE-2025-40017 is a memory corruption vulnerability in Linux, published on 20 Oct 2025. 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: iris: Fix memory leak by freeing untracked persist buffer

One internal buffer which is allocated only once per session was not being freed during session close because it was not being tracked as part of internal buffer list which resulted in a memory leak.

Add the necessary logic to explicitly free the untracked internal buffer during session close to ensure all allocated memory is released properly.

Which versions are affected by CVE-2025-40017?

How do I fix CVE-2025-40017?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-40017 being exploited?

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

Sources

Also known as BELL-CVE-2025-40017, DEBIAN-CVE-2025-40017, GHSA-p74f-qpqg-5w8f, UBUNTU-CVE-2025-40017.

Is CVE-2025-40017 in your software?

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

Check your SBOMs for free