Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792758680; b=aIIXhf0OsXget3fccAClxC56CodKV5EualDO4DNfAhDeTHvqIsSC3kIMjUdwdxB+h5Mz XAUbo86XVP5K3AYjYWBKqwt0mYlhCuL4v67i1TrA2ucZGbGFn8OJ+7hQ/Xg7B7xfaDHJx 318yJUVPdumB8JsFKz4FqmBBXWelpKEsvmMhavmJm6l6oQmbGC0pZAII2ywEW1iV9kP8n f7aDo8hE88zQhXy9X4y2M15Twc309k8/M809vA8BUTbnIrLETAcFkXAbY9TRQe51a88hZ 4uDLfj4pVeeplMwD4jowDEsofwnmN43dk8zTAxAzK4trsz2xtlhMRP3EJE59DFmHl+Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758680; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=EjPcS0HcEJt41L+9TbMNdJk+yZdwBjsT/s6zeVLZQxk=; b=ZcNtFcm+OvuRbSnWC+6WvYEkCxjgJmQvVOaEXK9FinzhA2OFjGOmQdlbwXEemcuHkxNU do/cynKk57WdY7ZW4khxZEN9qUhBWdxZbFyYOsVcB1YG8dvb46nqt2cVqwTWz0ox7okMB ev1RjifBcMMeTcGek+tO2/EOuc4h7MoQKfAgVJDVwi2pDQz7QYTgHw1r2DxIO8ZZr9lrF aHWoQf9moy4N71PAWnu76ttOm9qOWMPjBZgDj/MYoeIOafxC7K6Aj1vmCbTR+wsFaf2Pq 8LPxQ6UsV/Jh82ERhIQg4P65cDSpwM2VWktInahXzqimp9dXU868AVp0lfRRGB85pDg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=KQ2wf86M; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9195E606A323 for ; Fri, 23 Oct 2026 12:31:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=KQ2wf86M Received: by smtp.kernel.org (Postfix) with ESMTPSA id 822021F01825; Fri, 23 Oct 2026 12:31:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758680; bh=EjPcS0HcEJt41L+9TbMNdJk+yZdwBjsT/s6zeVLZQxk=; h=From:To:Cc:Subject:Date:Reply-To; b=KQ2wf86MV6Dv1jwkcTtXHhx088WHyF1SVIvkqaH52aEvpVwCgCHwWIF+R1rZ5kFJi nmqk3iievz3U2+wIeIbrlHyUWoSIYcDYcGzKjSdEioX6WyJMKViJGY6um/QRb4i7jY CEqmryzRWLJW0dergrzLZdLcfp+120mwX7GiPDns= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98992: namespace: don't copy an unmounted mount tree Date: Fri, 23 Oct 2026 14:19:54 +0200 Message-ID: <2026102315-CVE-2026-98992-7c99@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3769; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8MTCrVk6+NqtpkWTQq4wJI9qrCgch9AbxwL591e2O40=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A47waXi3VJRfuO939urNbbPElya+/31wyjLFvmgdZ Suz9Xe2dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE1lQwzPdicHnnsdM+5VVE Se0SlwcLTp1QDGJY0Dv/l5zco3R1TdXeZ/Uh/k+5ulxqAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: namespace: don't copy an unmounted mount tree may_copy_tree() accepts a mount whose root is an nsfs or pidfs file before it checks whether that mount is mounted. This exception exists for nsfs and pidfs mounts. They are part of no mount namespace so neither check_mnt() nor is_mounted() would let them through and bind-mounting a nsfsfd or a pidfd wouldn't work. Problem is that exception also admits a bind mount of such a file when it was lazily unmounted and is only kept alive by a file descriptor: mount --bind /proc/self/ns/net /tmp/x exec 3< /tmp/x umount -l /tmp/x mount --rbind /proc/self/fd/3 /tmp/y With MS_REC or AT_RECURSIVE copy_tree() doesn't stop at the unmounted mount. It copies every mount that stayed attached to it as well. So if you have a bunch of overmounts over the nsfsfd or the pidfd the whole unmounted stack is copied. That's a bug. So refuse to walk an unmounted tree. Copying its root alone stays possible. So a bind mount of a namespace that is gone can still be recreated from a file descriptor on the old one. The file descriptor pins that mount and its root and __has_locked_children() only reads the direct children which don't leave the parent's list without namespace_sem. The internal mounts carry MNT_NS_INTERNAL instead of NULL and are still walked. Copying an unmounted tree recursively fails with EINVAL. The Linux kernel CVE team has assigned CVE-2026-98992 to this issue. Affected and fixed versions =========================== Issue introduced in 3.19 with commit e149ed2b805fefdccf7ccdfc19eca22fdd4514ac and fixed in 6.6.160 with commit 86a2d56b1960720bf1844441c0890621e9db2f25 Issue introduced in 3.19 with commit e149ed2b805fefdccf7ccdfc19eca22fdd4514ac and fixed in 6.12.113 with commit 7e037b1fd339d865737c8accd29abcf40130a5a0 Issue introduced in 3.19 with commit e149ed2b805fefdccf7ccdfc19eca22fdd4514ac and fixed in 6.18.57 with commit b47b40c4f058418f9707454543179df240796aad Issue introduced in 3.19 with commit e149ed2b805fefdccf7ccdfc19eca22fdd4514ac and fixed in 7.2.11 with commit 8d3527457e183cedee3003c2897314da49488311 Issue introduced in 3.19 with commit e149ed2b805fefdccf7ccdfc19eca22fdd4514ac and fixed in 7.3 with commit 8bacbf6be959973b28b691713a872c12eae69eec 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-98992 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/namespace.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/86a2d56b1960720bf1844441c0890621e9db2f25 https://git.kernel.org/stable/c/7e037b1fd339d865737c8accd29abcf40130a5a0 https://git.kernel.org/stable/c/b47b40c4f058418f9707454543179df240796aad https://git.kernel.org/stable/c/8d3527457e183cedee3003c2897314da49488311 https://git.kernel.org/stable/c/8bacbf6be959973b28b691713a872c12eae69eec