CVE-2024-57886: mm/damon/core: fix new damon_target objects leaks on damon_commit_targets()
In the Linux kernel, the following vulnerability has been resolved:
mm/damon/core: fix new damontarget objects leaks on damoncommittargets()
Patch series "mm/damon/core: fix memory leaks and ignored inputs from damoncommitctx()".
Due to two bugs in damoncommittargets() and damoncommitschemes(), which are called from damoncommitctx(), some user inputs can be ignored, and some mmeory objects can be leaked. Fix those.
Note that only DAMON sysfs interface users are affected. Other DAMON core API user modules that more focused more on simple and dedicated production usages, including DAMONRECLAIM and DAMONLRUSORT are not using the buggy function in the way, so not affected.
This patch (of 2):
When new DAMON targets are added via damoncommittargets(), the newly created targets are not deallocated when updating the internal data (damoncommittarget()) is failed. Worse yet, even if the setup is successfully done, the new target is not linked to the context. Hence, the new targets are always leaked regardless of the internal data setup failure. Fix the leaks.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-57886?
The severity of CVE-2024-57886 has not been explicitly rated by MITRE, but vulnerabilities in the Linux kernel typically require immediate attention.
How do I fix CVE-2024-57886?
To fix CVE-2024-57886, update your Linux kernel to the latest version where this vulnerability is patched.
What does CVE-2024-57886 affect?
CVE-2024-57886 affects the memory management subsystem of the Linux kernel, specifically the DAMON (Data Access Monitoring) framework.
What are the potential risks of CVE-2024-57886?
The potential risks of CVE-2024-57886 include memory leaks which can lead to degraded performance or service interruptions.
When was CVE-2024-57886 announced?
CVE-2024-57886 was announced following the discovery of memory leak issues in the DAMON framework in the Linux kernel.