CVE-2025-40227: mm/damon/sysfs: dealloc commit test ctx always
In the Linux kernel, the following vulnerability has been resolved:
mm/damon/sysfs: dealloc commit test ctx always
The damonctx for testing online DAMON parameters commit inputs is deallocated only when the test fails. This means memory is leaked for every successful online DAMON parameters commit. Fix the leak by always deallocating it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Deallocate the DAMON test context after every successful online DAMON parameters commit, not only when the test fails.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-40227?
CVE-2025-40227 has been classified with a high severity due to potential memory leaks affecting system stability.
How do I fix CVE-2025-40227?
To mitigate CVE-2025-40227, update your Linux kernel to the latest version where the vulnerability has been patched.
What versions of the Linux kernel are affected by CVE-2025-40227?
CVE-2025-40227 affects specific versions of the Linux kernel prior to the fix being applied in the latest patches.
What impact does CVE-2025-40227 have on system performance?
CVE-2025-40227 can lead to increased memory usage and degraded performance due to the memory leak caused by the vulnerability.
Is CVE-2025-40227 being actively exploited?
As of now, there is no public information indicating active exploitation of CVE-2025-40227 in the wild.