# CVE-2025-39909: mm/damon/lru\_sort: avoid divide-by-zero in damon\_lru\_sort\_apply\_parameters()

> 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.22% (percentile 8, 2026-11-26)
- **CWE:** CWE-369
- **Published:** 2025-10-01T07:44:32.936Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< 74e391f7da7d9d5235a3cca88ee9fc18f720c75b; \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< 7bb675c9f0257840d33e5d1337d7e3afdd74a6bf; \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< af0ae62b935317bed1a1361c8c9579db9d300e70; \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< 326a4b3750c71af3f3c52399ec4dbe33b6da4c26; \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< 711f19dfd783ffb37ca4324388b9c4cb87e71363
- Anyone running Linux 6.0

## Description

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

mm/damon/lru\_sort: avoid divide-by-zero in damon\_lru\_sort\_apply\_parameters()

Patch series "mm/damon: avoid divide-by-zero in DAMON module's parameters
application".

DAMON's RECLAIM and LRU\_SORT modules perform no validation on
user-configured parameters during application, which may lead to
division-by-zero errors.

Avoid the divide-by-zero by adding validation checks when DAMON modules
attempt to apply the parameters.


This patch (of 2):

During the calculation of 'hot\_thres' and 'cold\_thres', either
'sample\_interval' or 'aggr\_interval' is used as the divisor, which may
lead to division-by-zero errors.  Fix it by directly returning -EINVAL
when such a case occurs.  Additionally, since 'aggr\_interval' is already
required to be set no smaller than 'sample\_interval' in damon\_set\_attrs(),
only the case where 'sample\_interval' is zero needs to be checked.

## Affected and fixed versions

- Linux: \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< 74e391f7da7d9d5235a3cca88ee9fc18f720c75b; \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< 7bb675c9f0257840d33e5d1337d7e3afdd74a6bf; \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< af0ae62b935317bed1a1361c8c9579db9d300e70; \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< 326a4b3750c71af3f3c52399ec4dbe33b6da4c26; \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< 711f19dfd783ffb37ca4324388b9c4cb87e71363 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 711f19dfd783ffb37ca4324388b9c4cb87e71363 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-39909.md
Affected: Linux >= 40e983cca9274e177bd5b9379299b44d9536ac68, < 74e391f7da7d9d5235a3cca88ee9fc18f720c75b; >= 40e983cca9274e177bd5b9379299b44d9536ac68, < 7bb675c9f0257840d33e5d1337d7e3afdd74a6bf; >= 40e983cca9274e177bd5b9379299b44d9536ac68, < af0ae62b935317bed1a1361c8c9579db9d300e70; >= 40e983cca9274e177bd5b93…
Fixed in: Linux 74e391f7da7d9d5235a3cca88ee9fc18f720c75b, Linux 7bb675c9f0257840d33e5d1337d7e3afdd74a6bf, Linux 326a4b3750c71af3f3c52399ec4dbe33b6da4c26, Linux 711f19dfd783ffb37ca4324388b9c4cb87e71363

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-2025-39909 being exploited?

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

### How serious is CVE-2025-39909?

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

### Which versions are affected by CVE-2025-39909?

Linux \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< 74e391f7da7d9d5235a3cca88ee9fc18f720c75b; \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< 7bb675c9f0257840d33e5d1337d7e3afdd74a6bf; \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< af0ae62b935317bed1a1361c8c9579db9d300e70; \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< 326a4b3750c71af3f3c52399ec4dbe33b6da4c26; \>= 40e983cca9274e177bd5b9379299b44d9536ac68, \< 711f19dfd783ffb37ca4324388b9c4cb87e71363; Linux 6.0.

### Is there a fix for CVE-2025-39909?

Yes. Fixed in Linux 74e391f7da7d9d5235a3cca88ee9fc18f720c75b, Linux 7bb675c9f0257840d33e5d1337d7e3afdd74a6bf, Linux 326a4b3750c71af3f3c52399ec4dbe33b6da4c26, Linux 711f19dfd783ffb37ca4324388b9c4cb87e71363. Upgrade Linux to 711f19dfd783ffb37ca4324388b9c4cb87e71363 or later.

### How do I check if I'm affected by CVE-2025-39909?

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/74e391f7da7d9d5235a3cca88ee9fc18f720c75b>
- patch: <https://git.kernel.org/stable/c/7bb675c9f0257840d33e5d1337d7e3afdd74a6bf>
- patch: <https://git.kernel.org/stable/c/af0ae62b935317bed1a1361c8c9579db9d300e70>
- patch: <https://git.kernel.org/stable/c/326a4b3750c71af3f3c52399ec4dbe33b6da4c26>
- patch: <https://git.kernel.org/stable/c/711f19dfd783ffb37ca4324388b9c4cb87e71363>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>

## 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-2025-39909>

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