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

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

CVE-2026-97583 is a use-after-free flaw in the Linux kernel's AFS file system that can lead to memory corruption when handling peer address list changes. This article covers technical details, impact analysis, and mitigation.

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

CVE-2026-97583 is a use-after-free vulnerability in the Andrew File System (AFS) client of the Linux kernel. The flaw resides in afs_fs_probe_fileserver(), which fetches the current endpoint state under server->fs_lock but leaves old_alist as NULL. As a result, afs_set_peer_appdata() treats every address list replacement as initial setup, binding only new peers while failing to unbind peers removed from the old list. Stale app_data pointers on removed peers can later be dereferenced through an RxRPC callback, triggering access to freed server objects.

Critical Impact

Attackers who can influence AFS address list refreshes may trigger a kernel use-after-free, enabling denial of service or potential kernel memory corruption.

Affected Products

  • Linux kernel versions containing the AFS client with the affected afs_fs_probe_fileserver() logic
  • Distributions shipping kernels prior to the upstream fixes referenced in the stable commits
  • Systems using AFS filesystem mounts with RxRPC transport

Discovery Timeline

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

Technical Details for CVE-2026-97583

Vulnerability Analysis

The vulnerability is a use-after-free condition in the Linux kernel AFS client. During an address list refresh, afs_fs_probe_fileserver() passes a NULL value for old_alist to afs_set_peer_appdata(). The helper interprets a NULL old list as initial setup and only binds new peers. Peers that were removed from the address list retain their app_data pointers to the server object.

KASAN reported the resulting slab-use-after-free in afs_find_server+0x3c/0xa0, reached via afs_rx_new_call, rxrpc_new_incoming_call, and rxrpc_io_thread. The server allocation originates in afs_lookup_server and afs_alloc_server_list, while the free occurs in afs_put_server through an RCU callback.

Root Cause

The root cause is incorrect state tracking when replacing a server's address list. CPU 0 replaces server S's list and drops the old peer Pold without clearing Pold->app_data. The server destroyer then clears only S's current peers and permits S to reach its RCU callback. After the callback frees S, CPU 1 handles a callback over an RxRPC connection that still pins Pold, reads the stale Pold->app_data, and invokes afs_use_server() on the freed object.

Attack Vector

Exploitation requires network interaction with an AFS fileserver and specific timing between address list refreshes and incoming RxRPC callbacks. An attacker positioned to influence AFS endpoint state, for example through a malicious or compromised fileserver returning changing address lists, can drive the condition. User interaction such as mounting or accessing an AFS volume is required, and the race window must align for the dangling peer to be used after the server is freed.

No public proof-of-concept exploit is available. Technical details are described in prose; refer to the upstream commits for the exact code paths involved.

Detection Methods for CVE-2026-97583

Indicators of Compromise

  • KASAN slab-use-after-free reports referencing afs_find_server, afs_rx_new_call, or rxrpc_new_incoming_call in kernel logs
  • Unexpected kernel panics or Oops messages originating from the afs or rxrpc subsystems during address list refreshes
  • Repeated AFS server list rebuilds followed by RxRPC callback processing anomalies

Detection Strategies

  • Enable KASAN on test and staging kernels to surface the use-after-free before production exposure
  • Monitor dmesg and journal output for stack traces that include afs_put_server, afs_find_server, or rcu_core frees followed by AFS reads
  • Correlate AFS mount activity with kernel fault telemetry to identify systems exercising the vulnerable code path

Monitoring Recommendations

  • Centralize kernel log collection and alert on KASAN, BUG, and use-after-free tokens originating from AFS or RxRPC modules
  • Track kernel versions across the fleet to identify hosts running unpatched builds that mount AFS volumes
  • Review network traffic to AFS fileservers for unexpected endpoint changes that could trigger frequent address list refreshes

How to Mitigate CVE-2026-97583

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the stable tree commits as soon as vendor builds become available
  • Inventory hosts that mount AFS volumes and prioritize them for patching
  • Restrict AFS client connectivity to trusted fileservers until kernels are updated

Patch Information

The fix preserves old->addresses for the peer app-data update so that removed peers are cleared before the endpoint state is replaced. It also advances both cursors when the old and new lists share a peer, preventing an infinite loop on shared entries. The patch is available in the following upstream commits: Linux Kernel Commit 3afb988, Linux Kernel Commit 7f7f558, Linux Kernel Commit ba0623fc, and Linux Kernel Commit c7f77a11.

Workarounds

  • Unmount AFS volumes on systems that cannot be patched promptly and disable the kafs kernel module where feasible
  • Limit AFS client reachability to known, administratively controlled fileservers via firewall rules
  • Avoid frequent cell or volume reconfiguration that triggers address list refreshes on vulnerable kernels
bash
# Verify kernel version and AFS module status before and after patching
uname -r
lsmod | grep -E 'kafs|rxrpc'

# Temporarily disable the AFS kernel module where not required
sudo umount -a -t afs
sudo modprobe -r kafs
sudo modprobe -r rxrpc

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.