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=1792758667; b=Fd8XiCK5StHkmGlOe6z50aewzX0fwXwPlVZoxI8079bWkixIsGtBJ1fdSXrXfz2NAiFb 83zCb1H3nr0N3gJqNCLbCk8GzQJH81fkUEYQvaXVyd71o/dNNSOPbXozkC6mfrwcWShmK 3MUeIRk7Z9P8XacM/kTgX3Yhp12geTxaAAL3a2id7iHHGi7Zh+y0xUFck5pbpKomVt54F TEbqLS5HL3SThBM59pUQj9tgjJB59Rg3OjtigwXbHRbHV9Zf+nPBEqw3Rk19puQ/nkIfC LeIeWqSrnJ6y73y4Vm/XHaJaRYPP93daoSnxYRka9+SMaxRQiMaJFWR2DDbVJ986Diw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758667; 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=OM0K9gV6ZMVOHCpku30n4XxVwayc7SrchMjEWsTll4I=; b=akfBMIFynCByLAkGEcjUk/LtF5+AyIfX+t9TsDTMlI6a3ZgIfkDJxUwOF5FoKrSo16BR 7SZWwgoT7sLpXFt2O9pfnyJ2miT88tweaxMtDEM9uqQ+ehhMoHtdo0LbTJATwno7s9adW tImFmfxxuFcv8BDfb0r6ptJgpNKtFtAS6mhiVq9KQWwUZJT0UjJPJnVLMf+PiW/kaXx1i FjsmwjJwadsyhUBlcbyrE69np6trvTfj9r2KyE2/Qgfmsf6it2Nf7zMtl2yDyVWC30ofZ xFECgZUcOdXMyqg+IvAFFLmIf904biXcjxKN+JpihkddOUIjn1VsIam4m2+P3WX+JQw== 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=GPnPggGS; 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 067FF606A321 for ; Fri, 23 Oct 2026 12:31:06 +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=GPnPggGS Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B56A1F01828; Fri, 23 Oct 2026 12:31:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758666; bh=OM0K9gV6ZMVOHCpku30n4XxVwayc7SrchMjEWsTll4I=; h=From:To:Cc:Subject:Date:Reply-To; b=GPnPggGSVZ9UczpLPKMFdLFlYmzNzGRrKORUTEbgdWDm7TL9lzMlJ6sXwLvsGJ4tC zm/syzP+vBc6kdzanpV1mhSpFmigG66sB4yY5bT1JySOy387cxe2XuunInGpWiCRaP Zf+Sx5BuF6d+jFaBGd++FDRxS/xyHxhwkb8C1mjI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98991: namespace: queue a mount only once for mount notifications Date: Fri, 23 Oct 2026 14:19:53 +0200 Message-ID: <2026102315-CVE-2026-98991-b3f3@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=3818; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fLiPeh+1eLD6xW60BEReqmNOZs2ZVf/tmSiwEhGzTc0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3Aw7vsjinZXlcqnf13pptPqsOuz28JtEknrh5jaz+h AArW5fpHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARJx2G+Qkb701eeeXSipQl xhlaDjm3TQ9WdDMsaNnQeWljZ4Mr1wfF2HeVrz/cXX/MFQA= 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: queue a mount only once for mount notifications mnt_notify_add() puts a mount on notify_list. It doesn't check whether the mount is on the list already. That's fine as long as every mount is queued at most once per namespace_sem hold. It isn't. propagate_umount() moves a surviving overmount off a stack of mounts that are going away and queues it as moved. shrink_submounts() and mark_mounts_for_expiry() call umount_tree() for several mounts under a single namespace_sem hold. So the second umount_tree() can take down exactly the mount the first one reparented, reparent it once more and so end up queueing it a second time. The second list_add_tail() cuts the mounts queued in between out of the list while the head still points at the last of them. notify_mnt_list() then only visits that one mount and the others are freed after the grace period with notify_list still pointing at them. Every later mount operation on the host walks freed memory: BUG: KASAN: slab-use-after-free in __list_add_valid_or_report Read of size 8 at addr ffff8881003d57e0 by task notify_dq/162 __list_add_valid_or_report+0x15c/0x1a0 mnt_add_to_ns+0x322/0x890 attach_recursive_mnt.isra.0+0xf2a/0x1a00 path_mount+0x139c/0x1d40 This needs a mount with MNT_SHRINKABLE to bind from. That's what finish_automount() creates (submounts of NFS, AFS and CIFS and the tracefs mount below debugfs). Bind mounts inherit the flag. A mount namespace with a FAN_MARK_MNTNS mark does the rest and root in a user namespace can have both. Initialize to_notify in alloc_vfsmnt() and leave a mount alone that is queued already. mnt_notify() looks at the state the mount has when the list is drained so a single entry per mount is enough. The move event for a mount that is unmounted under the same hold is lost. That's fine. The detach is what matters. The Linux kernel CVE team has assigned CVE-2026-98991 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit bf630c40164162ba1d3933c2f5e3397d083e0948 and fixed in 6.18.57 with commit acbe9e4418e2ef7bef1a12e62e0e7d6145a15190 Issue introduced in 6.15 with commit bf630c40164162ba1d3933c2f5e3397d083e0948 and fixed in 7.2.11 with commit 702ff3fe499876e09c45558a05366d21a5bc41ab Issue introduced in 6.15 with commit bf630c40164162ba1d3933c2f5e3397d083e0948 and fixed in 7.3 with commit bd2feb7796b6585938a4241e7b7c4148a6f7b762 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-98991 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/mount.h 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/acbe9e4418e2ef7bef1a12e62e0e7d6145a15190 https://git.kernel.org/stable/c/702ff3fe499876e09c45558a05366d21a5bc41ab https://git.kernel.org/stable/c/bd2feb7796b6585938a4241e7b7c4148a6f7b762