CVE-2026-97949

configfs: unhash the dentry before dropping the item in rmdir

Published Sep 25, 2026 CVSS 3.1 · 7.0 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6568-1 linux security update
Ubuntu USN Ubuntu USN USN-9022-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9023-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9039-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-9183-1 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-416
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

Type Values Removed Values Added
Weaknesses CWE-416
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
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 23, 2026, 7:59 AM
Reserved
Sep 25, 2026, 10:18 AM
Status
Received
Published
Sep 25, 2026, 11:17 AM
Modified
Nov 23, 2026, 8:17 AM
Severity
Moderate
Public date
Sep 25, 2026, 12:00 AM