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

configfs: unhash the dentry before dropping the item in rmdir

configfs_get_config_item() treats a hashed dentry as proof that
sd->s_element is a live config_item. configfs_rmdir() breaks that:
simple_rmdir() leaves the dentry hashed, the last reference to the item is
dropped right after, and the dentry is only unhashed by d_delete() once
->rmdir() has returned. configfs_symlink() resolves its target holding no
lock on it, so get_target() can land in that window:

BUG: KASAN: slab-use-after-free in config_item_get+0x26/0x90
get_target fs/configfs/symlink.c:128 [inline]
configfs_symlink+0x4ab/0x1030 fs/configfs/symlink.c:185

Unhash in configfs_remove_dir(), while the item is still guaranteed to be
there. A reference obtained just before that stays harmless, as
create_link() rechecks CONFIGFS_USET_DROPPING, already set by
configfs_detach_prep(). Both configfs_unregister_subsystem() paths
d_drop() after detaching, so this only makes rmdir match them.
Published: 2026-09-25
Score: 7.0 High
EPSS: < 1% Very Low
KEV: No
Impact: Kernel use‑after‑free capable of memory corruption or privilege escalation
Action: Apply Patch
AI Analysis

Impact

The Linux kernel’s configfs subsystem mismanages the hash status of a directory entry during removal. When a configfs directory is deleted, the dentry remains hashed until after the rmdir operation completes. In that narrow window, other operations may access the freed config_item, triggering a slab use‑after‑free that KASAN reports as a KASAN bug. This flaw is classified as CWE-825 (Unintended Free on Failure). If successfully exploited, an attacker could corrupt kernel memory, leading to privilege escalation or a kernel panic.

Affected Systems

All Linux kernels that ship the pre‑patched configfs implementation are affected. The CNA vendor/product information lists “Linux:Linux” twice, indicating the generic Linux kernel across distributions. Because no specific version ranges are provided, any kernel that had the unpatched configfs code prior to the fix is at risk until the patch is applied.

Risk and Exploitability

The CVSS score is 7.0, indicating moderate‑to‑high severity. The EPSS score of less than 1 % suggests a low probability of current exploitation, and the vulnerability is not included in the CISA KEV catalog. Based on the description, it is inferred that local privileged access is required to trigger the flaw, as the rmdir operation on a configfs entry must be performed by a user or process with sufficient permissions. If an attacker can gain such access or a privileged process is compromised, the narrow fault window can be reached. Therefore, while nationwide exploitation is unlikely, systems with weak privilege isolation or running unpatched kernels should take remediation promptly.

Generated by OpenCVE AI on October 1, 2026 at 11:10 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the configfs hash‑unhash patch.
  • If a kernel upgrade cannot be performed immediately, unmount the configfs filesystem (e.g., run "umount /sys/kernel/config") to prevent rmdir operations.
  • Restrict write permissions on configfs directories so that only trusted users or processes can perform rmdir or symlink operations, reducing the chance of a malicious trigger.
  • Apply SELinux or AppArmor rules to limit configfs access to essential services only, providing an additional policy layer.

Generated by OpenCVE AI on October 1, 2026 at 11:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6568-1 linux security update
History

Wed, 21 Oct 2026 13:15:00 +0000


Sat, 03 Oct 2026 11:15:00 +0000


Thu, 01 Oct 2026 09:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 30 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Fri, 25 Sep 2026 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: configfs: unhash the dentry before dropping the item in rmdir configfs_get_config_item() treats a hashed dentry as proof that sd->s_element is a live config_item. configfs_rmdir() breaks that: simple_rmdir() leaves the dentry hashed, the last reference to the item is dropped right after, and the dentry is only unhashed by d_delete() once ->rmdir() has returned. configfs_symlink() resolves its target holding no lock on it, so get_target() can land in that window: BUG: KASAN: slab-use-after-free in config_item_get+0x26/0x90 get_target fs/configfs/symlink.c:128 [inline] configfs_symlink+0x4ab/0x1030 fs/configfs/symlink.c:185 Unhash in configfs_remove_dir(), while the item is still guaranteed to be there. A reference obtained just before that stays harmless, as create_link() rechecks CONFIGFS_USET_DROPPING, already set by configfs_detach_prep(). Both configfs_unregister_subsystem() paths d_drop() after detaching, so this only makes rmdir match them.
Title configfs: unhash the dentry before dropping the item in rmdir
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-10-21T12:53:47.600Z

Reserved: 2026-09-25T10:18:58.205Z

Link: CVE-2026-97949

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:22.453

Modified: 2026-10-21T13:21:17.213

Link: CVE-2026-97949

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-97949 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T11:15:05Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference