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=1792758730; b=Pp36+k99fs3h4AFOeYZd7GHmCX6qLTKRzjwLKveD/hLOWUV++Dobb2yKXaIJVmxI/QRI ZGdqkOhYZTtAFMH73q/9gIZYSdQfseqmRbHLGPic6kUKX/qUULmlozEh/0L6Rddn983p1 H3n9aEzUPOCIevvUq4hrED1IQrSD+GrLd60HS2s0oJdPJnSOvymcrvkr3QN6gYXFjfVun E3p39JoBiKqIKktU/c9gvxatUthqsiLD7E07Vc6B2NucbGVt2DMfTQ0HvQCMiWJI4lYrV S9EuxSeotbHa7z7cabY4rxwNL8b4vA7G1CxMbpzVXJe2vvoq5JLhxdoJRs4PctdZYhg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758730; 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=Sos9xQJKwscyM3NU+LBqfRVD2kgmgazWZpijUE8ixIc=; b=eE34Loza9g8IhN6G/XrzN+HQwUM3XMhZxsmOcPxXMHpK/OOrUBkeg3/QSWAUpxFopILt gMg4YGXMWl4KstLh2EQmyf/A9OnsS9VY0QA4ysPW9roY6lqicFYhDx5OI23I1LwUyVbdw fltIVYGbGJ/uE0XVFakjmEIcR6s6pSMecql5uGhvqG6E9iCSZAZuW9Do2L0pY0QcefkbU EceFhkvsnkVJOwS0ZpTVwtR9KxTLUGVoEVmyr9BKMw9ZHzQwuG6V3h5fZ3Z+kjcfsYNgE ABH9yym/H2HNtIpfH1vAfUcfiGi9XPTZTCSsqw2Vj789Qg2+W86r5o/EaazuUyvYT3w== 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=IH8o0HXa; 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 ABD87606A31B for ; Fri, 23 Oct 2026 12:32:09 +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=IH8o0HXa Received: by smtp.kernel.org (Postfix) with ESMTPSA id 210591F031E0; Fri, 23 Oct 2026 12:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758729; bh=Sos9xQJKwscyM3NU+LBqfRVD2kgmgazWZpijUE8ixIc=; h=From:To:Cc:Subject:Date:Reply-To; b=IH8o0HXa/MaS68dwiL3lAtJ62gGKqIpsf7CiIt0+w0GL67d88oFE1VXh/vQfgBvHs k+PHNV48JfWXc4apdeBjwQRMSswgBVNyaU/dPiw0llpU87q9txZN+os04wTkfC/uHQ 0MFIB3X9sSdnkBWOgUOxiWR9CM2hEKzKwenWeMkY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98995: namespace: reset the old parent's ->overmount in mnt_change_mountpoint() Date: Fri, 23 Oct 2026 14:19:57 +0200 Message-ID: <2026102316-CVE-2026-98995-48b7@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=3220; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KZ/7n9nCS9NCNaZW9u7eH2DWO1+hxG13fpPNK0yL0Gc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A44cajDdZKOboP/SpqRazfT7J4VCxtMHwy2bwxZ7u nJk6G/qiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImcVWGY75V405HZ7ubFPWd0 O8tl+203KR56x7BgYolMwDmJ21x3y+8dCvf+bL56zb6FAA== 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: reset the old parent's ->overmount in mnt_change_mountpoint() __umount_mnt() resets ->overmount of the parent when it unmounts the mount that overmounts it. mnt_change_mountpoint() doesn't. It moves the mount to its new parent and leaves the old one pointing at it. For a mount that is moved beneath in attach_recursive_mnt() that doesn't matter. The new mount has already reset ->overmount of the old parent by the time the old top mount is moved onto it. It matters for reparent() though. propagate_umount() moves a surviving overmount onto the first ancestor that isn't going to be unmounted. The mount it was taken from is unmounted immediately afterwards. If a file descriptor keeps that unmounted mount alive ->overmount points at the moved mount. That's a dangling pointer and UAF as the moved mount is unmounted and freed. do_lock_mount() follows ->overmount from the target path under mount_lock. With a file descriptor on such a mount as the target of a mount beneath topmost_overmount() walks into the freed mount and do_lock_mount() takes references on whatever it finds there. So reset ->overmount of the old parent in mnt_change_mountpoint() the same way __umount_mnt() does. A mount's ->overmount is then always a mount that is attached to it. The Linux kernel CVE team has assigned CVE-2026-98995 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit ffdc52fbbd5835a936ad683c943d6d103a2d4514 and fixed in 6.18.57 with commit 5e0a1f2c753a79749bc2ead3ae2f2ede3941daa5 Issue introduced in 6.17 with commit ffdc52fbbd5835a936ad683c943d6d103a2d4514 and fixed in 7.2.11 with commit 08d575ee89393fd812dbdca7b5d7b4574cd5a564 Issue introduced in 6.17 with commit ffdc52fbbd5835a936ad683c943d6d103a2d4514 and fixed in 7.3 with commit 476ef286a7a5db8bda51325dc0c45887b4d99d9a 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-98995 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/5e0a1f2c753a79749bc2ead3ae2f2ede3941daa5 https://git.kernel.org/stable/c/08d575ee89393fd812dbdca7b5d7b4574cd5a564 https://git.kernel.org/stable/c/476ef286a7a5db8bda51325dc0c45887b4d99d9a