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

CVE-2026-97606: Linux Kernel autofs Memory Leak Vulnerability

CVE-2026-97606 is a memory leak flaw in the Linux kernel autofs filesystem that occurs during mount operations. This post explains its technical details, affected versions, impact, and mitigation steps.

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

CVE-2026-97606 is a memory leak vulnerability in the Linux kernel's autofs filesystem implementation. The flaw resides in the autofs_fill_super() function, where a newly allocated inode is not released when root inode creation fails. When the function hits the root_inode failure path, it returns -ENOMEM without calling autofs_free_ino() on the previously allocated inode. Repeated triggering of this error path leaks kernel memory over time. The issue has been resolved upstream across multiple stable kernel branches.

Critical Impact

Repeated failures during autofs superblock initialization leak kernel inode memory, potentially contributing to resource exhaustion on long-running Linux systems.

Affected Products

  • Linux kernel (autofs filesystem subsystem)
  • Stable kernel branches referenced in the upstream fix commits
  • Linux distributions shipping unpatched kernel versions

Discovery Timeline

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

Technical Details for CVE-2026-97606

Vulnerability Analysis

The vulnerability exists in autofs_fill_super(), the superblock initialization routine for the autofs (automount) filesystem. During mount setup, the function allocates a new autofs inode by calling autofs_new_ino() before attempting to construct the root inode. If root inode creation subsequently fails, the function returns -ENOMEM directly without releasing the previously allocated inode structure.

Each failed mount attempt leaks one inode worth of kernel memory. On systems that perform frequent autofs mount operations, or in environments where mount failures occur repeatedly, this leak accumulates and consumes kernel slab memory. The upstream fix inserts an autofs_free_ino() call on the error path to release the allocated inode before returning the error code.

Root Cause

The root cause is an incomplete error-handling path in autofs_fill_super(). The function allocates a resource (ino) early in its execution but does not include it in the cleanup sequence when a later allocation (root_inode) fails. This is a classic Memory Leak [CWE-401] pattern in kernel code where resources acquired before an error branch are not properly released.

Attack Vector

Triggering the leak requires conditions that cause root_inode allocation to fail during an autofs mount. This generally requires local privileges capable of invoking mount operations and either memory pressure or crafted conditions that force allocation failures. The flaw does not provide code execution or privilege escalation. Its impact is limited to resource exhaustion over time, which could degrade system availability on long-lived hosts.

No verified public exploit code is available. The vulnerability mechanism is described in the upstream commit messages. See the kernel commits 4262b91, 5ab5483, 6259b5d, and 9933ad1 for the applied fixes.

Detection Methods for CVE-2026-97606

Indicators of Compromise

  • Gradual, unexplained growth of kernel slab memory attributable to autofs_inode_cache entries in /proc/slabinfo.
  • Repeated -ENOMEM return codes from autofs mount operations recorded in dmesg or journalctl -k output.
  • Unusually high counts of failed automount attempts in autofs daemon logs.

Detection Strategies

  • Monitor kernel slab allocations with slabtop and compare autofs-related cache growth against baseline on comparable hosts.
  • Track running kernel versions across the fleet and flag hosts still running pre-patch versions of the autofs subsystem.
  • Correlate autofs mount failures with memory consumption trends to identify systems exhibiting the leak pattern.

Monitoring Recommendations

  • Export /proc/meminfo and /proc/slabinfo metrics to centralized telemetry and alert on sustained upward trends in kernel slab usage.
  • Enable kernel log forwarding so mount failure events (autofs, ENOMEM) reach the SIEM for correlation.
  • Track package and kernel versions as inventory attributes so unpatched hosts remain visible to vulnerability management workflows.

How to Mitigate CVE-2026-97606

Immediate Actions Required

  • Identify Linux hosts running kernel versions that predate the four upstream fix commits and prioritize them for patching.
  • Apply vendor-supplied kernel updates from your distribution (Red Hat, SUSE, Ubuntu, Debian, Oracle, etc.) once backported fixes are released.
  • Reboot patched systems to ensure the updated kernel is active, since live patching may not cover filesystem code paths.

Patch Information

The fix was committed to the upstream Linux stable tree across multiple branches. Reference commits include 4262b91, 5ab5483, 6259b5d, and 9933ad1. The patch adds an autofs_free_ino() call on the root_inode failure path in autofs_fill_super() to release the allocated inode before returning -ENOMEM.

Workarounds

  • Where autofs is not required, unload the module with modprobe -r autofs and blacklist it to eliminate the vulnerable code path entirely.
  • Restrict mount capabilities to administrative users to limit who can trigger repeated autofs mount attempts.
  • Schedule reboots of long-running hosts to reclaim leaked kernel memory until patching is completed.

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.