{"id":"CVE-2025-39909","summary":"mm/damon/lru_sort: avoid divide-by-zero in damon_lru_sort_apply_parameters()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/lru_sort: avoid divide-by-zero in damon_lru_sort_apply_parameters()\n\nPatch series \"mm/damon: avoid divide-by-zero in DAMON module's parameters\napplication\".\n\nDAMON's RECLAIM and LRU_SORT modules perform no validation on\nuser-configured parameters during application, which may lead to\ndivision-by-zero errors.\n\nAvoid the divide-by-zero by adding validation checks when DAMON modules\nattempt to apply the parameters.\n\n\nThis patch (of 2):\n\nDuring the calculation of 'hot_thres' and 'cold_thres', either\n'sample_interval' or 'aggr_interval' is used as the divisor, which may\nlead to division-by-zero errors.  Fix it by directly returning -EINVAL\nwhen such a case occurs.  Additionally, since 'aggr_interval' is already\nrequired to be set no smaller than 'sample_interval' in damon_set_attrs(),\nonly the case where 'sample_interval' is zero needs to be checked.","modified":"2026-04-16T04:39:07.312891745Z","published":"2025-10-01T07:44:32.936Z","related":["SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39909.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/326a4b3750c71af3f3c52399ec4dbe33b6da4c26"},{"type":"WEB","url":"https://git.kernel.org/stable/c/711f19dfd783ffb37ca4324388b9c4cb87e71363"},{"type":"WEB","url":"https://git.kernel.org/stable/c/74e391f7da7d9d5235a3cca88ee9fc18f720c75b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7bb675c9f0257840d33e5d1337d7e3afdd74a6bf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/af0ae62b935317bed1a1361c8c9579db9d300e70"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39909.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39909"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"40e983cca9274e177bd5b9379299b44d9536ac68"},{"fixed":"74e391f7da7d9d5235a3cca88ee9fc18f720c75b"},{"fixed":"7bb675c9f0257840d33e5d1337d7e3afdd74a6bf"},{"fixed":"af0ae62b935317bed1a1361c8c9579db9d300e70"},{"fixed":"326a4b3750c71af3f3c52399ec4dbe33b6da4c26"},{"fixed":"711f19dfd783ffb37ca4324388b9c4cb87e71363"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39909.json"}}],"schema_version":"1.7.5"}