mm/damon/core: fix potential memory leak by cleaning ops_filter in damon_destroy_scheme
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's damon_destroy_scheme() frees the filter list but leaves ops_filter allocated, potentially leaking memory when a scheme is destroyed. The input does not identify an attacker action or specify whether exploitation requires network access, local access, authentication, or user interaction.
Teams running Linux kernels with the affected DAMON code should check their installations; affected versions were not provided.