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.
Published: 2026-08-10
Score: 4.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the Linux kernel's damon_set_regions() function, which assumes that submitted memory ranges are sorted by address and do not overlap. A recent commit removed the validation of this assumption, allowing callers to provide overlapping ranges. When such ranges are processed the logic can calculate negative sizes; the kernel then triggers WARN_ONCE if debug checks are enabled and, if the merging of overlapping regions continues, can perform a division by zero inside damon_merge_two_regions(), which will crash the kernel. The resulting failure can lead to an unexpected reboot or loss of availability. The issue is not a traditional remote flaw but directly leads to instability of the host system.

Affected Systems

All Linux kernel releases that include the damon_set_regions() function and the associated sysfs interface are potentially impacted. No specific kernel version is listed, so any build that contains damon_set_regions() and the sysfs path for region modification remains vulnerable until the missing validation is restored by the upstream patch.

Risk and Exploitability

The CVSS score of 4.1 indicates a moderate severity, while the EPSS score of < 1% suggests a very low probability of exploitation in the wild. The issue is not listed in CISA's KEV catalog. Exploitation would require a local attacker to create or modify DAMON regions via the sysfs interface, which the kernel typically restricts to privileged users. Based on the description, the likely attack vector is a local privileged attacker, who could supply carefully crafted overlapping ranges to trigger the division-by-zero and cause a kernel crash. No public exploit code is known, but the flaw presents a clear denial-of-service route once the prerequisite of privileged access is satisfied.

Generated by OpenCVE AI on August 13, 2026 at 10:09 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel update that restores range validation for damon_set_regions()
  • If the patch cannot be applied immediately, disable the DAMON sysfs interface or use a single contiguous region to avoid overlaps
  • Configure the kernel with CONFIG_DAMON_DEBUG_SANITY=y so that WARN_ONCE and runtime checks surface any malformed ranges

Generated by OpenCVE AI on August 13, 2026 at 10:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4745-1 linux-6.12 security update
History

Wed, 19 Aug 2026 16:45:00 +0000


Thu, 13 Aug 2026 08:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
CWE-395

Wed, 12 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-369
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.1, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Mon, 10 Aug 2026 14:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
CWE-395

Mon, 10 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
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.
Title mm/damon/core: disallow overlapping input ranges for damon_set_regions()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-19T16:30:34.916Z

Reserved: 2026-07-30T09:28:09.372Z

Link: CVE-2026-68164

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-10T13:20:02.840

Modified: 2026-08-19T17:20:33.483

Link: CVE-2026-68164

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-10T11:59:31Z

Links: CVE-2026-68164 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T10:15:07Z

Weaknesses