{"id":"CVE-2026-68165","summary":"mm/damon/core: validate ranges in damon_set_regions()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/core: validate ranges in damon_set_regions()\n\nDAMON core logic assumes zero length regions don't exist.  However, a few\nDAMON API callers including DAMON_SYSFS, DAMON_RECLAIM and DAMON_LRU_SORT\nallow users to set empty monitoring target regions.  This could result in\nWARN_ONCE() on CONFIG_DAMON_DEBUG_SANITY enabled kernel, and\ndivide-by-zero from damon_merge_two_regions().\n\nFor example, the WANR_ONCE() can be triggered like below.\n\n    # grep DAMON_DEBUG_SANITY /boot/config-$(uname -r)\n    # CONFIG_DAMON_DEBUG_SANITY=y\n    # damo start\n    # cd /sys/kernel/mm/damon/admin/kdamonds/0\n    # echo 0 \u003e contexts/0/targets/0/regions/0/start\n    # echo 0 \u003e contexts/0/targets/0/regions/0/end\n    # echo commit \u003e state\n    # dmesg\n    [....]\n    [   73.705780] ------------[ cut here ]------------\n    [   73.707552] start 0 \u003e= end 0\n    [   73.708452] WARNING: mm/damon/core.c:359 at damon_new_region+0x6e/0x80, CPU#1: kdamond.0/758\n    [...]\n\nAll DAMON API callers eventually use damon_set_regions() to setup the\nregions.  Add the validation logic in the function.","modified":"2026-08-12T04:19:21.643552737Z","published":"2026-08-10T11:59:33.152Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68165.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1292c0ecb1caefb8ca064a3639d5673991e8810c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/43aaddd0fa92010a68adeda7744c7cf497a1c8e9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4b6f1d6d5d07855bd1bb9e64922b049062138bfa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b585facbafbb5cf117b37b1c75819ac046646c27"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c927b73a5694c735314ea10e7c81c07f9bd51ad7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68165.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68165"},{"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":"43b0536cb4710e7bb591edfda7e68a1c327a3409"},{"fixed":"b585facbafbb5cf117b37b1c75819ac046646c27"},{"fixed":"c927b73a5694c735314ea10e7c81c07f9bd51ad7"},{"fixed":"4b6f1d6d5d07855bd1bb9e64922b049062138bfa"},{"fixed":"43aaddd0fa92010a68adeda7744c7cf497a1c8e9"},{"fixed":"1292c0ecb1caefb8ca064a3639d5673991e8810c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68165.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.6.148"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.101"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.42"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68165.json"}}],"schema_version":"1.9.0"}