Description
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.
Published: 2026-07-24
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s DAMON subsystem can corrupt its internal linked list when the sysfs interface is asked to refresh region directories. The removal routine removes kobject entries but relies on a delayed kobject release callback to unlink them. If that callback is delayed, the list still contains entries scheduled for freeing while new directories are being created, corrupting the list and causing a use‑after‑free. An attacker with access to the DAMON sysfs node "update_schemes_tried_regions" can trigger the flaw. The bug is limited to kernels built with CONFIG_DEBUG_KOBJECT_RELEASE, so standard kernels without this configuration are unaffected.

Affected Systems

Linux kernels that include the DAMON subsystem and are compiled with CONFIG_DEBUG_KOBJECT_RELEASE, exposing /sys/kernel/mm/damon and allowing region directory refreshes via DAMON sysfs, are affected. No specific kernel release numbers are listed, so any such kernel remains at risk.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity. The EPSS score is below 1 %, and the vulnerability is not listed in CISA KEV, suggesting a low likelihood of exploitation in the wild. However, the flaw can be triggered by any local user who can write to the DAMON sysfs node "update_schemes_tried_regions". If the delayed kobject release callback occurs after the list has been cleared, the linked list can become corrupted, and the subsequent use of the freed region objects can lead to a use‑after‑free that may allow kernel memory corruption, local privilege escalation or denial of service. The vulnerability requires the kernel to be built with CONFIG_DEBUG_KOBJECT_RELEASE and the DAMON sysfs interface to be exposed; standard production kernels without this configuration are not affected.

Generated by OpenCVE AI on August 13, 2026 at 19:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the DAMON sysfs fix (see kernel commit references).
  • If an upgrade is not feasible, disable CONFIG_DEBUG_KOBJECT_RELEASE during kernel build or remove the DAMON sysfs interface from the system.
  • Continuously monitor system logs for "refcount_t: underflow" messages and audit writes to /sys/kernel/mm/damon/admin/*.

Generated by OpenCVE AI on August 13, 2026 at 19:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Thu, 13 Aug 2026 17:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416
CPEs cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Wed, 05 Aug 2026 01:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 29 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Tue, 28 Jul 2026 16:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 24 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Description 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.
Title mm/damon/sysfs-schemes: delete tried region in regions_rmdirs()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-24T15:27:43.057Z

Reserved: 2026-07-19T15:36:31.772Z

Link: CVE-2026-64239

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-07-24T16:16:53.193

Modified: 2026-08-13T17:25:56.233

Link: CVE-2026-64239

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-24T00:00:00Z

Links: CVE-2026-64239 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T19:15:03Z

Weaknesses