VDB

CVE-2026-89796

CVE-2026-89796 PUBLISHED

mm/damon/core: avoid infinite kdamond_merge_regions() internal loop

Reported by linux · Published September 16, 2026

In the Linux kernel, the following vulnerability has been resolved: mm/damon/core: avoid infinite kdamond_merge_regions() internal loop Patch series "mm/damon: unurgent fixes for infinite loop, NULL de-ref and races", v1.1. Sashiko found a few issues in DAMON that could cause infinite loop, NULL dereference and monitoring results degradation. The first two sounds scary but the infinite loop happens only under unreasonable user setup. The NULL dereference is only in a unit test. Monitoring results degradation is trivial since it is only best-effort, and those happens from only unlikely races. Still those are bugs that better to fix if possible. Fix those. This patch (of 6): Due to online parameter update like events, the number of DAMON regions could be higher than the user-set upper limit. kdamond_merge_regions() repeats merge regions until the number meets the limit, while doubling the merge threshold up to the theoretical maximum threshold. It is tried only up to the theoretical maximum threshold because even the aggressive merging can fail from reducing the number of regions under the user-defined upper limit. For example, there could be many user-defined non-contiguous regions that cannot be merged. The threshold based loop break condition is evaluated by comparing the threshold for the next merging try against the theoretical maximum threshold. If max_thres is larger than UINT_MAX / 2, doubling the threshold could make it overflow, and bypass the loop break condition. In the case, if the number of regions cannot be reduced under the upper limit like explained above, the loop will run infinitely. Prevent the case by doing the break condition check before doubling the threshold. Also, prevent the threshold exceeding the maximum threshold, as it could overflow and apply the wrong merge threshold. This issue is unlikely to occur in real world, since having the max_thres higher than UINT_MAX / 2 require unrealistically large aggregation intervals compared to the sampling interval. Also, it requires an unrealistically large number of uncontiguous regions setup. Nonetheless, the consequence is bad and the fix is simple. The issue was discovered [1] by Sashiko.

EPSS 0.23% · 14.1th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-tools-develAmazon Linux1:6.1.189-236.399.amzn2023
python3-perf6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.189-236.399.amzn2023
microvm-kernelAmazon Linux1:6.1.189-236.399.amzn2023
perf6.12Amazon Linux1:6.12.111-136.204.amzn2023
kernel-livepatch-6.18.54-121.166Amazon Linux1:1.0-0.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.111-136.204.amzn2023
kernel-toolsAmazon Linux1:6.1.189-236.399.amzn2023
kernel6.12-headersAmazon Linux1:6.12.111-136.204.amzn2023
kernel6.12Amazon Linux1:6.12.111-136.204.amzn2023
kernel6.12-develAmazon Linux1:6.12.111-136.204.amzn2023

7 more packages have a fixed version. See every fix in Lookup.

Risk scores

EPSS Score
0.23%
14.1th percentile

Affected products

VendorProductVersions
LinuxLinux1e865019cef354a5f0314491b4b4fc9f9a613642, d7eda72e59bbf3ed592db7ff0fd8c246c73149a8, 11078e2d11465518a9e85096bd28f8cd5fa1ea41
LinuxLinux6.10, 0, 5.15.222
amazon:2023kernel-tools-devel0
amazon:2023python3-perf6.180
amazon:2023kernel6.180
amazon:2023kernel-modules-extra-common0
amazon:2023microvm-kernel0
amazon:2023perf6.120
amazon:2023kernel-livepatch-6.18.54-121.1660
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-tools0
amazon:2023kernel6.12-headers0
amazon:2023kernel6.120
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-tools-devel0
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel-livepatch-6.1.189-236.3990
amazon:2023bpftool6.180
amazon:2023kernel6.18-modules-extra-common0

…and 19 more

Timeline

  • Sep 16, 2026 Coalition ESS Score
  • Sep 16, 2026 CVE Published
  • Sep 17, 2026 EPSS Score (16 in total, the first dated here)
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-89796
vulnetix vdb fixes CVE-2026-89796

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-89796/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›