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 95654361959 for ; Sat, 15 Aug 2026 06:15:02 +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=1786774503; cv=none; b=YMaJ/PyPiTeOoHTtbTykBYlEL5ZbgWdobYrY4+LsjJQIbBfhzX4/iyCTQozNQJtV1R4d33JteiAE1WzAyZMobTc7+GgUlnN7VSUvIFDdZ4Vb0z3ncawb831RjszSkwMWZlaA7sjj6xP1E5IW98LMPurfwNwVbDLa4EqBdu3X2/A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774503; c=relaxed/simple; bh=d4t+T5n7CVdIS46dD4LDccmfvoxoNXW7sZQTp6IQMhI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oz8ZoAqd9kisnPLoj40FJMRbVMDAT2UnljFtbI9xK3+fzs77OePqLiOSVuuxDFX+vJ/VEvojlvkpw2e5hhXfG3ZzKgZ59rv1KoUAqBa5HPHpx73uVxoaOSVpgLlcyms327uH5HT/Ztw95Ztnyf+MVCpLBFBdJetDZ0piA212KQc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=If/lg07x; 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="If/lg07x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 154681F000E9; Sat, 15 Aug 2026 06:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774502; bh=m1dD1mfKP+gYCgTiDt3wHO1f14QwZi84doopelMdiOg=; h=From:To:Cc:Subject:Date:Reply-To; b=If/lg07x9v8mFetoIDm7hHjLhS1B264kHpSXofEYMjtKGnbUT1ylM2fPB0YLhlw5m yvq5eWoBkOL3FO3F6oZ0K8gU/dPOqgLO8lZaf5JmE6fhmT7+sHqbNuiJf9/TTyKBFv 1GsBsFDTe677fXyt3xw6etu/tf1f3HwyQOD903vk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72177: mm/damon/sysfs-schemes: fix dir put orders in access_pattern_add_dirs() Date: Sat, 15 Aug 2026 15:04:16 +0900 Message-ID: <2026081539-CVE-2026-72177-0644@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=3447; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JZ/0A+Hq354PL+zkpguIppObfXamA43NQZLzQOykzKo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDIfXPXA8v0k19rFBgwOnr/rVktkZUhcTrJNfF3fM+ Rb3KnRVRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyky59hnuGs1Uf5ZKfXFzvW XJz3+gfPdNEdexgWHCnp8F2zYtnNrGNri5K13aZ4usu3AgA= 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-schemes: fix dir put orders in access_pattern_add_dirs() Patch series "mm/damon/sysfs-schemes: fix wrong directories put orders in error paths". Error paths of damon_sysfs_access_pattern_add_dirs() and damon_sysfs_scheme_add_dirs() functions put references to directories in wrong orders. As a result, uninitialized memory dereference and/or memory leak can happen. Fix those. This patch (of 2): In access_pattern_add_dirs(), error handling path puts references starting from setup failed directories. If the failure happpened from the initial allication in the setup functions, uninitialized memory dereference happen. The allocation failures will not commonly happen, but the consequence is quite bad. Fix the wrong reference put orders. The issue was discovered [1] by Sashiko. The Linux kernel CVE team has assigned CVE-2026-72177 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 7e84b1f8212a038ebeee06de56db7181148fa0cd and fixed in 6.1.178 with commit 0710cc97962ca3bcabaa15ce7fead300faf726cd Issue introduced in 5.18 with commit 7e84b1f8212a038ebeee06de56db7181148fa0cd and fixed in 6.6.145 with commit a8c0592a80e954825f2ba29e7f32893f1df762f2 Issue introduced in 5.18 with commit 7e84b1f8212a038ebeee06de56db7181148fa0cd and fixed in 6.12.97 with commit e03442b0c48bdb034f5b7cf9f3b76d8025576071 Issue introduced in 5.18 with commit 7e84b1f8212a038ebeee06de56db7181148fa0cd and fixed in 6.18.40 with commit f18c561eb9c51f1ba3adb6117926a98a66599848 Issue introduced in 5.18 with commit 7e84b1f8212a038ebeee06de56db7181148fa0cd and fixed in 7.1.5 with commit ee59df7a886a35113f309e3eb791060c46f79bb1 Issue introduced in 5.18 with commit 7e84b1f8212a038ebeee06de56db7181148fa0cd and fixed in 7.2-rc3 with commit d58fdbe37a829fd2e5803dd4e5a72992dd8c5368 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-72177 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-schemes.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/0710cc97962ca3bcabaa15ce7fead300faf726cd https://git.kernel.org/stable/c/a8c0592a80e954825f2ba29e7f32893f1df762f2 https://git.kernel.org/stable/c/e03442b0c48bdb034f5b7cf9f3b76d8025576071 https://git.kernel.org/stable/c/f18c561eb9c51f1ba3adb6117926a98a66599848 https://git.kernel.org/stable/c/ee59df7a886a35113f309e3eb791060c46f79bb1 https://git.kernel.org/stable/c/d58fdbe37a829fd2e5803dd4e5a72992dd8c5368