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=1793187733; b=QJZWxFPkhAxxtWw3radi5ZYl5Q1lh/r5nT6t4CLj0lZSmpfLfsPGB7pAX3KG26oA+gSf gnk724jQ6znAdVrAtlhxbVElMcWxp4mgq76HArmvdU/65NkOWlQSkAqUYuy65GB9vAhJz zjJerXkuXDba9yd3ZZuu1YJjMzbic9xs+mYUXIlGaPhC+gKXON5V2Jf02HDYDGCE2tHUT /e8prCsJfWW6DGI91KWwNPmx8WVFy3oJllN/OMiWeEMgmsSkoefuJ+tk1n5L1OoV4Fehx EhND12sWCNQHwTcUSxM00nRH0nUR0hOlsg2nM/i9ZCju9+QsvFs7MkEXd3tDI+ACs1A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187733; 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=10VAQ4Y5BNfeEkbJfQTMJSvdDXYEonDqXvGj1yiHM0E=; b=dVRBr1XAoobMqy7qCy6xZxFMpceMaA3x3i6A9rrp7Eyzz6obhYmxiOhY/LYXeK6gn8XN umLI3Z4tIj/gWZHNcMWeAH+EaJGsZ9wQuL4qhtG4MkuNgFcvtNAi0swV9cksdzIY1u1IF /AiGILA+KslaJalB2o6A6wqAHdsK8BZ1xDqRRQjVl+Ea3U6z6FQWCjhYzqfZuUxO6iLwP vPBkMURz5mg1x0O7HK0zVExzfxsbhP51He5ZEHUGFvjbZX5AWtQVBgjT0uIThs+aUj5XT qJiJP2hk5QbLnLj8FshBpRdWhP1f5r70Wb8DWFOmwLJZfDqr+GdQ9wm3CDsPU42mMhA== 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=rhngrBrW; 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 9CD48606A31C for ; Wed, 28 Oct 2026 11:42:13 +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=rhngrBrW Received: by smtp.kernel.org (Postfix) with ESMTPSA id A30551F01825; Wed, 28 Oct 2026 11:42:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187733; bh=10VAQ4Y5BNfeEkbJfQTMJSvdDXYEonDqXvGj1yiHM0E=; h=From:To:Cc:Subject:Date:Reply-To; b=rhngrBrWyoj8lT2fy2486YOsGkTPyl455wBdeqRoae0T0U0+bVvOrXaPGK8+OhFp+ Ihnc6NdI+NfnMe9D/0WkU9vVh9V0GU2WbAb+n1seJuDg2DHev+bOnN7Z3zc0e2P1H+ hQYUExNCQywz0YptNlEN20nUMQQmMxc5o6DhKLtM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99172: ipc: drop the mqueue mount with kern_unmount() on setup failure Date: Wed, 28 Oct 2026 11:35:59 +0100 Message-ID: <2026102808-CVE-2026-99172-411e@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=2576; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eET/BJ420DY4TCFLudniUnnQn2UdpGF7Qq1LSgF5ivU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz9/J1dZY0vgoO9/UxO/OloteV4XfHVh+1MitXuW9x ezw+VNDO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi5YEM83MuVSdpG3CrHzeu vSux21Zw8buiHwzzlJ4vPrJsf6jIixqP87VOghdt3y4qAAA= 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: ipc: drop the mqueue mount with kern_unmount() on setup failure mq_init_ns() creates the mqueue mount with fc_mount_longterm(), so its ->mnt_ns is MNT_NS_INTERNAL. When setting up the mqueue or ipc sysctls or msg_init_ns() fails afterwards, create_ipc_ns() drops it with a plain mntput(). With ->mnt_ns set that takes the fast path of mntput_no_expire(). The count drops to zero and nothing ever kills the mount, so the mount and the mqueue superblock are leaked. Commit dc55e35f9e81 ("ipc: Store mqueue sysctls in the ipc namespace") added the first failure path after mq_init_ns() and never dropped the mount. Commit 7229d74e5e8c ("ipc: create_ipc_ns: drop mqueue mount on sysctl setup failure") tried to fix that with a mntput() but that doesn't help for a long-term mount. Use kern_unmount(). free_ipc() open-codes the same thing for a namespace that made it. The Linux kernel CVE team has assigned CVE-2026-99172 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit dc55e35f9e810f23dd69cfdc91a3d636023f57a2 and fixed in 7.2.13 with commit c0620b648321fff654173d238d4a85298ea16d05 Issue introduced in 5.19 with commit dc55e35f9e810f23dd69cfdc91a3d636023f57a2 and fixed in 7.3 with commit f0e48172a59e517e613b73f73cc35f24fd123aeb 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-99172 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: ipc/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/c0620b648321fff654173d238d4a85298ea16d05 https://git.kernel.org/stable/c/f0e48172a59e517e613b73f73cc35f24fd123aeb