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.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade kernel-livepatch-6.12.94-123.174Upgrade kernel6.12-develUpgrade kernel6.18-modules-extra-commonUpgrade microvm-kernel6.18Upgrade perf6.18Upgrade python3-perf6.18Upgrade kernel6.12-debuginfoUpgrade kernel6.18-tools-develUpgrade python3-perf6.12-debuginfoUpgrade kernel6.12-toolsUpgrade kernel6.18-tools-debuginfoUpgrade kernel6.12-headersUpgrade kernel6.18Upgrade perf6.12Upgrade bpftool6.18Upgrade kernel6.18-debuginfo-common-x86_64Upgrade python3-perf6.18-debuginfoUpgrade kernel6.12-tools-debuginfoUpgrade kernel6.18-modules-extraUpgrade kernel6.18-develUpgrade kernel6.18-toolsUpgrade kernel6.12-modules-extraUpgrade kernel6.12Upgrade bpftool6.12-debuginfoUpgrade perf6.18-debuginfoUpgrade python3-perf6.12Upgrade kernel6.18-headersUpgrade kernel6.18-debuginfo-common-aarch64Upgrade bpftool6.12Upgrade perf6.12-debuginfoUpgrade kernel6.18-debuginfoUpgrade kernel6.12-modules-extra-commonUpgrade kernel6.12-debuginfo-common-aarch64Upgrade bpftool6.18-debuginfoUpgrade kernel6.12-tools-develUpgrade kernel6.12-debuginfo-common-x86_64Upgrade kernel-livepatch-6.18.35-68.127 | Aug 18, 2026 | Jul 24, 2026 |
| Debian | — | Upgrade linux | Jul 28, 2026 | Jul 28, 2026 |
| Redhat_linux | — | No solution exists | Jul 30, 2026 | Jul 24, 2026 |
| Ubuntu | — | Upgrade linux-image-gcp-64k-7.0Upgrade linux-image-raspi-7.0Upgrade linux-image-raspi-realtimeUpgrade linux-image-7.0.0-1015-raspi-realtimeUpgrade linux-image-nvidia-bosUpgrade linux-image-7.0.0-2016-nvidia-bosUpgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-7.0.0-1009-awsUpgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-nvidia-7.0Upgrade linux-image-nvidia-64kUpgrade linux-image-gcp-7.0Upgrade linux-image-gcpUpgrade linux-image-gcp-64kUpgrade linux-image-awsUpgrade linux-image-7.0.0-1015-raspiUpgrade linux-image-aws-64kUpgrade linux-image-nvidiaUpgrade linux-image-raspi-realtime-7.0Upgrade linux-image-nvidia-bos-64kUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-raspiUpgrade linux-image-nvidia-bos-7.0Upgrade linux-image-aws-64k-7.0Upgrade linux-image-7.0.0-2016-nvidia-bos-64kUpgrade linux-image-aws-7.0Upgrade linux-image-7.0.0-1016-nvidia-64kUpgrade linux-image-nvidia-64k-7.0Upgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-7.0.0-1009-aws-64kUpgrade linux-image-7.0.0-1016-nvidia | Jul 28, 2026 | Jul 28, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Aug 3, 2026 | Jul 24, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub