{"id":"CVE-2026-72177","summary":"mm/damon/sysfs-schemes: fix dir put orders in access_pattern_add_dirs()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/sysfs-schemes: fix dir put orders in access_pattern_add_dirs()\n\nPatch series \"mm/damon/sysfs-schemes: fix wrong directories put orders in\nerror paths\".\n\nError paths of damon_sysfs_access_pattern_add_dirs() and\ndamon_sysfs_scheme_add_dirs() functions put references to directories in\nwrong orders.  As a result, uninitialized memory dereference and/or\nmemory leak can happen.  Fix those.\n\n\nThis patch (of 2):\n\nIn access_pattern_add_dirs(), error handling path puts references starting\nfrom setup failed directories.  If the failure happpened from the initial\nallication in the setup functions, uninitialized memory dereference\nhappen.  The allocation failures will not commonly happen, but the\nconsequence is quite bad.  Fix the wrong reference put orders.\n\nThe issue was discovered [1] by Sashiko.","modified":"2026-08-18T03:31:15.104360827Z","published":"2026-08-15T05:53:41.496Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72177.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0710cc97962ca3bcabaa15ce7fead300faf726cd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a8c0592a80e954825f2ba29e7f32893f1df762f2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d58fdbe37a829fd2e5803dd4e5a72992dd8c5368"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e03442b0c48bdb034f5b7cf9f3b76d8025576071"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ee59df7a886a35113f309e3eb791060c46f79bb1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f18c561eb9c51f1ba3adb6117926a98a66599848"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72177.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72177"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7e84b1f8212a038ebeee06de56db7181148fa0cd"},{"fixed":"0710cc97962ca3bcabaa15ce7fead300faf726cd"},{"fixed":"a8c0592a80e954825f2ba29e7f32893f1df762f2"},{"fixed":"e03442b0c48bdb034f5b7cf9f3b76d8025576071"},{"fixed":"f18c561eb9c51f1ba3adb6117926a98a66599848"},{"fixed":"ee59df7a886a35113f309e3eb791060c46f79bb1"},{"fixed":"d58fdbe37a829fd2e5803dd4e5a72992dd8c5368"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72177.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.18.0"},{"fixed":"6.1.178"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.145"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.97"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72177.json"}}],"schema_version":"1.9.0"}