Description
In the Linux kernel, the following vulnerability has been resolved:

autofs: fix sbi->pipe file reference leak in autofs_kill_sb()

When autofs_fill_super() fails before clearing AUTOFS_SBI_CATATONIC (for
example, when find_get_pid() fails on an invalid pgrp mount option, or
when an fs_context is closed before mounting), deactivate_locked_super()
invokes autofs_kill_sb() -> autofs_catatonic_mode(sbi).

Because AUTOFS_SBI_CATATONIC is still set in sbi->flags,
autofs_catatonic_mode() returns early without calling fput(sbi->pipe),
permanently leaking the pipe struct file reference.

Explicitly release sbi->pipe in autofs_kill_sb() if it is still non-NULL
after autofs_catatonic_mode().
Published: 2026-10-18
Score: n/a
EPSS: n/a
KEV: No
Impact: Resource Leak
Action: Update Kernel
AI Analysis

Impact

In the Linux kernel, the autofs subsystem can leak a pipe file reference when autofs_fill_super() fails and the superblock is later freed by autofs_kill_sb(). This occurs because the cleanup routine short‑circuits when the AUTOFS_SBI_CATATONIC flag is still set, so fput(sbi->pipe) is never called. The result is a permanent leak of a struct file reference, which can exhaust file descriptors or memory over time. This flaw is an instance of resource management weakness (CWE‑775).

Affected Systems

The vulnerability affects the Linux kernel in any release that includes the autofs filesystem and the described logic, before the commit that adds the missing fput call. All Linux distributions using the kernel without this patch are potentially affected. No specific version range is listed, so any kernel build prior to the fix needs to be considered at risk.

Risk and Exploitability

The flaw does not have an assigned CVSS score, and no EPSS score is available. It is not listed in the CISA KEV catalog, indicating no known exploitation in the wild. The issue exists at kernel level, and requires local or privilege‑escalation‑level access to trigger. Because exploitation would involve repeated internal failures or a kernel code path, the realistic risk is moderate to low until a kernel upgrade is applied.

Generated by OpenCVE AI on October 18, 2026 at 18:07 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that releases the pipe reference, which is included in recent kernel releases; upgrade the kernel to a version that contains the commit identified in the references.
  • If an immediate kernel upgrade is not possible, disable the autofs filesystem to eliminate the leak path.
  • Monitor autofs activity and system logs for repeated failures or abnormal memory/file descriptor usage, and apply additional kernel hardening such as limiting open file limits.
  • Verify that any custom kernel sources or patchsets retain the autofs cleanup logic and do not reintroduce the leak.

Generated by OpenCVE AI on October 18, 2026 at 18:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-775

Sun, 18 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: autofs: fix sbi->pipe file reference leak in autofs_kill_sb() When autofs_fill_super() fails before clearing AUTOFS_SBI_CATATONIC (for example, when find_get_pid() fails on an invalid pgrp mount option, or when an fs_context is closed before mounting), deactivate_locked_super() invokes autofs_kill_sb() -> autofs_catatonic_mode(sbi). Because AUTOFS_SBI_CATATONIC is still set in sbi->flags, autofs_catatonic_mode() returns early without calling fput(sbi->pipe), permanently leaking the pipe struct file reference. Explicitly release sbi->pipe in autofs_kill_sb() if it is still non-NULL after autofs_catatonic_mode().
Title autofs: fix sbi->pipe file reference leak in autofs_kill_sb()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-18T15:18:20.728Z

Reserved: 2026-09-25T10:25:14.356Z

Link: CVE-2026-98553

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:17:07.370

Modified: 2026-10-18T16:17:07.370

Link: CVE-2026-98553

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T18:15:15Z

Weaknesses
  • CWE-775

    Missing Release of File Descriptor or Handle after Effective Lifetime