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 8C7E948C401 for ; Wed, 1 Jul 2026 13:35:54 +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=1782912957; cv=none; b=SsX2GQ/8Gjs7/AuBmeiOb77Ypmj36OaAh2x5o6uI+KdIaB5lTz0gYWMceMNmJwhS4p5Wm2ueRvB57ouqHiAMBP7uZDB6i0VKx7tgqeLBZTR2KKP+hSSM0TM3JHn2+IUqzWgXD3QGjS2G3AeulG7EJzqMLQRbaXrieq0FuInWYXY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782912957; c=relaxed/simple; bh=FngblQclkj9ZLjjmnTapYI6bKj3Z+uHzJS9TRUtb6wk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SoxJ4Wx5uo+I+8rttn7Nqy5rfezjgVa3E4IVIh07kBe/MQF5sYFAEr7fjnWt5RbD+MEL+sQlO9D8j76ivQ88qJ7XL+TizbH+OBWGs0ynBPhHD0URiaf0Qmys1K7s1gedYOMZCyFkrWvBPQgIm/EAwHHVykCFLLqLDUEyJyrtBw4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tS1vdkgG; 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="tS1vdkgG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B0451F000E9; Wed, 1 Jul 2026 13:35:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782912954; bh=fZTo9KGu6tDt6UlDbwyIxogUIl/fE6sBi2vI62wyaLg=; h=From:To:Cc:Subject:Date:Reply-To; b=tS1vdkgGk7DEfNWM3lbV+55Jx4KsYiZM5m6HHzlVYHJKAUFgqIemLklfqiWkys7bg zWHegC0RXuoGFghnx/oP3OwB4f3Ob1+qgAxASxzaT+2zHeMO8a+t0Q6gRRT9dwop7M IlvLsVCmDj5zoEAPYT5bkXJkN8W+Oak4MnAl05Eg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53334: mm/damon/reclaim: handle ctx allocation failure Date: Wed, 1 Jul 2026 15:34:49 +0200 Message-ID: <2026070143-CVE-2026-53334-4d11@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=2860; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wbmza+CW7smfMm6PM4CEQEY2snnFPycw9Lvgp2B9+pU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmu4sWrnDsk34UvWRK6fN7Di/VbjrrzZ+3eq2loc0RXI vndw3arjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIfTbD/HzjM90/mM7MlCjb aFFjJFW/8F6SEsNcqXdPNnUleVW5B/6svJPE8PHchZBcAA== 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/reclaim: handle ctx allocation failure Patch series "mm/damon/{reclaim,lru_sort}: handle ctx allocation failures". DAMON_RECLAIM and DAMON_LRU_SORT could dereference NULL pointers if their damon_ctx object allocations fail. The bugs are expected to happen infrequently because the allocations are arguably too small to fail on common setups. But theoretically they are possible and the consequences are bad. Fix those. The issues were discovered [1] by Sashiko. This patch (of 2): DAMON_RECLAIM allocates the damon_ctx object for its kdamond in its init function. damon_reclaim_enabled_store() wrongly assumes the allocation will always succeed once tried. If the damon_ctx allocation was failed, therefore, code execution reaches to damon_commit_ctx() while 'ctx' is NULL. As a result, it dereferences the NULL 'ctx' pointer. Avoid the NULL dereference by returning -ENOMEM if 'ctx' is NULL. The Linux kernel CVE team has assigned CVE-2026-53334 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 3f7a914ab9a5e46cf8aac7de270f02aa3f63de04 and fixed in 6.18.36 with commit 66bc00ea37fa8ec14be5a3909d067a5967ef234b Issue introduced in 6.18 with commit 3f7a914ab9a5e46cf8aac7de270f02aa3f63de04 and fixed in 7.0.13 with commit 635b45ce61de53a9357e28ac97461428cdb650f0 Issue introduced in 6.18 with commit 3f7a914ab9a5e46cf8aac7de270f02aa3f63de04 and fixed in 7.1 with commit 7e2ed8a29427af534bf2cb9b8bc51762b8b6e654 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-53334 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/reclaim.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/66bc00ea37fa8ec14be5a3909d067a5967ef234b https://git.kernel.org/stable/c/635b45ce61de53a9357e28ac97461428cdb650f0 https://git.kernel.org/stable/c/7e2ed8a29427af534bf2cb9b8bc51762b8b6e654