CVE-2025-39909
Severity CVSS v4.0:
Pending analysis
Type:
CWE-369
Divide By Zero
Publication date:
01/10/2025
Last modified:
16/01/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
mm/damon/lru_sort: avoid divide-by-zero in damon_lru_sort_apply_parameters()<br />
<br />
Patch series "mm/damon: avoid divide-by-zero in DAMON module&#39;s parameters<br />
application".<br />
<br />
DAMON&#39;s RECLAIM and LRU_SORT modules perform no validation on<br />
user-configured parameters during application, which may lead to<br />
division-by-zero errors.<br />
<br />
Avoid the divide-by-zero by adding validation checks when DAMON modules<br />
attempt to apply the parameters.<br />
<br />
<br />
This patch (of 2):<br />
<br />
During the calculation of &#39;hot_thres&#39; and &#39;cold_thres&#39;, either<br />
&#39;sample_interval&#39; or &#39;aggr_interval&#39; is used as the divisor, which may<br />
lead to division-by-zero errors. Fix it by directly returning -EINVAL<br />
when such a case occurs. Additionally, since &#39;aggr_interval&#39; is already<br />
required to be set no smaller than &#39;sample_interval&#39; in damon_set_attrs(),<br />
only the case where &#39;sample_interval&#39; is zero needs to be checked.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.0 (including) | 6.1.153 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.6.107 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.12.48 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.16.8 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:* | ||
| cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/326a4b3750c71af3f3c52399ec4dbe33b6da4c26
- https://git.kernel.org/stable/c/711f19dfd783ffb37ca4324388b9c4cb87e71363
- https://git.kernel.org/stable/c/74e391f7da7d9d5235a3cca88ee9fc18f720c75b
- https://git.kernel.org/stable/c/7bb675c9f0257840d33e5d1337d7e3afdd74a6bf
- https://git.kernel.org/stable/c/af0ae62b935317bed1a1361c8c9579db9d300e70
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html



