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=1792758907; b=0QATNb32TTeVvRzyC/hVODCwqlb12g1JyRHmB1rIad+Hu/TDSa7KYKogd3dHAcmq0EFP BhKu3zSjmXOO2RCNch2A3WlFGagyr3BZ+x2cz8PJcbd8Qo+qu2qIFtWyIDbVIaKy/eidj wazDyvIUxrxQmW8jumzc1bJa1L4IzJskGzazqr7SlljAu4Ws5pF4ekCApzJ2KnxObbSxA 9AOxDRZSWzJDM2E3VhX/Ly+cvyosGgtq6DnGQZLei12XUcuQwFONXWq0B1S8XRhEXyx1r ZF+OSwMFvtNhkgnqaCfI169KUbsd7Ih6IbDOnc3+xgVApcn4RjfNcK5ixdwZzGwKcaA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758907; 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=wt45JXfSoYtlcIXCSuxdK902A61I4xinHE1x5TzUI0Y=; b=NIQR2yKXNWOTysEg6wLLtRrNG3veJguP7dIjUTA5eCdjNEfi/NSCMXoAWoKmJAEzt2S7 t8zJZ19bMs2nw7NTIMs4U4suz//FgY0jprMQGGH/7ngrjEbaCCPZI9aUGZ5OxHvMaJQc4 SVLr3WKYJPKdFdk7GV0JFfrk21M7R12GdUva7a5Lrjv7pExCXI/vDocIKmf2czGZgQjI3 lQ5iiGcfZ7lpDyxVem+sC0oM5PlshqE3B8ZFVdYFOTD7tsl42iS2c3lnUGcqsN0TAjXsA JAiGj5VYMAB28USx/CLjT3fzLVkYa7t3VSC3Log5QYm6JaO+Nd3bv/0L9dnyqs1EtUg== 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=yk4yTWrx; 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 236B3606A31E for ; Fri, 23 Oct 2026 12:35:07 +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=yk4yTWrx Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A0CA1F01828; Fri, 23 Oct 2026 12:35:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758907; bh=wt45JXfSoYtlcIXCSuxdK902A61I4xinHE1x5TzUI0Y=; h=From:To:Cc:Subject:Date:Reply-To; b=yk4yTWrxFIrG+lpHZ4bCcz15BoAKLE2M110khHXhR9tHKPqH0bU0M7u/3BeSuKjQZ qS/WvXRFVcOmmTmGW01fc8P+CU//jJ9sJeI+Ef8JkO4sxBdpKChxvc9AbZrxRMPtoL kylaAcCIFP4Y+CKTiO4bZM/3G/9jZcNDrl7K9S0U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98978: namespace: never expire a locked mount Date: Fri, 23 Oct 2026 14:19:40 +0200 Message-ID: <2026102313-CVE-2026-98978-0c4c@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=3196; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rv6o8qwcBosv+8r1E1t1d2wuieJxxUw3QB6vWckCFyw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3Aw4KbbtWOj/Sb8PJByFG/wLlpnolpjx9HmV9rkT1T L/O2YWbO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi0zgZFlxi627q0Rf7W+ux uPDgLH1nwY8CJgxzeFuzRBWEZZlXx3BFnk+cx5M5RTEcAA== 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: never expire a locked mount Locked mounts are special. They protect the underlying files and directories from being revealed. do_umount() refuses to unmount locked mounts but shrink_submounts() doesn't. A shrinkable mount can become locked once the owner of a user namespace puts it beneath a locked mount with MOVE_MOUNT_BENEATH. The locked property now moves to the mount at the bottom making it possible to unmount the top mount. So umount() of an unlocked ancestor now expires the bottom mount first and the covered directory is revealed: move_mount(c -> x/hidden, MOVE_MOUNT_BENEATH) = 0 the cover after the lock moved: umount2(x/hidden) = 0 the holder of the lock: umount2(x/hidden) = EINVAL the root of the copy, busy: umount2(x) = EBUSY reads x/hidden/secret: "covered-by-root" So leave a locked mount alone as it dies together with its parent. A plain umount() of an unlocked mount with a locked one below it is EBUSY from now on. It's the same for any other locked child. A lazy umount still takes the whole tree. mark_mounts_for_expiry() never sees a locked mount. lock_mnt_tree() leaves a mount on an expiry list alone and nothing else puts a locked one on such a list. Add an assert for this. The Linux kernel CVE team has assigned CVE-2026-98978 to this issue. Affected and fixed versions =========================== Issue introduced in 3.12 with commit 5ff9d8a65ce80efb509ce4e8051394e9ed2cd942 and fixed in 6.18.57 with commit 6b8dc3713a76346d212abab46cbfc8d7070f534c Issue introduced in 3.12 with commit 5ff9d8a65ce80efb509ce4e8051394e9ed2cd942 and fixed in 7.2.11 with commit d23265a12e4991ce7aedce670c0b6b598cadb644 Issue introduced in 3.12 with commit 5ff9d8a65ce80efb509ce4e8051394e9ed2cd942 and fixed in 7.3 with commit f78ddcc872248c7aa1d7e904928441a0be4c6d5d 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-98978 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/6b8dc3713a76346d212abab46cbfc8d7070f534c https://git.kernel.org/stable/c/d23265a12e4991ce7aedce670c0b6b598cadb644 https://git.kernel.org/stable/c/f78ddcc872248c7aa1d7e904928441a0be4c6d5d