Skip to main content
Vulnerability Database/CVE-2026-93810

CVE-2026-93810: Linux Kernel Use-After-Free Vulnerability

CVE-2026-93810 is a use-after-free vulnerability in the Linux kernel cachefiles component caused by double fput in error handling. This article covers the technical details, affected versions, and mitigation strategies.

Published:

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-93810 Overview

CVE-2026-93810 is a double fput() vulnerability in the Linux kernel's cachefiles subsystem. The flaw resides in the error-handling path of cachefiles_create_tmpfile(), where a file reference can be released twice when temporary file creation fails. Double reference releases on kernel struct file objects corrupt the file descriptor table state and can lead to use-after-free conditions. A local, authenticated attacker able to trigger the error path may achieve memory corruption, denial of service, or escalation of privileges within the kernel. The issue was resolved upstream in the Linux kernel stable tree.

Critical Impact

Local attackers with low privileges can trigger kernel memory corruption in the cachefiles subsystem, potentially leading to privilege escalation or system compromise.

Affected Products

  • Linux kernel versions containing the vulnerable cachefiles_create_tmpfile() error path
  • Systems using FS-Cache / CacheFiles for network filesystem caching (NFS, AFS, 9P, Ceph)
  • Distributions shipping affected kernel versions prior to the stable patches

Discovery Timeline

  • 2026-09-24 - CVE-2026-93810 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-93810

Vulnerability Analysis

The vulnerability exists in the cachefiles kernel module, which provides persistent local caching for network filesystems through the FS-Cache framework. The function cachefiles_create_tmpfile() creates an anonymous temporary inode used to back cached objects.

When an error occurs partway through the function, the cleanup path invokes fput() on a struct file reference that has already been released elsewhere in the error-handling flow. Because fput() decrements the file's reference count and schedules the file for release when it hits zero, calling it twice on the same reference drops the count below zero.

This double release corrupts kernel reference accounting and can leave dangling pointers in the task's file descriptor table, creating conditions for use-after-free exploitation of kernel struct file memory.

Root Cause

The root cause is an unbalanced reference-counting bug on struct file within the error-handling path of cachefiles_create_tmpfile(). Both the caller and the cleanup block release the same reference, violating the single-owner invariant that fput() requires. This class of defect is tracked under double free weaknesses affecting kernel object lifetime management.

Attack Vector

Exploitation requires local access and the ability to interact with the cachefiles subsystem, typically through the cachefilesd daemon or by mounting a network filesystem configured for local caching. An attacker triggers the specific error condition in cachefiles_create_tmpfile(), for example by exhausting resources or inducing a filesystem operation failure during temporary file creation. The resulting double fput() then corrupts kernel state. The high attack complexity reflects the need to reliably hit the error path and win the race against normal cleanup. The vulnerability is described in the Linux kernel stable commits: commit 90b306e, commit af6830c, and commit e9c2e68.

Detection Methods for CVE-2026-93810

Indicators of Compromise

  • Unexpected kernel oops or BUG messages referencing cachefiles_create_tmpfile, fput, or __fput in dmesg output
  • KASAN or KFENCE reports indicating use-after-free on struct file objects within the cachefiles code path
  • Repeated or anomalous invocations of cachefilesd from non-standard user contexts
  • System crashes correlated with FS-Cache or network filesystem cache initialization

Detection Strategies

  • Enable CONFIG_KASAN on test kernels to surface double-free and use-after-free conditions during fuzzing of the cachefiles interface
  • Audit /proc/kallsyms and kernel ring buffers for warnings originating in fs/cachefiles/namei.c
  • Monitor syscall patterns from unprivileged processes that interact with /dev/cachefiles or trigger fscache operations

Monitoring Recommendations

  • Collect and centralize kernel logs for correlation of cachefiles-related panics across the fleet
  • Alert on kernel version mismatches where endpoints run kernels predating the stable fix commits
  • Track unexpected privilege escalations or new root processes following cachefiles activity

How to Mitigate CVE-2026-93810

Immediate Actions Required

  • Apply the upstream stable kernel patches referenced in the kernel.org commits as soon as distribution packages are available
  • Inventory systems using FS-Cache or CacheFiles with cat /proc/fs/fscache/stats and prioritize patching for them
  • Restrict access to cachefilesd and the /dev/cachefiles character device to trusted administrators only

Patch Information

The fix is available in the Linux stable tree through three commits: 90b306eee037d0a6a8f4aac834b46e05c5ddd0bf, af6830cc12dfe86c832dccc9c9878a93aaa22f83, and e9c2e68c3890a935abbd5f54dbce653f9a16836c. The patch rebalances the file reference release in the error path of cachefiles_create_tmpfile() so that fput() is called exactly once. Deploy vendor-supplied kernel updates from your Linux distribution and reboot affected hosts.

Workarounds

  • Disable the cachefiles kernel module where local caching for network filesystems is not required: modprobe -r cachefiles and blacklist via /etc/modprobe.d/
  • Stop and disable the cachefilesd service on hosts that do not need FS-Cache functionality
  • Enforce least-privilege access controls to prevent untrusted local users from mounting filesystems with the fsc option
bash
# Configuration example
# Disable cachefiles module until patched kernel is deployed
sudo systemctl stop cachefilesd
sudo systemctl disable cachefilesd
echo 'blacklist cachefiles' | sudo tee /etc/modprobe.d/disable-cachefiles.conf
sudo modprobe -r cachefiles

# Verify patched kernel version after update
uname -r

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.