CVE-2026-90006
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
16/09/2026
Last modified:
19/10/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
samples/damon/mtier: handle damon_stop() failure<br />
<br />
damon_sample_mtier_stop() assumes its damon_stop() call will always<br />
successfully stops the two DAMON contexts. Hence it deallocates the two<br />
DAMON contexts after the damon_stop() call. However, if a given context<br />
is already stopped, damon_stop() fails and returns an error while letting<br />
the DAMON contexts that have not yet stopped keep running. This kind of<br />
unexpected early DAMON context stops could happen due to memory allocation<br />
failures in kdamond_fn(). Because damon_sample_mtier_stop() just<br />
deallocates all DAMON contexts with damon_target and damon_region objects<br />
that are linked to the contexts, the execution of the unstopped DAMON<br />
context (kdamond) ends up using the memory that freed (use-after-free). <br />
Fix the issue by separating the damon_stop() to be invoked per context.<br />
<br />
Note that DAMON_SYSFS also allows multiple DAMON contexts execution. But,<br />
it calls damon_stop() for each context one by one. Hence this issue is<br />
only in mtier.<br />
<br />
For the long term, it would be better to refactor damon_stop() to always<br />
ensure stopping all contexts regardless of the failures in the middle. <br />
Make this fix in the current way, though, to keep it simple and easy to<br />
backport. I will do the refactoring later.<br />
<br />
The issue was discovered [1] by Sashiko.


