Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C48204F6496 for ; Wed, 16 Sep 2026 10:43:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555431; cv=none; b=ugzpVoRPO1zvrUWcWTMpbibVDTg4i0tMqttH+bI+S5l1UNUheYYvKubdt0yFiuoJSGqqptBn8LSfR9/t2ncZL9l5fxyajPXhRHnB9pmhi+z9sAmlMspMC3EDBmIHYwhvyYk0HaDJ0KuV/MRPwckmJ8ac9XVwe+sdFk8KcVs5AfE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555431; c=relaxed/simple; bh=skV9SmCYvG9hFZinl0v8OvF1yAARuQEHXkQIugr+2Dc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Mslq5jr5LDOlNftLllUy4qf5SH8N2CVWltNd4t124o7/7IfJM6vAflqy90lmVRUCLD4CGHjp1UCNrJRXTtGy9nbiy+yBUkaOwaVHxkBJQ+IzpqtR2xRjv88WumNQLEYf8RXnMPqJoRZ9GY+Adcg0+seYxMjhNtDhtmbnCvjGzdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=N9FIapF0; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="N9FIapF0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7C761F00899; Wed, 16 Sep 2026 10:43:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555410; bh=ajCSvqrjkdalbHUsrbUNsG5Z2nX4GY05IdgvFk2cTGc=; h=From:To:Cc:Subject:Date:Reply-To; b=N9FIapF0Xh+g8AkdQMt2Cs5pxnJRizN91cGxzcakhe+Nfo4DsDmCAk1xfzamFV8hL oIbkpS8p1kKYqpw5j67ZCYrfuQJaAVvJDCvpCuiYqAAhwObbcJgZ7XXPBWNnyY9A9v 4qFh5U2387M3WkA+BhAoc1fsQLicyIHe8s6IReec= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90006: samples/damon/mtier: handle damon_stop() failure Date: Wed, 16 Sep 2026 11:32:16 +0100 Message-ID: <2026091601-CVE-2026-90006-1d91@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3262; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LgSc+o/2XNKtzjLxSRglUqeNk4gEma5uW4CH9e/P1vQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8ldue9i5grOp9pHQdofEA4tNxVPWbLecqTb5f7lRs 5hN2/lpHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARk18M892DWabfnekvuo1H e+0KrzdO9ku2/WVYsNNhVrSdZ9rm5ZucD3lz/8y4duH5UwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: samples/damon/mtier: handle damon_stop() failure damon_sample_mtier_stop() assumes its damon_stop() call will always successfully stops the two DAMON contexts. Hence it deallocates the two DAMON contexts after the damon_stop() call. However, if a given context is already stopped, damon_stop() fails and returns an error while letting the DAMON contexts that have not yet stopped keep running. This kind of unexpected early DAMON context stops could happen due to memory allocation failures in kdamond_fn(). Because damon_sample_mtier_stop() just deallocates all DAMON contexts with damon_target and damon_region objects that are linked to the contexts, the execution of the unstopped DAMON context (kdamond) ends up using the memory that freed (use-after-free). Fix the issue by separating the damon_stop() to be invoked per context. Note that DAMON_SYSFS also allows multiple DAMON contexts execution. But, it calls damon_stop() for each context one by one. Hence this issue is only in mtier. For the long term, it would be better to refactor damon_stop() to always ensure stopping all contexts regardless of the failures in the middle. Make this fix in the current way, though, to keep it simple and easy to backport. I will do the refactoring later. The issue was discovered [1] by Sashiko. The Linux kernel CVE team has assigned CVE-2026-90006 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 82a08bde3cf7bbbe90de57baa181bebf676582c7 and fixed in 6.18.51 with commit 3c07c57b894116ae26f01b84c68e68b538ada7ed Issue introduced in 6.16 with commit 82a08bde3cf7bbbe90de57baa181bebf676582c7 and fixed in 7.2.5 with commit 215f9a7e4f1dcfc05ebcdc5c1ad0ea0dcb47bd09 Issue introduced in 6.16 with commit 82a08bde3cf7bbbe90de57baa181bebf676582c7 and fixed in 7.3-rc1 with commit 9dc5b6d66fd51b103eff21ed0df3e292f489ebc0 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-90006 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: samples/damon/mtier.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/3c07c57b894116ae26f01b84c68e68b538ada7ed https://git.kernel.org/stable/c/215f9a7e4f1dcfc05ebcdc5c1ad0ea0dcb47bd09 https://git.kernel.org/stable/c/9dc5b6d66fd51b103eff21ed0df3e292f489ebc0