CVE-2025-40229 mm/damon/core: fix potential memory leak by cleaning ops_filter in damon_destroy_scheme

Not scored Published Updated

A memory leak in the Linux kernel DAMON subsystem can lead to resource exhaustion and denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
Available

What is CVE-2025-40229?

CVE-2025-40229 is a memory corruption vulnerability in Linux, published on 4 Dec 2025.

Official description

In the Linux kernel, the following vulnerability has been resolved:

mm/damon/core: fix potential memory leak by cleaning ops_filter in damon_destroy_scheme

Currently, damon_destroy_scheme() only cleans up the filter list but leaves ops_filter untouched, which could lead to memory leaks when a scheme is destroyed.

This patch ensures both filter and ops_filter are properly freed in damon_destroy_scheme(), preventing potential memory leaks.

Which versions are affected by CVE-2025-40229?

How do I fix CVE-2025-40229?

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-40229 being exploited?

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

Sources

Also known as BELL-CVE-2025-40229, DEBIAN-CVE-2025-40229, GHSA-23h8-7x35-v9v9, UBUNTU-CVE-2025-40229.

Is CVE-2025-40229 in your software?

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

Check your SBOMs for free