# CVE-2026-89796: mm/damon/core: avoid infinite kdamond\_merge\_regions() internal loop

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **Published:** 2026-09-16T10:30:27.478Z
- **Modified:** 2026-10-19T09:18:23.370Z

## Who should check

- Anyone running Linux \>= 1e865019cef354a5f0314491b4b4fc9f9a613642, \< 407da1dd7f48e5ba22ceb8834f6923390632d025; \>= d7eda72e59bbf3ed592db7ff0fd8c246c73149a8, \< 65edd8b3a88278c9f8e5c7d8c15d4f296ce35078; \>= 11078e2d11465518a9e85096bd28f8cd5fa1ea41, \< 5b0953f86d65855dc901050f40bbe6da0475d198; \>= 310d6c15e9104c99d5d9d0ff8e5383a79da7d5e6, \< 769c16699c89811386eb003c8fd9dcb8d405b316; \>= 310d6c15e9104c99d5d9d0ff8e5383a79da7d5e6, \< 50a7a5aec1aa43efc297fd4377c1cbdc7d15620d; \>= 310d6c15e9104c99d5d9d0ff8e5383a79da7d5e6, \< 8a96a06e04d210845be5d9581c0e9e338947e8f8; \>= 310d6c15e9104c99d5d9d0ff8e5383a79da7d5e6, \< 123e4619ab6c8ab1c4cb1d7a58311a2af13929cd; f2bd3184b6aeca6a497394b558337246e09fc02d; \>= 5.15.164, \< 5.15.222; \>= 6.1.101, \< 6.1.189; …
- Anyone running Linux 6.10

## Description

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.

## Affected and fixed versions

- Linux: \>= 1e865019cef354a5f0314491b4b4fc9f9a613642, \< 407da1dd7f48e5ba22ceb8834f6923390632d025; \>= d7eda72e59bbf3ed592db7ff0fd8c246c73149a8, \< 65edd8b3a88278c9f8e5c7d8c15d4f296ce35078; \>= 11078e2d11465518a9e85096bd28f8cd5fa1ea41, \< 5b0953f86d65855dc901050f40bbe6da0475d198; \>= 310d6c15e9104c99d5d9d0ff8e5383a79da7d5e6, \< 769c16699c89811386eb003c8fd9dcb8d405b316; \>= 310d6c15e9104c99d5d9d0ff8e5383a79da7d5e6, \< 50a7a5aec1aa43efc297fd4377c1cbdc7d15620d; \>= 310d6c15e9104c99d5d9d0ff8e5383a79da7d5e6, \< 8a96a06e04d210845be5d9581c0e9e338947e8f8; \>= 310d6c15e9104c99d5d9d0ff8e5383a79da7d5e6, \< 123e4619ab6c8ab1c4cb1d7a58311a2af13929cd; f2bd3184b6aeca6a497394b558337246e09fc02d; \>= 5.15.164, \< 5.15.222; \>= 6.1.101, \< 6.1.189; … (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-89796. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89796.md
Affected: Linux >= 1e865019cef354a5f0314491b4b4fc9f9a613642, < 407da1dd7f48e5ba22ceb8834f6923390632d025; >= d7eda72e59bbf3ed592db7ff0fd8c246c73149a8, < 65edd8b3a88278c9f8e5c7d8c15d4f296ce35078; >= 11078e2d11465518a9e85096bd28f8cd5fa1ea41, < 5b0953f86d65855dc901050f40bbe6da0475d198; >= 310d6c15e9104c99d5d9d0f…
Fixed in: Linux 407da1dd7f48e5ba22ceb8834f6923390632d025, Linux 65edd8b3a88278c9f8e5c7d8c15d4f296ce35078, Linux 5b0953f86d65855dc901050f40bbe6da0475d198, Linux 769c16699c89811386eb003c8fd9dcb8d405b316, Linux 50a7a5aec1aa43efc297fd4377c1cbdc7d15620d, Linux 8a96a06e04d210845be5d9581c0e9e338947e8f8, Linux 123e4…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-89796 being exploited?

There is no confirmed exploitation: CVE-2026-89796 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-89796?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-89796?

Linux \>= 1e865019cef354a5f0314491b4b4fc9f9a613642, \< 407da1dd7f48e5ba22ceb8834f6923390632d025; \>= d7eda72e59bbf3ed592db7ff0fd8c246c73149a8, \< 65edd8b3a88278c9f8e5c7d8c15d4f296ce35078; \>= 11078e2d11465518a9e85096bd28f8cd5fa1ea41, \< 5b0953f86d65855dc901050f40bbe6da0475d198; \>= 310d6c15e9104c99d5d9d0ff8e5383a79da7d5e6, \< 769c16699c89811386eb003c8fd9dcb8d405b316; \>= 310d6c15e9104c99d5d9d0ff8e5383a79da7d5e6, \< 50a7a5aec1aa43efc297fd4377c1cbdc7d15620d; \>= 310d6c15e9104c99d5d9d0ff8e5383a79da7d5e6, \< 8a96a06e04d210845be5d9581c0e9e338947e8f8; \>= 310d6c15e9104c99d5d9d0ff8e5383a79da7d5e6, \< 123e4619ab6c8ab1c4cb1d7a58311a2af13929cd; f2bd3184b6aeca6a497394b558337246e09fc02d; \>= 5.15.164, \< 5.15.222; \>= 6.1.101, \< 6.1.189; …; Linux 6.10.

### Is there a fix for CVE-2026-89796?

Yes. Fixed in Linux 407da1dd7f48e5ba22ceb8834f6923390632d025, Linux 65edd8b3a88278c9f8e5c7d8c15d4f296ce35078, Linux 5b0953f86d65855dc901050f40bbe6da0475d198, Linux 769c16699c89811386eb003c8fd9dcb8d405b316, Linux 50a7a5aec1aa43efc297fd4377c1cbdc7d15620d, Linux 8a96a06e04d210845be5d9581c0e9e338947e8f8, Linux 123e4619ab6c8ab1c4cb1d7a58311a2af13929cd, Linux 5.15.222, Linux 6.1.189. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-89796?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/407da1dd7f48e5ba22ceb8834f6923390632d025>
- other: <https://git.kernel.org/stable/c/65edd8b3a88278c9f8e5c7d8c15d4f296ce35078>
- other: <https://git.kernel.org/stable/c/5b0953f86d65855dc901050f40bbe6da0475d198>
- other: <https://git.kernel.org/stable/c/769c16699c89811386eb003c8fd9dcb8d405b316>
- other: <https://git.kernel.org/stable/c/50a7a5aec1aa43efc297fd4377c1cbdc7d15620d>
- other: <https://git.kernel.org/stable/c/8a96a06e04d210845be5d9581c0e9e338947e8f8>
- other: <https://git.kernel.org/stable/c/123e4619ab6c8ab1c4cb1d7a58311a2af13929cd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-89796>

HTML: <https://flawdb.com/CVE-2026-89796> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-89796>
