Linux Kernel DAMON Context Leak Vulnerability in Memory Management

Vulnerability

A memory management vulnerability has been identified in the Linux kernel's DAMON (Data Access Monitoring) subsystem. The issue arises in the 'mm/damon/stat' module, where the 'damon_stat_start()' function allocates a context object but fails to deallocate it if the 'damon_call()' function encounters an error. This oversight leads to a memory leak, as the allocated context is not released. Furthermore, if the user re-enables the DAMON statistics collection before the leaked context is properly handled, it can result in a use-after-free scenario, where the DAMON process accesses freed memory, potentially causing instability or security issues.

Impact

Exploitation of this vulnerability causes a memory leak that can lead to a use-after-free condition, allowing the DAMON process to access deallocated memory, which can be manipulated to cause undefined behavior or memory corruption.

Reproduction

The vulnerability can be reproduced by enabling the DAMON statistics collection, which allocates a context object. If the 'damon_call()' function fails, the context object remains allocated but is not properly managed. Re-enabling the statistics collection before the context is released causes the previously allocated context to be leaked, creating a use-after-free situation when the DAMON process accesses the freed memory.

Remediation

The vulnerability has been addressed in the Linux kernel. Users should upgrade to the latest version where this issue has been fixed.

Added: Apr 24, 2026, 4:13 PM
Updated: Apr 24, 2026, 4:13 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
3.9
remediation
7.7
relevance
6.6
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.