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-97584 Overview
CVE-2026-97584 is a Linux kernel vulnerability in the Andrew File System (AFS) client code. The flaw resides in the afs_lookup_server() function, which incorrectly frees an existing server's endpoint state while cleaning up a candidate server record. The candidate record has no endpoint state at that point, so the erroneous free operation targets memory belonging to an already-registered server. The issue has been resolved upstream in the stable kernel tree.
Critical Impact
A local, low-privileged user interacting with an AFS mount can trigger kernel memory corruption that may lead to privilege escalation, denial of service, or disclosure of kernel memory.
Affected Products
- Linux kernel versions containing the vulnerable afs_lookup_server() candidate cleanup logic
- Distributions shipping the AFS client (fs/afs) prior to the referenced stable backports
- Systems that mount or interact with AFS file systems through the in-tree kernel client
Discovery Timeline
- 2026-09-25 - CVE-2026-97584 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97584
Vulnerability Analysis
The vulnerability occurs in the Linux kernel's AFS filesystem client in fs/afs/server.c. The afs_lookup_server() routine builds a candidate afs_server structure and attempts to insert it into the server list. If an existing server already matches, the candidate must be discarded. During that cleanup path, the code also freed the endpoint state associated with the candidate.
The cleanup logic incorrectly dereferenced and freed endpoint state that in fact belonged to the existing, retained server. Because the candidate record was never assigned an endpoint state of its own at that stage, the free operation released memory still in active use by the live server object.
This produces classic use-after-free conditions in kernel memory. Subsequent accesses by other AFS code paths to the retained server's endpoint state operate on freed memory, enabling corruption of adjacent kernel allocations.
Root Cause
The root cause is a logic error in the candidate cleanup branch of afs_lookup_server(). The code assumed symmetry between candidate initialization and teardown and freed an endpoint state pointer that was never owned by the candidate. The upstream fix simply removes the erroneous free, since there is no endpoint state to release at that point.
Attack Vector
Exploitation requires local access with the ability to perform AFS filesystem operations that reach the server lookup path. An attacker who can trigger concurrent lookups that race candidate insertion against an existing server can force the vulnerable cleanup branch to execute. The resulting use-after-free in kernel memory can be shaped into privilege escalation or kernel information disclosure, consistent with the high confidentiality, integrity, and availability impact scored by the CVSS vector.
No public proof-of-concept exploit is listed in the available references, and the issue is not present on CISA's Known Exploited Vulnerabilities catalog.
Detection Methods for CVE-2026-97584
Indicators of Compromise
- Kernel oops or panic messages referencing afs_lookup_server, afs_destroy_server, or AFS endpoint state structures
- KASAN or SLUB debug reports flagging use-after-free in fs/afs code paths
- Unexpected AFS client crashes correlated with mount, lookup, or cell discovery activity
Detection Strategies
- Inventory running kernels against the fixed commits (044d5960, 349e7130, 981d7266, e5bc0fa9) and flag hosts still on vulnerable builds
- Enable kernel runtime hardening features such as KASAN or SLUB_DEBUG on test systems to surface memory corruption early
- Correlate AFS mount activity with kernel log anomalies in centralized logging to identify suspicious patterns
Monitoring Recommendations
- Forward /var/log/kern.log and dmesg output to a central log platform and alert on AFS-related oops traces
- Monitor process behavior on hosts with AFS mounts for unexpected privileged shell spawns or kernel module loads
- Track package and kernel update compliance across the fleet to confirm patched versions are deployed
How to Mitigate CVE-2026-97584
Immediate Actions Required
- Apply the vendor-supplied kernel update that includes the stable backport removing the erroneous endpoint state free in afs_lookup_server()
- Reboot affected hosts after upgrade so the patched kernel is active
- Restrict local shell access on systems that mount AFS until patching is complete
Patch Information
The upstream fix is available in the Linux stable tree. See the referenced commits: Kernel Change 044d596, Kernel Change 349e713, Kernel Change 981d726, and Kernel Change e5bc0fa. Rebuild and redeploy distribution kernels incorporating these commits.
Workarounds
- Unmount AFS file systems and disable the kafs module on systems that do not require AFS connectivity
- Blacklist the kafs kernel module via /etc/modprobe.d/ to prevent automatic loading until the patched kernel is installed
- Limit which local users can trigger AFS lookups by tightening mount permissions and autofs configurations
# Configuration example
# Disable the AFS kernel module until the host is patched
echo 'blacklist kafs' | sudo tee /etc/modprobe.d/disable-kafs.conf
sudo modprobe -r kafs 2>/dev/null || true
# Verify the running kernel version after patching
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

