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

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

CVE-2026-98117 is a use-after-free flaw in the Linux kernel cachefiles component that could trigger UAF or KASAN warnings. This article covers the technical details, affected kernel 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-98117 Overview

CVE-2026-98117 affects the Linux kernel cachefiles subsystem, where the trace_cachefiles_coherency() tracepoint reads 8 bytes from a variable-length coherency data buffer. The buffer embedded in struct cachefiles_xattr can be shorter than 8 bytes, including zero-length cases. Reading beyond the allocated region can trigger a use-after-free (UAF) condition or a Kernel Address Sanitizer (KASAN) warning. Upstream maintainers resolved the issue by ensuring the buffer has at least 8 pre-cleared bytes and by rewriting the tracepoint to assemble the __be64 value from four 2-byte aligned words.

Critical Impact

Local workloads exercising cachefiles coherency tracing can trigger kernel out-of-bounds reads, producing KASAN warnings or potential UAF conditions on vulnerable Linux kernels.

Affected Products

  • Linux kernel builds that include the cachefiles subsystem with the vulnerable trace_cachefiles_coherency() implementation
  • Distributions shipping stable kernels prior to the commits referenced in the upstream fix series
  • Systems using FS-Cache or cachefilesd for network filesystem caching (for example, NFS or AFS)

Discovery Timeline

  • 2026-09-25 - CVE-2026-98117 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-98117

Vulnerability Analysis

The cachefiles subsystem backs FS-Cache with on-disk caching for network filesystems. Coherency metadata, stored in struct cachefiles_xattr, is accompanied by a variable-length payload used to validate cache object freshness. The trace_cachefiles_coherency() tracepoint historically cast a pointer to this payload as a __be64 to display the first 8 bytes in trace output. This classifies as an Out-of-Bounds Read [CWE-125] with the potential to escalate to Use-After-Free [CWE-416] when the underlying allocation is shorter than the read width or has been released.

When the coherency buffer is smaller than 8 bytes, including the zero-byte case, the tracepoint reads past the end of the allocation. Depending on allocator state, the read may land in adjacent freed memory, triggering KASAN reports or returning transient data from reused slabs. On kernels built without KASAN, the out-of-bounds read is silent but still invalid.

Root Cause

The root cause is a mismatch between the fixed 8-byte read performed by the tracepoint and the variable-length nature of the coherency payload. The code assumed the payload would always provide at least 8 valid bytes aligned to an 8-byte boundary. Neither assumption held, and the payload is only 2-byte aligned.

Attack Vector

Exploitation requires local activity that drives cachefiles coherency checks while tracing is enabled. An unprivileged process cannot enable kernel tracepoints on its own, so the practical impact is typically limited to crashes, KASAN noise, and reliability failures in environments where administrators or monitoring agents enable cachefiles tracepoints. The fix replaces the single __be64 dereference with four 2-byte word loads reassembled into a __be64, and guarantees the buffer holds at least 8 pre-cleared bytes before tracing.

No verified exploit code is available. See the upstream commits for technical details: Kernel Git Commit 68d459e, Kernel Git Commit 93488ea, and Kernel Git Commit a67632c.

Detection Methods for CVE-2026-98117

Indicators of Compromise

  • KASAN splats referencing trace_cachefiles_coherency or cachefiles_xattr in dmesg or /var/log/kern.log
  • Unexpected kernel oops or panic traces originating in the fs/cachefiles/ call path
  • Repeated crashes on hosts running cachefilesd with tracing enabled under /sys/kernel/debug/tracing/events/cachefiles/

Detection Strategies

  • Compare running kernel versions against distribution advisories referencing the upstream commits 68d459e, 93488ea, and a67632c.
  • Audit systems that enable cachefiles tracepoints in production and correlate those hosts with kernel error telemetry.
  • Review KASAN-enabled test and staging kernels for out-of-bounds read reports touching the cachefiles subsystem.

Monitoring Recommendations

  • Forward dmesg and kernel ring buffer events to a central log pipeline to catch KASAN warnings and oops traces early.
  • Alert on unexpected enablement of kernel tracing under /sys/kernel/tracing or /sys/kernel/debug/tracing on production hosts.
  • Track kernel package versions across the fleet and flag hosts still running pre-patch stable branches.

How to Mitigate CVE-2026-98117

Immediate Actions Required

  • Apply the vendor-provided kernel update that incorporates the upstream cachefiles tracepoint fix.
  • Reboot affected systems after installing the patched kernel so the new image is loaded.
  • Disable cachefiles tracepoints on unpatched hosts until the fix is deployed.

Patch Information

The fix is distributed through the stable Linux kernel tree in commits 68d459e, 93488ea, and a67632c. Downstream distributions will ship the fix in their respective stable kernel updates. Administrators should track their vendor advisory channel for exact package versions and apply updates during the next maintenance window.

Workarounds

  • Keep cachefiles tracepoints disabled on production hosts until a patched kernel is installed.
  • Restrict access to /sys/kernel/debug/tracing and /sys/kernel/tracing so only trusted administrators can enable tracepoints.
  • Where feasible, unload or disable the cachefiles module on systems that do not require FS-Cache backing storage.

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.