# CVE-2026-68164: mm/damon/core: disallow overlapping input ranges for damon_set_regions()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-08-10T11:59:31.670Z
- Modified: 2026-11-30T16:13:21.673Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm/damon/core: disallow overlapping input ranges for damon_set_regions()

damon_set_regions() assumes the input ranges are sorted by the address and
don't overlap each other.  Hence the assumption was initially to be
explicitly validated.  But commit 97d482f4592f ("mm/damon/sysfs: reuse
damon_set_regions() for regions setting") has mistakenly removed the
validation.

This can make DAMON behave in unexpected ways.  At the best, the
monitoring results snapshot will just look weird since there will be
overlapping regions.  DAMOS will also work weirdly, applying the same
action multiple times for overlapping regions, and make DAMOS quota weird.
More seriously, depending on the setup and regions updates sequence,
negative size regions can be made.  It will trigger WARN_ONCE() if the
kernel is built with CONFIG_DAMON_DEBUG_SANITY=y.  Depending on the
monitoring results, the negative size region can further trigger division
by zero in damon_merge_two_regions().

Note that some of the consequences including the WARN_ONCE() and the
divide by zero depend on commits that were introduced after the root cause
commit 97d482f4592f ("mm/damon/sysfs: reuse damon_set_regions() for
regions setting").

Fix the problems by checking the assumption and returning an error if
the input ranges don't meet the assumption.

The issue was discovered [1] by Sashiko.

(As written by CVE List.)

## Affected

- Linux Linux: from 97d482f4592fde2322c319f07bc54f3a0d37861c before a5c453fffb6f2ce75fc10b5d8bc475f1758010bd; from 97d482f4592fde2322c319f07bc54f3a0d37861c before 4b4a3e7ef7bb622237495db9ba4dfd7417d6530e; from 97d482f4592fde2322c319f07bc54f3a0d37861c before 06a4beeeec8f03f0b3e9c78a98f1ae4f0f18cfbd; from 97d482f4592fde2322c319f07bc54f3a0d37861c before 6ce0db97fb37ab8cf8596edca0e3de8618ab009a; from 97d482f4592fde2322c319f07bc54f3a0d37861c before e33adf96afb5883f84b0d98747976bde293e33cb; from 97d482f4592fde2322c319f07bc54f3a0d37861c before 954157679ec34661c2e87e7eb796104a797c32db; 5.19 (not affected: before 5.19; from 6.1.183 up to 6.1.*; from 6.6.148 up to 6.6.*; from 6.12.101 up to 6.12.*; from 6.18.42 up to 6.18.*; from 7.1.6 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/a5c453fffb6f2ce75fc10b5d8bc475f1758010bd>
- <https://git.kernel.org/stable/c/4b4a3e7ef7bb622237495db9ba4dfd7417d6530e>
- <https://git.kernel.org/stable/c/06a4beeeec8f03f0b3e9c78a98f1ae4f0f18cfbd>
- <https://git.kernel.org/stable/c/6ce0db97fb37ab8cf8596edca0e3de8618ab009a>
- <https://git.kernel.org/stable/c/e33adf96afb5883f84b0d98747976bde293e33cb>
- <https://git.kernel.org/stable/c/954157679ec34661c2e87e7eb796104a797c32db>

## Sources

- CVE List: [CVE-2026-68164](https://www.cve.org/CVERecord?id=CVE-2026-68164), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-68164](https://nvd.nist.gov/vuln/detail/CVE-2026-68164), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-68164 · Whole record: https://cve.day/CVE-2026-68164.json · Rebuilt by cve.day 2026-11-30T16:17:35.701Z
