CVE-2025-40229

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

State
Published
Severity
Not scored
Published
Dec 4, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • ab82e57981d0e4cb46d2817e7b65b9d5fdcf3832 to before ff8dcf621a4172f4a6d42cbbb25d21659d3ac300Affected
  • ab82e57981d0e4cb46d2817e7b65b9d5fdcf3832 to before 7071537159be845a5c4ed5fb7d3db25aa4bd04a3Affected
LinuxLinux
  • 6.15Affected
  • before 6.15Not affected
  • 6.17.6 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.