Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97950 Overview
CVE-2026-97950 is a race-condition use-after-free vulnerability in the Linux kernel's configfs subsystem. The flaw lives in create_link(), which reads the target's configfs_dirent from item->ci_dentry->d_fsdata while relying only on the item reference obtained by get_target(). That reference pins the item but not its dentry, allowing configfs_remove_dir() to free the dentry via simple_rmdir() while a concurrent symlink operation is in flight. A symlink racing with rmdir of its target can therefore dereference a freed ci_dentry and a released dirent, tripping WARN_ON(!atomic_read(&sd->s_count)) in configfs_get().
Critical Impact
A local attacker able to trigger concurrent configfs symlink creation and target removal can corrupt kernel memory, producing denial of service and potential privilege escalation on affected kernels.
Affected Products
- Linux kernel versions containing the pre-patch configfs symlink implementation
- Distributions shipping kernels prior to the fix commits 4f54beb2e7f6, a7c1290eef60, and d47c5de1cd6b
- Stable kernel branches awaiting backport of the referenced patches
Discovery Timeline
- 2026-09-25 - CVE-2026-97950 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97950
Vulnerability Analysis
The configfs virtual filesystem exposes kernel configuration objects as directories, files, and symlinks in userspace. When userspace creates a symlink inside a configfs directory, create_link() must resolve the target config item and attach a new configfs_symlink entry referencing the target's dirent.
The helper get_target() acquires a reference on the target config_item, which keeps the item structure alive. However, the associated dentry has its own lifetime, governed by the DCACHE_PERSISTENT flag. When configfs_remove_dir() runs concurrently, it calls simple_rmdir(), which clears that flag and permits the dcache to evict and free the dentry even though the item still has outstanding references.
Because create_link() later dereferences item->ci_dentry->d_fsdata to reach the configfs_dirent, it can read a dangling pointer. The resulting access to a freed dirent triggers the WARN_ON(!atomic_read(&sd->s_count)) assertion in configfs_get() and leaves the kernel operating on reclaimed memory.
Root Cause
The root cause is a lifetime mismatch between a config_item and its backing dentry. get_target() pins only the item, so the dentry pointer stored in ci_dentry is not guaranteed to remain valid for the duration of create_link(). Nothing prevents simple_rmdir() from freeing the dentry mid-operation, producing a classic use-after-free along the symlink creation path.
Attack Vector
A local, unprivileged user with access to a mounted configfs instance can race two threads: one invoking symlink(2) against a target configfs path, and another invoking rmdir(2) on that target. Winning the race causes create_link() to read freed memory, producing kernel warnings, memory corruption, or an exploitable use-after-free primitive depending on allocator state.
No verified public exploit is referenced in the advisory. The patch pins the target dirent directly under ->d_lock, atomically with the item reference, so a hashed dentry's ->d_fsdata keeps the dirent alive through the symlink creation path. See the kernel.org commit a7c1290eef60 for the authoritative fix.
Detection Methods for CVE-2026-97950
Indicators of Compromise
- Kernel log entries containing WARN_ON from configfs_get() or stack traces referencing create_link and configfs_symlink_allowed.
- KASAN use-after-free reports naming configfs_dirent or dentry structures freed during simple_rmdir().
- Unexpected process terminations or kernel oopses correlated with symlink(2) syscalls targeting configfs paths.
Detection Strategies
- Enable CONFIG_KASAN on test and canary kernels to surface the use-after-free during fuzzing or regression workloads.
- Monitor /var/log/kern.log and dmesg for configfs-related warnings and stack traces.
- Audit which local users and containers have access to mounted configfs instances, since exploitation requires that filesystem to be reachable.
Monitoring Recommendations
- Forward kernel ring-buffer events to a central log pipeline and alert on WARN or BUG entries referencing configfs.
- Track symlinkat and rmdir syscall pairs issued by the same UID against paths under configfs mountpoints.
- Review container runtime policies that may expose configfs to workloads that do not require it.
How to Mitigate CVE-2026-97950
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced below and reboot affected hosts.
- Restrict access to configfs mountpoints to privileged administrative users where feasible.
- Prevent untrusted containers from inheriting a writable configfs mount by reviewing bind mounts and capabilities.
Patch Information
The vulnerability is resolved by three upstream commits that modify get_target() to also take a reference on the target's configfs_dirent under ->d_lock, atomically with the item reference, and to pass that dirent down to create_link():
Distribution maintainers should backport these commits to supported stable branches.
Workarounds
- Unmount configfs on hosts that do not require it by removing configfs entries from /etc/fstab and running umount /sys/kernel/config.
- Blacklist the configfs module where it is loadable and unused, using /etc/modprobe.d/ configuration.
- Enforce mandatory access control policies (SELinux, AppArmor) that deny unprivileged processes write access to configfs paths.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

