Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C8A1631BC9E for ; Sun, 25 Jan 2026 14:37:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769351839; cv=none; b=PxczTPEY8Lb50mZTKCoKhmrEbWIzeEojfhMA2ixpZpG3OuiEy2sCRHMwS80TrXLxFvAX+P1t/+rh4FCcpw8PhDcbDj71j8QP5MUtU7nrz/O/6E+tvFA5FbkF3NZICVlJnhPGAVsga71+0TukOIV2WxxahH7PURVyst6Qzz7Vbm4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769351839; c=relaxed/simple; bh=RMMvbeZdfUxnU1wqQn0Emk5nbjzHn83wSgLWhY07L7M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HvDK5nbKNt5DrDfzCMG98/YGlP66Q9kc+TbQTxmcNhaPX4sWvoJaTGMR+XgQ1oWw9XHDPFM1B9VhtDVFBylsv17sPaCNAYJjmrO4CcyzPS7MrW776d4AMX/GNbKsq8oL0bPgKwZUycQWZcQULNgTt3zHwQmSzSI61ecYJWM9HEU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z2IEB0lo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="z2IEB0lo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 037F8C4CEF1; Sun, 25 Jan 2026 14:37:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769351839; bh=RMMvbeZdfUxnU1wqQn0Emk5nbjzHn83wSgLWhY07L7M=; h=From:To:Cc:Subject:Date:Reply-To:From; b=z2IEB0loP4OM0En8QtY90mY5zXjK7LEQH9Pcd+uEigW3tJawZPcOLY5LQcxYo2ZAk AxViQFZkmKI/rnfSYr6fTlfvn8gdyC9QyOy2bKgTCpA++6CmeuFIlO+NpSeTlfVS6c BZ3+4006ZFBMaMdY/TvGbwNBMujyDZ+AaLIHeFaA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23012: mm/damon/core: remove call_control in inactive contexts Date: Sun, 25 Jan 2026 15:36:48 +0100 Message-ID: <2026012538-CVE-2026-23012-8a3d@gregkh> X-Mailer: git-send-email 2.52.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=3069; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=a0YFivpRuDiksgiTvXN9EXPf7l2YgKU0ci9St9eVKgc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJllWmVeK6Pc29cIsb5dpuVXci7UJ1uqmaVFN6J+XhJPo /HG9KSOWBYGQSYGWTFFli/beI7urzik6GVoexpmDisTyBAGLk4BmMi5NQwLpvA+TAoJf73Oepk+ Y2j+M7u89bZvGObwbTB9ocK+Ki4r6drqlXN1c2+faewCAA== 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: mm/damon/core: remove call_control in inactive contexts If damon_call() is executed against a DAMON context that is not running, the function returns error while keeping the damon_call_control object linked to the context's call_controls list. Let's suppose the object is deallocated after the damon_call(), and yet another damon_call() is executed against the same context. The function tries to add the new damon_call_control object to the call_controls list, which still has the pointer to the previous damon_call_control object, which is deallocated. As a result, use-after-free happens. This can actually be triggered using the DAMON sysfs interface. It is not easily exploitable since it requires the sysfs write permission and making a definitely weird file writes, though. Please refer to the report for more details about the issue reproduction steps. Fix the issue by making two changes. Firstly, move the final kdamond_call() for cancelling all existing damon_call() requests from terminating DAMON context to be done before the ctx->kdamond reset. This makes any code that sees NULL ctx->kdamond can safely assume the context may not access damon_call() requests anymore. Secondly, let damon_call() to cleanup the damon_call_control objects that were added to the already-terminated DAMON context, before returning the error. The Linux kernel CVE team has assigned CVE-2026-23012 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit 004ded6bee11b8ed463cdc54b89a4390f4b64f6d and fixed in 6.18.7 with commit 23b061f421eef03647b512f3df48861706c87db3 Issue introduced in 6.17 with commit 004ded6bee11b8ed463cdc54b89a4390f4b64f6d and fixed in 6.19-rc6 with commit f9132fbc2e83baf2c45a77043672a63a675c9394 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-23012 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: mm/damon/core.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/23b061f421eef03647b512f3df48861706c87db3 https://git.kernel.org/stable/c/f9132fbc2e83baf2c45a77043672a63a675c9394