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

Published Jul 24, 2026
·
Updated

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

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

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 (damonsysfsschemeregionsrmdirs()) 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 CONFIGDEBUGKOBJECTRELEASE. On the kernel, the issue can indeed be reproduced like below.

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

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

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

The issue was discovered [1] by Sashiko.

Affected Software

10 affected components
Linux Linux kernel
Linux Linux kernel>=6.2<6.6.143
Linux Linux kernel>=6.7<6.12.93
Linux Linux kernel>=6.13<6.18.35
Linux Linux kernel>=6.19<7.0.12
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4
Linux Linux kernel=7.1-rc5

Event History

Jul 24, 2026
CVE Published
via MITRE·03:27 PM
Data Sourced
via MITRE·03:27 PM
Description
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Are production kernels affected under normal conditions?

The issue cannot occur in normal conditions because the relevant kobject objects are managed only by DAMON sysfs. It can be reproduced when the kernel is built with CONFIG_DEBUG_KOBJECT_RELEASE, which can delay kobject release callbacks.

2

What access is needed to trigger the issue?

An attacker needs local access with permission to operate DAMON sysfs and request updates of DAMOS tried-region directories. The described trigger repeatedly requests update_schemes_tried_regions while delayed kobject releases leave stale entries in the linked list.

3

How can I identify systems with the described exposure condition?

Check whether the running kernel was built with CONFIG_DEBUG_KOBJECT_RELEASE and whether DAMON sysfs is in use for DAMOS schemes that expose tried-region directories. Systems without the delayed kobject-release condition are not described as reproducible by the provided information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203