{"id":"CVE-2025-39909","aliases":["CVE-2025-39909"],"related":[],"kind":"vulnerability","state":"published","title":"mm/damon/lru_sort: avoid divide-by-zero in damon_lru_sort_apply_parameters()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmm/damon/lru_sort: evitar división por cero en damon_lru_sort_apply_parameters()\n\nSerie de parches 'mm/damon: evitar división por cero en la aplicación de parámetros del módulo DAMON'.\n\nLos módulos RECLAIM y LRU_SORT de DAMON no realizan validación sobre los parámetros configurados por el usuario durante la aplicación, lo que puede llevar a errores de división por cero.\n\nEvitar la división por cero añadiendo comprobaciones de validación cuando los módulos DAMON intentan aplicar los parámetros.\n\nEste parche (de 2):\n\nDurante el cálculo de 'hot_thres' y 'cold_thres', se utiliza 'sample_interval' o 'aggr_interval' como divisor, lo que puede llevar a errores de división por cero. Solucionarlo devolviendo directamente -EINVAL cuando ocurre tal caso. Además, dado que ya se requiere que 'aggr_interval' se establezca no menor que 'sample_interval' en damon_set_attrs(), solo el caso en que 'sample_interval' es cero necesita ser comprobado.","source":"nvd"}],"published":"2025-10-01T07:44:32.936Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-369"],"affected":[{"ranges":[{"type":"git","introduced":"40e983cca9274e177bd5b9379299b44d9536ac68","fixed":"74e391f7da7d9d5235a3cca88ee9fc18f720c75b","status":"affected"},{"type":"git","introduced":"40e983cca9274e177bd5b9379299b44d9536ac68","fixed":"7bb675c9f0257840d33e5d1337d7e3afdd74a6bf","status":"affected"},{"type":"git","introduced":"40e983cca9274e177bd5b9379299b44d9536ac68","fixed":"af0ae62b935317bed1a1361c8c9579db9d300e70","status":"affected"},{"type":"git","introduced":"40e983cca9274e177bd5b9379299b44d9536ac68","fixed":"326a4b3750c71af3f3c52399ec4dbe33b6da4c26","status":"affected"},{"type":"git","introduced":"40e983cca9274e177bd5b9379299b44d9536ac68","fixed":"711f19dfd783ffb37ca4324388b9c4cb87e71363","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.1.153","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.107","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.48","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.8","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.0","fixed":"6.1.153"},{"status":"affected","introduced":"6.2","fixed":"6.6.107"},{"status":"affected","introduced":"6.7","fixed":"6.12.48"},{"status":"affected","introduced":"6.13","fixed":"6.16.8"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/74e391f7da7d9d5235a3cca88ee9fc18f720c75b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7bb675c9f0257840d33e5d1337d7e3afdd74a6bf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/af0ae62b935317bed1a1361c8c9579db9d300e70","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/326a4b3750c71af3f3c52399ec4dbe33b6da4c26","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/711f19dfd783ffb37ca4324388b9c4cb87e71363","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39909","url":"https://www.cve.org/CVERecord?id=CVE-2025-39909","licence":"CVE Terms of Use","modified":"2026-05-11T21:38:45.192Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39909","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39909","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:05.388Z","epss":{"score":0.00157,"percentile":0.05132,"date":"2026-12-01T12:00:22.000Z"}}