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 C2BDB48C411 for ; Wed, 1 Jul 2026 13:35:56 +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=1782912960; cv=none; b=nTWWGRGqIf6qcBEdaJktxMQAqiRjqzp4psnH1/kRLMPYDpR8KF1mf1ByrfWlBVvs5+KcGrbIC4CB7vDMvMQrDzG78W6jd2dYNrDSxxvR9jow4Yc12LlO9NiWOUfpIQbBVBNEm6O+JdUyymXIHI9wNjPiiK9wZPsSWBn2xwQQX7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782912960; c=relaxed/simple; bh=6+42wRVzy6r/dEEbEgw/e2qd9Vatkri3SU5BD+EUo9c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Qd/pJOSbT8ZGvYhMi8LOeRxmDLJvfYRm1Of0/Bt4R9TIv8cdXiyZAl+UpaLm/LHhpXKmV51+wbPmIFY1bwU/IK/Kh0+mKt8ftu/Zupk67xItVFCSsvpf/cgS6YWNxwnL3a2M7veTs3+bUAP5vycn07cIHmmuVtlP0QfnT0CXqBE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cwVceYjQ; 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="cwVceYjQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DCB31F00A3A; Wed, 1 Jul 2026 13:35:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782912956; bh=kCNBCmy4MjqgoT+Bhc8eU0aZ63Lkxad41u9VlXT5a78=; h=From:To:Cc:Subject:Date:Reply-To; b=cwVceYjQ3fv4PAxQSvi4fWKCL8EyOdznR5m1gk3753Iaqdy5PRdCh5xB1hWKgwCp4 g1pDxg8OSSTRbMUc7pfXMsFhmpZhVXC2p8fLhAj6vcguZqCSF/iLuJPRwh6TZovNLh uTOSNH4FMeoX7VXCKuFMoZ0s4jTSxTOVyAi12mYY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53335: mm/damon/lru_sort: handle ctx allocation failure Date: Wed, 1 Jul 2026 15:34:50 +0200 Message-ID: <2026070143-CVE-2026-53335-6f05@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=2401; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t4vGvhxUOLeN4TcYVkQEcV9iV8Z6OMWeT7QNaW+XCZk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmu4sVie3qDysLeryueEB12b1Oq1NEldxXVBbVfrDD4k Hnz4ieGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIWDnDfLclHYWNRa3bb33o +vGjQJdNSi2Eh2Gevdbv3Edb/Sra/TNaTtizXHnlYjMTAA== 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/lru_sort: handle ctx allocation failure DAMON_LRU_SORT allocates the damon_ctx object for its kdamond in its init function. damon_lru_sort_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-53335 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit c4a8e662c839ac0003e4781aa324cb2d68ed9cb1 and fixed in 6.18.36 with commit 6d48f15659395bf1381114f01be91bc68e0be46a Issue introduced in 6.18 with commit c4a8e662c839ac0003e4781aa324cb2d68ed9cb1 and fixed in 7.0.13 with commit daab1996431a71f43219dcac48ecc9ad2aad3f1c Issue introduced in 6.18 with commit c4a8e662c839ac0003e4781aa324cb2d68ed9cb1 and fixed in 7.1 with commit ab04340b5ae5d52c1d46b750538febcde9d889e7 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-53335 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/lru_sort.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/6d48f15659395bf1381114f01be91bc68e0be46a https://git.kernel.org/stable/c/daab1996431a71f43219dcac48ecc9ad2aad3f1c https://git.kernel.org/stable/c/ab04340b5ae5d52c1d46b750538febcde9d889e7