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

mm/damon/core: validate ranges in damon_set_regions()

DAMON core logic assumes zero length regions don't exist. However, a few
DAMON API callers including DAMON_SYSFS, DAMON_RECLAIM and DAMON_LRU_SORT
allow users to set empty monitoring target regions. This could result in
WARN_ONCE() on CONFIG_DAMON_DEBUG_SANITY enabled kernel, and
divide-by-zero from damon_merge_two_regions().

For example, the WANR_ONCE() can be triggered like below.

# grep DAMON_DEBUG_SANITY /boot/config-$(uname -r)
# CONFIG_DAMON_DEBUG_SANITY=y
# damo start
# cd /sys/kernel/mm/damon/admin/kdamonds/0
# echo 0 > contexts/0/targets/0/regions/0/start
# echo 0 > contexts/0/targets/0/regions/0/end
# echo commit > state
# dmesg
[....]
[ 73.705780] ------------[ cut here ]------------
[ 73.707552] start 0 >= end 0
[ 73.708452] WARNING: mm/damon/core.c:359 at damon_new_region+0x6e/0x80, CPU#1: kdamond.0/758
[...]

All DAMON API callers eventually use damon_set_regions() to setup the
regions. Add the validation logic in the function.
Published: 2026-08-10
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel, the DAMON subsystem fails to validate zero‑length monitoring regions. When such a region is configured, damon_set_regions() accepts the input and later damon_merge_two_regions() performs a division by the region size, which can trigger a division‑by‑zero or cause a WARN_ONCE() if the debug sanity check is enabled. This flaw does not alter data but can lead to a kernel panic or system halt, resulting in a denial of service.

Affected Systems

The vulnerability exists in the generic Linux kernel, affecting any kernel build that enables the DAMON feature. No specific kernel version list is provided, but any release that contains the unpatched damon_set_regions() logic is impacted. Systems that expose the DAMON sysfs interface for sysadmin configuration are the most likely touch points.

Risk and Exploitability

There are no EPSS values and the KEV status indicates it is not listed in CISA's Known Exploited Vulnerabilities catalog. Based on the description, it is inferred that the attacker must have permission to write to the DAMON sysfs paths, i.e. privileged users or root. While an attacker cannot gain arbitrary code execution, the ability to cause a division‑by‑zero can bring the system down, a high‑impact Denial of Service with an exploitation probability that appears low but is serious if enabled. The risk is aggravated by the debug sanity option which makes the warning visible for monitoring.

Generated by OpenCVE AI on August 10, 2026 at 18:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the patch which validates DAMON region ranges.
  • If an upgrade is not yet available, disable or remove the DAMON functionality or set CONFIG_DAMON_DEBUG_SANITY to n to suppress WARN_ONCE. Ensure that the /sys/kernel/mm/damon/* paths are inaccessible to untrusted users.
  • Monitor system logs for damon‑related warnings and apply the patch as soon as it becomes available.

Generated by OpenCVE AI on August 10, 2026 at 18:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

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

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: validate ranges in damon_set_regions() DAMON core logic assumes zero length regions don't exist. However, a few DAMON API callers including DAMON_SYSFS, DAMON_RECLAIM and DAMON_LRU_SORT allow users to set empty monitoring target regions. This could result in WARN_ONCE() on CONFIG_DAMON_DEBUG_SANITY enabled kernel, and divide-by-zero from damon_merge_two_regions(). For example, the WANR_ONCE() can be triggered like below. # grep DAMON_DEBUG_SANITY /boot/config-$(uname -r) # CONFIG_DAMON_DEBUG_SANITY=y # damo start # cd /sys/kernel/mm/damon/admin/kdamonds/0 # echo 0 > contexts/0/targets/0/regions/0/start # echo 0 > contexts/0/targets/0/regions/0/end # echo commit > state # dmesg [....] [ 73.705780] ------------[ cut here ]------------ [ 73.707552] start 0 >= end 0 [ 73.708452] WARNING: mm/damon/core.c:359 at damon_new_region+0x6e/0x80, CPU#1: kdamond.0/758 [...] All DAMON API callers eventually use damon_set_regions() to setup the regions. Add the validation logic in the function.
Title mm/damon/core: validate ranges in 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-10T11:59:33.152Z

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

Link: CVE-2026-68165

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T19:00:04Z

Weaknesses