CVE-2026-97606

fs: autofs: fix memory leak in autofs_fill_super()

Published Sep 25, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

fs: autofs: fix memory leak in autofs_fill_super()

In autofs_fill_super(), we create a new inode using
autofs_new_ino(), however, if we fail to create root_inode,
(that is, root_inode failure path), we return -ENOMEM without
freeing the new inode(ino) that we created causing a memory leak.
Fix this by adding autofs_free_ino() to free the inode we created
in root_inode failure path before returning ENOMEM.

Analysis

AI-generated

Technical impact

The Linux kernel autofs subsystem contains a flaw in the autofs_fill_super() function: an inode is allocated during the mount operation, and if the subsequent root inode allocation fails, the function returns an error without freeing the initially allocated inode. This results in a memory leak that gradually consumes kernel memory. No user data or kernel information is disclosed, but the depletion of critical kernel resources can degrade system performance and eventually lead to a denial‑of‑service condition.

Affected Systems

All Linux kernel releases that include the autofs filesystem before the commit 4262b91e08e74cb5209ea737c554cf983d332382 are vulnerable. This applies to common distributions that ship unpatched kernels across supported architectures. The vulnerability resides solely within the autofs module; any system that mounts or uses that module is at risk.

Risk and Exploitability

The flaw requires execution with kernel privileges; therefore the likely attack vector is local, inferred from the need to trigger the autofs mount operation. No remote exploitation path is described. The CVSS score of 5.5 indicates moderate severity, and the EPSS score of less than 1 % suggests a low probability of active exploitation. The vulnerability is not listed in CISA’s KEV catalog. An attacker who can gain local kernel access could repeatedly trigger the leak by mounting autofs file systems, potentially exhausting kernel memory and causing system instability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that contains commit 4262b91e08e74cb5209ea737c554cf983d332382, the first release that includes the autofs memory‑leak fix.
  • If a standard update is unavailable, apply the patch from the kernel source tree by inserting a call to autofs_free_ino() on the failure path, rebuild, and install the corrected kernel.
  • If autofs support is not required, disable or remove the autofs module from the running kernel to eliminate the vulnerable code path.

Generated by OpenCVE AI on October 1, 2026 at 12:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6528-1 linux security update
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9022-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9023-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9039-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9183-1 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: fs: autofs: fix memory leak in autofs_fill_super() In autofs_fill_super(), we create a new inode using autofs_new_ino(), however, if we fail to create root_inode, (that is, root_inode failure path), we return -ENOMEM without freeing the new inode(ino) that we created causing a memory leak. Fix this by adding autofs_free_ino() to free the inode we created in root_inode failure path before returning ENOMEM.
Title fs: autofs: fix memory leak in autofs_fill_super()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:10 AM
Reserved
Sep 24, 2026, 4:01 PM
Status
Received
Published
Sep 25, 2026, 11:17 AM
Modified
Oct 19, 2026, 10:17 AM
Severity
Low
Public date
Sep 25, 2026, 12:00 AM