Direct naar de inhoud
Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · 12 min 126 bronnen 3 kritiek 1 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-64239

HIGH · 7.8 CVSS Gepubliceerd: CWE-416

Beschrijving NL

In de Linux kernel is de volgende kwetsbaarheid verholpen:

mm/damon/sysfs-schemes: verwijder geprobeerd gebied in regions_rmdirs()

DAMON sysfs onderhoudt de door DAMOS beproefde regiodirectoryobjecten via een
gekoppelde lijst. Wanneer de gebruiker vraagt om de mappen te vernieuwen, zal DAMON
sysfs verwijdert eerst alle regiodirectory's en genereert vervolgens bijgewerkte
regio's directory op de lege ruimte. De verwijderingsfunctie
(damon_sysfs_scheme_regions_rm_dirs()) plaatst alleen de kobj-objecten. Verwijdering van het containergebiedobject uit de gekoppelde lijst is voltooid
in de kobj release callback-functie. Als de callback-aanroep op de een of andere manier wordt vertraagd, bevat de lijst
regio's lijst die zullen worden bevrijd. Als de bijgewerkte regiomappen
in deze situatie wordt gestart, kan de lijst worden beschadigd en
use-after-free kan gebeuren. Omdat de kobj-objecten alleen door DAMON sysfs worden beheerd, kan het probleem niet
gebeuren in een normale situatie. Maar dergelijke vertragingen kunnen worden gemaakt op kernels die
gebouwd met CONFIG_DEBUG_KOBJECT_RELEASE. Op de kernel kan het probleem
inderdaad worden gereproduceerd zoals hieronder. # damo start --damos_action stat
# cd /sys/kernel/mm/damon/admin/kdamonds/0/
# for i in {1..10}; do echo update_schemes_tried_regions > state; done
# dmesg | grep onderloop
[ 89.296152] refcount_t: onderstroom; gebruik-na-vrij. Fix the issue by removing the region object from the list when
decrementing the reference count. Also update damos_sysfs_populate_region_dir() to add the region object to
the list only after the kobject_init_and_add() is success, so that fail of
kobject_init_and_add() is not leaving the deallocated object on the list. The issue was discovered [1] by Sashiko.

Origineel (Engels) tonen

In the Linux kernel, the following vulnerability has been resolved:

mm/damon/sysfs-schemes: delete tried region in regions_rmdirs()

DAMON sysfs maintains the DAMOS tried region directory objects via a
linked list. When the user requests refresh of the directories, DAMON
sysfs removes all the region directories first, and then generate updated
regions directory on the empty space. The removal function
(damon_sysfs_scheme_regions_rm_dirs()) only puts the kobj objects.
Deletion of the container region object from the linked list is done
inside the kobj release callback function.

If somehow the callback invocation is delayed, the list will contain
regions list that gonna be freed. If the updated region directories
creation is started in this situation, the list can be corrupted and
use-after-free can happen.

Because the kobj objects are managed by only DAMON sysfs, the issue cannot
happen in normal situation. But, such delays can be made on kernels that
built with CONFIG_DEBUG_KOBJECT_RELEASE. On the kernel, the issue can
indeed be reproduced like below.

# damo start --damos_action stat
# cd /sys/kernel/mm/damon/admin/kdamonds/0/
# for i in {1..10}; do echo update_schemes_tried_regions > state; done
# dmesg | grep underflow
[ 89.296152] refcount_t: underflow; use-after-free.

Fix the issue by removing the region object from the list when
decrementing the reference count.

Also update damos_sysfs_populate_region_dir() to add the region object to
the list only after the kobject_init_and_add() is success, so that fail of
kobject_init_and_add() is not leaving the deallocated object on the list.

The issue was discovered [1] by Sashiko.

Vendors

Linux

Affected products

Linux Kernel

References