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=1792758706; b=ZyIkWWSkaWXfjt7Y8zoLeNmy3M+6An19aKl8OEBMoCqPa7pp19E1W77mq2ReoLUj7YIo JfBEv7qQHCrwXprQ8sBBUp7iuejkbQ/f6brxbUie1Der0oxGFGxXRQe+2M6Yy3lvzNCNZ kHzi22xhIoA1FsOXsC5UcDkvCvwMh9vO994UY5fiWutTBr0ld68VqgbXG1h86pUbtCEU7 qQUFrKkfRGYYwkAkG/jzm/JEuxfhmR/Xd2GeOsE+EXIE1XyHA/CVtD3VF/behwSBSTbw2 6vYGBm9WKccCbVwDYUH0WHnzGoxJIg0V6JaJHI/9ANocx+EnkCH0PzE01y+VuPHfvSg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758706; 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=kDRoe3z3nkC2EOJCG8HMVuumqIeck2Qxt9XxyHy8nRc=; b=tXogJ6irTiUmgElKLc7kkb+K8bp5iT2wtUzeOtdU9AI2cS/Fy0y3+KjCToGiePRNln2v n6FqbKF5f74z1qJeNOu1t61XC6Qaq4hacPNRpUBM+c3hY1OaaJFaFO8UljbzG362NGowc N0Sj+/WQRp1anC/Z4kd94FmdRtgVQXkIGOUXc4C51XkgCRuXVdJirrAyRbR+vd9A9XrWj LKCKjSd7tpDQNjR+57KGGr1dvUoclYa5aDJiT5S8fe7WNyd6UwYKaAPb12+PHlJiYFAr0 M6UFVqQfxUburVMAeO5vLnRnNG4cSFyZXPHSOSvoSWeem4/NmqNK9+cwpnKZeKfHOdA== 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=iQE+mDBV; 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 D9C58606A31A for ; Fri, 23 Oct 2026 12:31:45 +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=iQE+mDBV Received: by smtp.kernel.org (Postfix) with ESMTPSA id 984411F01825; Fri, 23 Oct 2026 12:31:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758705; bh=kDRoe3z3nkC2EOJCG8HMVuumqIeck2Qxt9XxyHy8nRc=; h=From:To:Cc:Subject:Date:Reply-To; b=iQE+mDBVhzYPdeFLqD/fAdj03y3JxEL4TXFoh74NeeRZzbn2nixo/0VB0GWVVeVR5 MzB3Ufg7/UwVoznAac3MHe8umAKOMGRNwHLrBoAcXi181fgOJe3QfIGbfU3FD/GfoB Hrde1xF/Qnh1YN77lo/bBszHhGBNPK+Ar2khLUDg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98976: namespace: keep the lock on a mount that a propagated copy is moved beneath Date: Fri, 23 Oct 2026 14:19:38 +0200 Message-ID: <2026102312-CVE-2026-98976-09cf@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=3438; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WUfsYohA7ssYaeRsVE/MorE2ysj6x+mkBhf2/81YOcU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3Aw4w1d6b5C4Y0VvlOCH1W0LqzLQklg8PBbaXb47nf XtjRY9xRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE2Y1hQefpUwc/5Rf6aW7V i58gUXYlepq+P8N8v/Jt6r78McvlP/Xz/Fm2tkOOob8fAA== 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: keep the lock on a mount that a propagated copy is moved beneath attach_recursive_mnt() transfers MNT_LOCKED from the top mount to the mount that is moved beneath it with MOVE_MOUNT_BENEATH. This allows the owner of a user namespace to replace its locked /proc or its root. The mount beneath takes on the job of covering the underlying mountpoint allowing the top mount to be unmounted. Consider two mount namespaces: (H) The host H has a shared mount P with a secret in P/d (Z) Z is a user namespace made from M. Its copy of P receives propagation from the host's P and its copy of M's cover on P/d is locked Z's owner must not get to see P/d. Now (H) mounts X on P/d. This propagates into (Z). The copy of X lands beneath (Z)'s locked cover. The locked property is transfered from (Z)'s cover to the copy of X propagated beneath it. The cover is now unlocked. Now (H) unmounts X again. The copy of X in (Z) gets unmounted and the covering mount is left unlocked on top of P/d. (Z) can now unmount it: Z: umount2(P/d) = EINVAL /* the cover is locked */ H: mount X on P/d, umount X /* both propagate into Z /* Z: umount2(P/d) = 0 /* the cover is now unlocked */ Z: read P/d/secret = "covered-by-root" /* secret revealed */ So only transfer the locked property to the mount beneath for mounts the caller has placed. A propagated copy that lands beneath a locked mount is locked as well so that the mount at the bottom of the stack carries a lock the way every check expects. The mount on top of it remains locked to ensure that it keeps covering even if the propagated mount is unmounted again. The Linux kernel CVE team has assigned CVE-2026-98976 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit c62a4766937edec2962d52e583276b459b739f2d and fixed in 7.2.11 with commit f1f0c24ca701d7d3061c7f69f7450f1734c11745 Issue introduced in 7.1 with commit c62a4766937edec2962d52e583276b459b739f2d and fixed in 7.3 with commit d74d66aa708ccf2bc0b1e265a83fed0f2308d5c4 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-98976 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/f1f0c24ca701d7d3061c7f69f7450f1734c11745 https://git.kernel.org/stable/c/d74d66aa708ccf2bc0b1e265a83fed0f2308d5c4