{"id":24694,"date":"2026-09-16T20:32:39","date_gmt":"2026-09-16T12:32:39","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-90006"},"modified":"2026-09-16T20:32:39","modified_gmt":"2026-09-16T12:32:39","slug":"cve-2026-90006","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-90006","title":{"rendered":"CVE-2026-90006 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nsamples\/damon\/mtier:"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>samples\/damon\/mtier: handle damon_stop() failure<\/p>\n<p>damon_sample_mtier_stop() assumes its damon_stop() call will always<br \/>\nsuccessfully stops the two DAMON contexts.  Hence it deallocates the two<br \/>\nDAMON contexts after the damon_stop() call.  However, if a given context<br \/>\nis already stopped, damon_stop() fails and returns an error while letting<br \/>\nthe DAMON contexts that have not yet stopped keep running.  This kind of<br \/>\nunexpected early DAMON context stops could happen due to memory allocation<br \/>\nfailures in kdamond_fn().  Because damon_sample_mtier_stop() just<br \/>\ndeallocates all DAMON contexts with damon_target and damon_region objects<br \/>\nthat are linked to the contexts, the execution of the unstopped DAMON<br \/>\ncontext (kdamond) ends up using the memory that freed (use-after-free).<br \/>\nFix the issue by separating the damon_stop() to be invoked per context.<\/p>\n<p>Note that DAMON_SYSFS also allows multiple DAMON contexts execution.  But,<br \/>\nit calls damon_stop() for each context one by one.  Hence this issue is<br \/>\nonly in mtier.<\/p>\n<p>For the long term, it would be better to refactor damon_stop() to always<br \/>\nensure stopping all contexts regardless of the failures in the middle.<br \/>\nMake this fix in the current way, though, to keep it simple and easy to<br \/>\nbackport.  I will do the refactoring later.<\/p>\n<p>The issue was discovered [1] by Sashiko.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>samples\/damon\/mtier: handle damon_stop() failure<\/p>\n<p>damon_sample_mtier_stop() assumes its damon_stop() call will always<br \/>\nsuccessfully <\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-24694","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/24694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}