# CVE-2026-64458: mm/damon/ops-common: handle extreme intervals in damon\_hot\_score()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-369
- **Published:** 2026-07-25T08:51:26.072Z
- **Modified:** 2026-11-12T17:46:21.637Z

## Who should check

- Anyone running Linux \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 58321b4e6e4f0f412069ab27ccdd56292757343a; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 74fef68d521150281e36cdaa20e9e1ee3e3aa146; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< ef2ae10a4582bc92b7e944181bbd2f87f3d30f3a; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 9c8f31eaae6140ecadec0c07320498a944556de2; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 76e415ea88d20f022ed5cfcf78c50e156a267e91; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 35d4a3cf70a855b50e53189ac2f8463e20a02046
- Anyone running Linux 5.16

## Description

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

mm/damon/ops-common: handle extreme intervals in damon\_hot\_score()

Fix three issues in damon\_hot\_score() that comes from wrong handling of
extreme (zero or too high) monitoring intervals user setup.

When the user sets sampling interval zero, damon\_max\_nr\_accesses(), which
is called from damon\_hot\_score(), causes a divide-by-zero.  Needless to
say, it is a problem.

When the user sets the aggregation interval zero, the function returns
zero.  It is wrong, since the real maximum nr\_acceses in the setup should
be one.  Worse yet, it can cause another divide-by-zero from its caller,
damon\_hot\_score(), since it uses damon\_max\_nr\_accesses() return value as a
denominator.

When the user sets the aggregation interval very high, damon\_hot\_score()
could return a value out of \[0, DAMOS\_MAX\_SCORE\] range.  Since the return
value is used as an index to the regions\_score\_histogram array, which is
DAMOS\_MAX\_SCORE+1 size, it causes out of bounds array access.

The issues can be relatively easily reproduced like below.  The sysfs
write permission is required, though.

    \# ./damo start --damos\_action lru\_prio --damos\_quota\_space 100M \\
            --damos\_quota\_interval 1s
    \# cd /sys/kernel/mm/damon/admin/kdamonds/0
    \# echo 0 \> contexts/0/monitoring\_attrs/intervals/sample\_us
    \# echo 0 \> contexts/0/monitoring\_attrs/intervals/aggr\_us
    \# echo commit \> state
    \# dmesg
    \[...\]
    \[  131.329762\] Oops: divide error: 0000 \[\#1\] SMP NOPTI
    \[...\]
    \[  131.336089\] RIP: 0010:damon\_hot\_score+0x27/0xd0
    \[...\]

Fix the divide-by-zero intervals problems by explicitly handling the zero
intervals in damon\_max\_nr\_accesses().  Fix the out-of-bound array access
by applying \[0, DAMOS\_MAX\_SCORE\] bounds before returning from
damon\_hot\_score().

The issue was discovered \[1\] by Sashiko.

## Affected and fixed versions

- Linux: \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 58321b4e6e4f0f412069ab27ccdd56292757343a; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 74fef68d521150281e36cdaa20e9e1ee3e3aa146; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< ef2ae10a4582bc92b7e944181bbd2f87f3d30f3a; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 9c8f31eaae6140ecadec0c07320498a944556de2; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 76e415ea88d20f022ed5cfcf78c50e156a267e91; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 35d4a3cf70a855b50e53189ac2f8463e20a02046 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- Upgrade Linux to 35d4a3cf70a855b50e53189ac2f8463e20a02046 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-64458.md
Affected: Linux >= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, < 58321b4e6e4f0f412069ab27ccdd56292757343a; >= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, < 74fef68d521150281e36cdaa20e9e1ee3e3aa146; >= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, < ef2ae10a4582bc92b7e944181bbd2f87f3d30f3a; >= 198f0f4c58b9f481e4e51c8…
Fixed in: Linux 58321b4e6e4f0f412069ab27ccdd56292757343a, Linux 74fef68d521150281e36cdaa20e9e1ee3e3aa146, Linux 9c8f31eaae6140ecadec0c07320498a944556de2, Linux 76e415ea88d20f022ed5cfcf78c50e156a267e91, Linux 35d4a3cf70a855b50e53189ac2f8463e20a02046

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-64458 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 58321b4e6e4f0f412069ab27ccdd56292757343a; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 74fef68d521150281e36cdaa20e9e1ee3e3aa146; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< ef2ae10a4582bc92b7e944181bbd2f87f3d30f3a; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 9c8f31eaae6140ecadec0c07320498a944556de2; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 76e415ea88d20f022ed5cfcf78c50e156a267e91; \>= 198f0f4c58b9f481e4e51c8c70a6ab9852bbab7f, \< 35d4a3cf70a855b50e53189ac2f8463e20a02046; Linux 5.16.

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

Yes. Fixed in Linux 58321b4e6e4f0f412069ab27ccdd56292757343a, Linux 74fef68d521150281e36cdaa20e9e1ee3e3aa146, Linux 9c8f31eaae6140ecadec0c07320498a944556de2, Linux 76e415ea88d20f022ed5cfcf78c50e156a267e91, Linux 35d4a3cf70a855b50e53189ac2f8463e20a02046. Upgrade Linux to 35d4a3cf70a855b50e53189ac2f8463e20a02046 or later.

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

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

- patch: <https://git.kernel.org/stable/c/58321b4e6e4f0f412069ab27ccdd56292757343a>
- patch: <https://git.kernel.org/stable/c/74fef68d521150281e36cdaa20e9e1ee3e3aa146>
- patch: <https://git.kernel.org/stable/c/ef2ae10a4582bc92b7e944181bbd2f87f3d30f3a>
- patch: <https://git.kernel.org/stable/c/9c8f31eaae6140ecadec0c07320498a944556de2>
- patch: <https://git.kernel.org/stable/c/76e415ea88d20f022ed5cfcf78c50e156a267e91>
- patch: <https://git.kernel.org/stable/c/35d4a3cf70a855b50e53189ac2f8463e20a02046>

## 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-64458>

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