CVE-2026-64239
Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
24/07/2026
Última modificación:
24/07/2026
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
mm/damon/sysfs-schemes: delete tried region in regions_rmdirs()<br />
<br />
DAMON sysfs maintains the DAMOS tried region directory objects via a<br />
linked list. When the user requests refresh of the directories, DAMON<br />
sysfs removes all the region directories first, and then generate updated<br />
regions directory on the empty space. The removal function<br />
(damon_sysfs_scheme_regions_rm_dirs()) only puts the kobj objects. <br />
Deletion of the container region object from the linked list is done<br />
inside the kobj release callback function.<br />
<br />
If somehow the callback invocation is delayed, the list will contain<br />
regions list that gonna be freed. If the updated region directories<br />
creation is started in this situation, the list can be corrupted and<br />
use-after-free can happen.<br />
<br />
Because the kobj objects are managed by only DAMON sysfs, the issue cannot<br />
happen in normal situation. But, such delays can be made on kernels that<br />
built with CONFIG_DEBUG_KOBJECT_RELEASE. On the kernel, the issue can<br />
indeed be reproduced like below.<br />
<br />
# damo start --damos_action stat<br />
# cd /sys/kernel/mm/damon/admin/kdamonds/0/<br />
# for i in {1..10}; do echo update_schemes_tried_regions > state; done<br />
# dmesg | grep underflow<br />
[ 89.296152] refcount_t: underflow; use-after-free.<br />
<br />
Fix the issue by removing the region object from the list when<br />
decrementing the reference count.<br />
<br />
Also update damos_sysfs_populate_region_dir() to add the region object to<br />
the list only after the kobject_init_and_add() is success, so that fail of<br />
kobject_init_and_add() is not leaving the deallocated object on the list.<br />
<br />
The issue was discovered [1] by Sashiko.
Impacto
Referencias a soluciones, herramientas e información
- https://git.kernel.org/stable/c/0ba6c05156d9ff9fc6ca22b7690e2eec9eca66f7
- https://git.kernel.org/stable/c/2c33177023c92e76806c535ddbffaa3d3fc37777
- https://git.kernel.org/stable/c/441f92f7d386b85bad16de49db95a307cba048a2
- https://git.kernel.org/stable/c/a5fa42214de55e43d165144727ce9facb9fc6b08
- https://git.kernel.org/stable/c/c0e37017a452addec873865c94cf7a665663a9b2



