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=1792758743; b=LAiYrz0WSSXh2FR77/+caMYPCCPlBeY6px67ZyspJd5rs2QOFOc3bx7dhzZsddI0x/iO xErFzA4E6bGy5K7e/zeeXwHu5u89lSyMAWymp5XCpmIPalaKo6qbSo0ipaYmy5HnNttAn bqyBQumXoFq0y4jfuMPhFRhjoYb7pCEXiVjwtKNk+YazqH7Cln+6TYxGOGIquemPAJ56h nWpDBiwn3JHlAiZHBxz4qkpY7KYdE7SStwGtEIbe7ANI0s5J5OrNxvHhcWtZR3IWPj0Lh WtU+OgHhubs3oUlNrK2fgVkiMrqpzhKQT5Aldt9MwyX7kTVsEaV5qF3NW8ycz7NV1Dw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758743; 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=JUDDIhjoHJCpDPrX+jW76F8+SAts6kP8Vc/IWxe0mDY=; b=zpiyFVAdsjPciH2Vto9UlvpZ0/KPlmw+r2UDMjNq8P7YD8JGJhioJuX5V7NeDLeiEYiu 4AyxQEyk+F5eaaxCP/Kz08QZ1IbozijXrztQxP15ZP1b7MU/8Lwp3YS1kT/fuJtU60suA Ml/FGoQ+EuXoQ96JKrvEmf7Ve67bMToZW08EKqeS5SHPp8Ga4tNFyy4rU16TMdZ8t2Z8i dzZg1BMf8CTskZ9DqN52nqaEc6+vyvtS4vhyFTF+vmJ9PQfsf5IeK3zLZe/tv0HR2+ghu Q0En2cPiv8sQvhF9/FYMz3QNYmeDRtzHxrvtH0RBzR+QXA43Jc6IGorMzs2DVZ1XqOg== 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=qeUNuqs2; 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 B9C9B606A32C for ; Fri, 23 Oct 2026 12:32:22 +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=qeUNuqs2 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4429B1F01829; Fri, 23 Oct 2026 12:32:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758742; bh=JUDDIhjoHJCpDPrX+jW76F8+SAts6kP8Vc/IWxe0mDY=; h=From:To:Cc:Subject:Date:Reply-To; b=qeUNuqs2JqXx3uPTgYb8nSVwJ6ncKLAN8H6JnerQNvLxuLSEqKiq0zzkMXnObpAU7 KnHE37PI4KcYD1zbd0arJUMDoukEl5MaN7PNHCgMLN7GcORoB3pesPrracbNBr3ofe 0Au3+BlILW8M38qxa3IyIScOomrvlglwsHI6WEXw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98996: fs: don't silently unmount busy mounts Date: Fri, 23 Oct 2026 14:19:58 +0200 Message-ID: <2026102316-CVE-2026-98996-6027@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=5981; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kBYcL81tGW/ERzE4Rbo/c0q6N1G1G/ISTxfy6IwLic0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A478XTPJbMLndO6G+3n+Hok2YcUqyxr57tw7svz76 lxWrzTGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI+28MC2aYu3FvYcjdqSu8 zz7/9f4WIYOEDoYF63PP6cvHxCgskJ15MePbPtPt/w1mAQA= 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: fs: don't silently unmount busy mounts The propagate_mount_busy() helper exists to decide whether a synchronous can suceed. It does that by looking at the copies of the victims in the mounts its parent propagates to. One of those functions from propagation hell. It skips a copy that has child mounts except for the case of a single child mount covering the copy's root. That algorithm used to be exact. It isn't anymore. Originally only childless copies were unmounted during propagation. And 1064f874abc0 ("mnt: Tuck mounts under others instead of creating shadow/side mounts.") ended up adding covered mounts to both sides in one go. Along came 99b19d16471e ("mnt: In propgate_umount handle visiting mounts in any order") and that started to unmount more than before: [1]: A copy of a mount is unmounted when each of its children is either its overmount or a copy of the victim itself. In the former case the overmount gets reparented. In the latter case the copy of the victim will end up being unmounted. So propagate_umount() ended up being rewritten without adjusting propagate_mount_busy(). And currently propagate_mount_busy() doesn't look at copies of the victim that have two or more children nor a single child that is not the overmount. So any such copy in [1] is not checked for references. The result is that a synchronous unmount succeeds, pulling out a mount that is still in use. A container can run into this with its own mounts. The host shares a tree with the container and the host has a mount in that tree: mount -t tmpfs none /mnt mount --make-shared /mnt mount -t tmpfs none /mnt/a The container's /mnt is a slave copy of the host mount. The container now takes a detached copy of the tree and mounts that copy beneath its propagated copy of /mnt/a and keeps the file descriptor to the tree open: unshare -m --propagation unchanged mount --make-rslave / fd = open_tree(AT_FDCWD, "/mnt", OPEN_TREE_CLONE | AT_RECURSIVE) move_mount(fd, "", AT_FDCWD, "/mnt/a", MOVE_MOUNT_BENEATH) grep /mnt /proc/self/mountinfo 775 355 ... /mnt ... master:646 777 775 ... /mnt/a ... master:646 776 777 ... /mnt/a ... master:647 778 777 ... /mnt/a/a ... master:647 The now attached tree (777) is now mounted beneath the container's copy of /mnt/a. That's also where the host mount sits (as seen from the host mount namespace). So the propagated copy (776) of the host's mount is on top of its root and the copy of that (778) is inside it. Now the host runs: umount /mnt/a and it succeeds. The moved tree tree and the copy inside of it are gone from the container. Now only the propagated copy is left and it got reparented to where it was before: grep /mnt /proc/self/mountinfo 775 355 ... /mnt ... master:646 776 775 ... /mnt/a ... But the file descriptor still refers to the moved tree. So a synchronous umount detached a mount that is still in use. Teach propagate_mount_busy() the same checks that propagate_umount() does. It now checks for a single victim mount without children for which it can assume that MNT_LOCKED is cleared on every copy like propagate_umount() does. The copies form chains. IOW, when a copy itself receives propagation from the victim's parent then the mount at the same mountpoint inside that copy is a copy as well. Whether a mount receives propagation from the victim's can simply be checked by walking its masters. Walk each chain once from its top so we are sure that nested copies stay linear. Check every reference once of every copy that gets unmounted. The Linux kernel CVE team has assigned CVE-2026-98996 to this issue. Affected and fixed versions =========================== Issue introduced in 4.13 with commit 99b19d16471e9c3faa85cad38abc9cbbe04c6d55 and fixed in 6.18.57 with commit bf2c8dec26fb792876b5e9bde7030c45d8be3908 Issue introduced in 4.13 with commit 99b19d16471e9c3faa85cad38abc9cbbe04c6d55 and fixed in 7.2.11 with commit a210ac218c307513d43e98a08f23c2dfbeeebc2f Issue introduced in 4.13 with commit 99b19d16471e9c3faa85cad38abc9cbbe04c6d55 and fixed in 7.3 with commit 6857e209015f95be7a8f19a9cd5dac345b9b9859 Issue introduced in 4.1.43 with commit dc5ce95b0252d143497283f7f659840d4f8a79d0 Issue introduced in 4.4.78 with commit fdb8f10499924d96b8eb60cc1354b278f6fcf0e9 Issue introduced in 4.9.39 with commit bb4fbf094b440a9209ed88c8681960d4b26eec0f Issue introduced in 4.11.12 with commit b43f81ef0babcc07db1eaaece37c989204e4ff00 Issue introduced in 4.12.3 with commit 81311d1698c0c87c972ba71d3ce44a617b52ea21 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-98996 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/pnode.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/bf2c8dec26fb792876b5e9bde7030c45d8be3908 https://git.kernel.org/stable/c/a210ac218c307513d43e98a08f23c2dfbeeebc2f https://git.kernel.org/stable/c/6857e209015f95be7a8f19a9cd5dac345b9b9859