5.5medium
mm/damon: fix divide by zero in damon_get_intervals_score()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.22% (higher than 8% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: mm/damon: fix divide by zero in damon_get_intervals_score() The current implementation allows having zero size regions with no special reasons, but damon_get_intervals_score() gets crashed by divide by zero when the region size is zero. [ 29.403950] Oops: divide error: 0000 [#1] SMP NOPTI This patch fixes the bug, but does not disallow zero size regions to keep the backward compatibility since disallowing zero size regions might be a breaking change for some users. In addition, the same crash can happen when intervals_goal.access_bp is zero so this should be fixed in stable trees as well.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from f04b0fedbe714f822bd066b319a60faa39a985a1 before ca4bb9ac706f05ead8ac1cce7b8245fc0645a687, from f04b0fedbe714f822bd066b319a60faa39a985a1 before bd225b9591442065beb876da72656f4a2d627d03, 6.15 Not affected: before 6.15, from 6.15.7 up to 6.15.*, from 6.16 up to * | CVE List |
| linux linux_kernel | from 6.15 before 6.15.7, 6.16 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: mm/damon: fix divide by zero in damon_get_intervals_score() The current implementation allows having zero size regions with no special reasons, but damon_get_intervals_score() gets crashed by divide by zero when the region size is zero. [ 29.403950] Oops: divide error: 0000 [#1] SMP NOPTI This patch fixes the bug, but does not disallow zero size regions to keep the backward compatibility since disallowing zero size regions might be a breaking change for some users. In addition, the same crash can happen when intervals_goal.access_bp is zero so this should be fixed in stable trees as well.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mm/damon: corrección de división por cero en damon_get_intervals_score() La implementación actual permite tener regiones de tamaño cero sin razones especiales, pero damon_get_intervals_score() se bloquea por división por cero cuando el tamaño de la región es cero. [ 29.403950] Oops: error de división: 0000 [#1] SMP NOPTI Este parche corrige el error, pero no deshabilita las regiones de tamaño cero para mantener la compatibilidad con versiones anteriores, ya que deshabilitar las regiones de tamaño cero podría ser un cambio importante para algunos usuarios. Además, el mismo bloqueo puede ocurrir cuando intervals_goal.access_bp es cero, por lo que esto también debería corregirse en los árboles estables.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38519 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-38519 changed 2026-06-17 | Public domain |