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

- Severity: not scored yet
- 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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-12-04T15:31:20.548Z
- Modified: 2026-10-19T19:10:00.130Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from ab82e57981d0e4cb46d2817e7b65b9d5fdcf3832 before ff8dcf621a4172f4a6d42cbbb25d21659d3ac300; from ab82e57981d0e4cb46d2817e7b65b9d5fdcf3832 before 7071537159be845a5c4ed5fb7d3db25aa4bd04a3; 6.15 (not affected: before 6.15; from 6.17.6 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/ff8dcf621a4172f4a6d42cbbb25d21659d3ac300>
- <https://git.kernel.org/stable/c/7071537159be845a5c4ed5fb7d3db25aa4bd04a3>

## Sources

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

---

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