CVE-2026-99181: autofs: ignore notification errors from a replaced pipe
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
autofs: ignore notification errors from a replaced pipe
autofs_notify_daemon() takes a reference to the current notification pipe under wq_mutex, then drops the mutex before writing the request. The write can block while the daemon enters catatonic mode and installs a replacement pipe.
If the old pipe's reader is then closed, the delayed write returns -EPIPE and the generic error path enters catatonic mode again. That transition acts on the current superblock state, closes the replacement pipe, and releases the new daemon generation's wait queues.
Only enter catatonic mode when the pipe which failed is still the current pipe. Factor the already-locked transition so the identity check and state change are atomic with respect to another replacement.
This was reproduced on v7.3-rc5-337-gff47652a4b66c in a local QEMU guest. An unprivileged UID 65534 lookup filled the old packet pipe before a normal CATATONIC/SETPIPEFD restart. On the unmodified kernel, the new pipe received HUP and both a pending victim lookup and a later lookup failed with ENOENT in two out of two fresh-mount runs.
With this change, the new pipe remained active, received an intact 304-byte request, and both victim lookups completed in two out of two runs. Normal lookup and restart-without-a-blocked-writer controls passed. No KASAN, oops, refcount, or lock diagnostic was observed. A source reproducer and complete local logs are available privately on request.
The demonstrated impact is limited to denial of a shared autofs service during a legitimate daemon restart. No memory corruption, information leak, privilege escalation, or code execution primitive was observed.
The Linux kernel CVE team has assigned CVE-2026-99181 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.28 with commit 8d7b48e0bc5fa01a818eac713d4cb0763090cd0e and fixed in 6.18.59 with commit 1a177064f501ed4b67873a43aae5d5bdb18b3704 Issue introduced in 2.6.28 with commit 8d7b48e0bc5fa01a818eac713d4cb0763090cd0e and fixed in 7.2.13 with commit fb296391f685d82dbb93621a970fb234cea45280 Issue introduced in 2.6.28 with commit 8d7b48e0bc5fa01a818eac713d4cb0763090cd0e and fixed in 7.3 with commit 65676cd4203c0e41a94caf54080a7f0a95434bda
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99181
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/autofs/waitq.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/1a177064f501ed4b67873a43aae5d5bdb18b3704 https://git.kernel.org/stable/c/fb296391f685d82dbb93621a970fb234cea45280 https://git.kernel.org/stable/c/65676cd4203c0e41a94caf54080a7f0a95434bda