Not scored
mm/damon/vaddr: do not repeat pte_offset_map_lock() until success
- Severity
- Not scored
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: mm/damon/vaddr: do not repeat pte_offset_map_lock() until success DAMON's virtual address space operation set implementation (vaddr) calls pte_offset_map_lock() inside the page table walk callback function. This is for reading and writing page table accessed bits. If pte_offset_map_lock() fails, it retries by returning the page table walk callback function with ACTION_AGAIN. pte_offset_map_lock() can continuously fail if the target is a pmd migration entry, though. Hence it could cause an infinite page table walk if the migration cannot be done until the page table walk is finished. This indeed caused a soft lockup when CPU hotplugging and DAMON were running in parallel. Avoid the infinite loop by simply not retrying the page table walk. DAMON is promising only a best-effort accuracy, so missing access to such pages is no problem.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 7780d04046a2288ab85d88bedacc60fa4fad9971 before 677ebfe5d00f94adec0c0204f6e6e2a82d3f77bf, from 7780d04046a2288ab85d88bedacc60fa4fad9971 before ac42320ec873bfe726141069cfdd90ee5bc4e885, from 7780d04046a2288ab85d88bedacc60fa4fad9971 before 0ccd91cf749536d41307a07e60ec14ab0dbf21f5, from 7780d04046a2288ab85d88bedacc60fa4fad9971 before b93af2cc8e036754c0d9970d9ddc47f43cc94b9f, 6.5 Not affected: before 6.5, from 6.6.113 up to 6.6.*, from 6.12.54 up to 6.12.*, from 6.17.4 up to 6.17.*, from 6.18 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: mm/damon/vaddr: do not repeat pte_offset_map_lock() until success DAMON's virtual address space operation set implementation (vaddr) calls pte_offset_map_lock() inside the page table walk callback function. This is for reading and writing page table accessed bits. If pte_offset_map_lock() fails, it retries by returning the page table walk callback function with ACTION_AGAIN. pte_offset_map_lock() can continuously fail if the target is a pmd migration entry, though. Hence it could cause an infinite page table walk if the migration cannot be done until the page table walk is finished. This indeed caused a soft lockup when CPU hotplugging and DAMON were running in parallel. Avoid the infinite loop by simply not retrying the page table walk. DAMON is promising only a best-effort accuracy, so missing access to such pages is no problem.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/damon/vaddr: no repetir pte_offset_map_lock() hasta el éxito La implementación del conjunto de operaciones del espacio de direcciones virtuales de DAMON (vaddr) llama a pte_offset_map_lock() dentro de la función de *callback* de recorrido de la tabla de páginas. Esto es para leer y escribir bits de acceso de la tabla de páginas. Si pte_offset_map_lock() falla, reintenta devolviendo la función de *callback* de recorrido de la tabla de páginas con ACTION_AGAIN. pte_offset_map_lock() puede fallar continuamente, sin embargo, si el objetivo es una entrada de migración pmd. Por lo tanto, podría causar un recorrido infinito de la tabla de páginas si la migración no se puede realizar hasta que el recorrido de la tabla de páginas haya terminado. Esto de hecho causó un *soft lockup* cuando el *hotplugging* de CPU y DAMON se ejecutaban en paralelo. Evite el bucle infinito simplemente no reintentando el recorrido de la tabla de páginas. DAMON solo promete una precisión de “mejor esfuerzo”, por lo que la falta de acceso a dichas páginas no es un problema.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-40218 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-40218 changed 2026-10-19 | Public domain |