[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025120459-CVE-2025-40229-136f@gregkh>
Date: Thu, 4 Dec 2025 16:32:04 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-40229: mm/damon/core: fix potential memory leak by cleaning ops_filter in damon_destroy_scheme
From: Greg Kroah-Hartman <gregkh@...nel.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.
The Linux kernel CVE team has assigned CVE-2025-40229 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit ab82e57981d0e4cb46d2817e7b65b9d5fdcf3832 and fixed in 6.17.6 with commit ff8dcf621a4172f4a6d42cbbb25d21659d3ac300
Issue introduced in 6.15 with commit ab82e57981d0e4cb46d2817e7b65b9d5fdcf3832 and fixed in 6.18 with commit 7071537159be845a5c4ed5fb7d3db25aa4bd04a3
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-40229
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
mm/damon/core.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/ff8dcf621a4172f4a6d42cbbb25d21659d3ac300
https://git.kernel.org/stable/c/7071537159be845a5c4ed5fb7d3db25aa4bd04a3
Powered by blists - more mailing lists