5.5medium
mm/damon/core: disallow non-power of two min_region_sz on damon_start()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.11% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: mm/damon/core: disallow non-power of two min_region_sz on damon_start() Commit d8f867fa0825 ("mm/damon: add damon_ctx->min_sz_region") introduced a bug that allows unaligned DAMON region address ranges. Commit c80f46ac228b ("mm/damon/core: disallow non-power of two min_region_sz") fixed it, but only for damon_commit_ctx() use case. Still, DAMON sysfs interface can emit non-power of two min_region_sz via damon_start(). Fix the path by adding the is_power_of_2() check on damon_start(). The issue was discovered by sashiko [1].
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from d8f867fa0825fb3e358457566d7326d8aab2406a before 1de2db19a6028abe7d905875922faef5b873de67, from d8f867fa0825fb3e358457566d7326d8aab2406a before 89b6226b6c2a4add3939f361653a47c212d6ab75, from d8f867fa0825fb3e358457566d7326d8aab2406a before 95093e5cb4c5b50a5b1a4b79f2942b62744bd66a, 6.18 Not affected: before 6.18, from 6.18.30 up to 6.18.*, from 7.0.4 up to 7.0.*, from 7.1 up to * | CVE List |
| linux linux_kernel | from 6.18 before 6.18.30, from 6.19 before 7.0.4 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: mm/damon/core: disallow non-power of two min_region_sz on damon_start() Commit d8f867fa0825 ("mm/damon: add damon_ctx->min_sz_region") introduced a bug that allows unaligned DAMON region address ranges. Commit c80f46ac228b ("mm/damon/core: disallow non-power of two min_region_sz") fixed it, but only for damon_commit_ctx() use case. Still, DAMON sysfs interface can emit non-power of two min_region_sz via damon_start(). Fix the path by adding the is_power_of_2() check on damon_start(). The issue was discovered by sashiko [1].
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/damon/core: no permitir min_region_sz que no sea potencia de dos en damon_start() El commit d8f867fa0825 ('mm/damon: añadir damon_ctx->min_sz_region') introdujo un error que permite rangos de direcciones de región DAMON no alineados. El commit c80f46ac228b ('mm/damon/core: no permitir min_region_sz que no sea potencia de dos') lo solucionó, pero solo para el caso de uso de damon_commit_ctx(). Aun así, la interfaz sysfs de DAMON puede emitir min_region_sz que no sea potencia de dos a través de damon_start(). Solucionar la ruta añadiendo la comprobación is_power_of_2() en damon_start(). El problema fue descubierto por sashiko [1].
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-52905 changed 2026-06-14 | CVE Terms of Use |
| NVD | CVE-2026-52905 changed 2026-07-23 | Public domain |