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 47C4F23C8AE for ; Fri, 24 Apr 2026 14:48:05 +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=1777042085; cv=none; b=YFrO5POuVsQXPbNwn0SNshlIQ/cmjflIlWCQAQaR11by5DZU0g8plIX6eOnB92aBtOs9MZBwG9LcliVRu1++hF7T4aZzOrFWGbC4gtbT6JVbCyCgITQQ8Z2UWoGs8fAvUbEY3ZFxGe6ExaFkRfOFanqUwfrOAW2dujhPkvvhOAg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777042085; c=relaxed/simple; bh=lCET6Iyg3IUP0aLNSazL1kiLWoqbFZW/o9YRqz2zKS0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Xr7HXWfPBq25sp0vqsrdg2kpE/h1SoIJANCZx8SZklpvPWOEpEJ1Nhb9CGBhAxdDbdlSoyhnZg6jL+82fu0GHxJ9doek260G3/UWIzJ5JhR4BXyVL1RJgwKEyO5ay3SA+wNSLj7HiEG4L1yBpHfzMVwBYT5eolB7EOkDTjg2RLs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y61jAkYl; 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="y61jAkYl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2142C19425; Fri, 24 Apr 2026 14:48:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777042085; bh=lCET6Iyg3IUP0aLNSazL1kiLWoqbFZW/o9YRqz2zKS0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=y61jAkYlUPJDM8+4Kes1gGcX/5lWK40b4cX8jcu2KYvMXiHVeHxgIBEtfu74Khja8 b2PooQtF3K8K58FkJQdVUWRkUBrxlZOkt7I33jerrb54r787CdxsgRXMbtsv2o6VIY 2okdjdLdVqz9oRaXizlJrnp9RzRU1/HkuMbiLq30= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31653: mm/damon/sysfs: dealloc repeat_call_control if damon_call() fails Date: Fri, 24 Apr 2026 16:46:15 +0200 Message-ID: <2026042401-CVE-2026-31653-cb56@gregkh> X-Mailer: git-send-email 2.53.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=2532; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HQko01pQM36CWWBduswDQ4/0uPOAS6ID3t/VQEKNiU4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvmzSfR5VIavJVeum9LWVwW/yqvYBlQcP78ueO9qvCf xd2P9zeEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOpfccwv+KYYMGtFd9ungiM 8Ww673m+Z92ZdoYFy7u/Rt/8VH0rZfu0iyHxZguizA7yAAA= 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/sysfs: dealloc repeat_call_control if damon_call() fails damon_call() for repeat_call_control of DAMON_SYSFS could fail if somehow the kdamond is stopped before the damon_call(). It could happen, for example, when te damon context was made for monitroing of a virtual address processes, and the process is terminated immediately, before the damon_call() invocation. In the case, the dyanmically allocated repeat_call_control is not deallocated and leaked. Fix the leak by deallocating the repeat_call_control under the damon_call() failure. This issue is discovered by sashiko [1]. The Linux kernel CVE team has assigned CVE-2026-31653 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit 04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d and fixed in 6.18.23 with commit b9dadf026a9fb681ed32a0646adc10ab485bf3b1 Issue introduced in 6.17 with commit 04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d and fixed in 6.19.13 with commit 0655f5cf1735508394ef8af98ddcfab3ac1c1cc5 Issue introduced in 6.17 with commit 04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d and fixed in 7.0 with commit 0199390a6b92fc21860e1b858abf525c7e73b956 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-31653 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/sysfs.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/b9dadf026a9fb681ed32a0646adc10ab485bf3b1 https://git.kernel.org/stable/c/0655f5cf1735508394ef8af98ddcfab3ac1c1cc5 https://git.kernel.org/stable/c/0199390a6b92fc21860e1b858abf525c7e73b956