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=1793187730; b=KrvDLz0xxGqaL/otz5Dn1UW7VlApoY7u1IPqvwX9B2nYrei4vv+ibuGIAgChji4C54X4 z5DL5uqiFj1kvDA5/iAwf0oKX5dcfgQoRREP2oTUKRIg/lHMyCXSLSJEaZnUMdGRGdt9d dmFGI8KwkAseg+SfCLRP/ZNi78PT08oRIlSMcRdZAHHILEF9/HFe4dXhegTgQ4Y2zDaHP hlqo/h4Py6aDFxYOoH1uPMcNn0q4oD8jDPu+ESlBQBBwi4nYg+tydZffFoOivTDswmuLL 7UC4HmgfIxPs4y+elI2hC9AKYlJwm5726RhRazzLMUKmDIzqWZtSiUAjs9h/FHbNJ7g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187730; 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=FXUtXbW+oRubslwSynRLk7BEwhZWD/4U/C+Ru92z9Dc=; b=mqtZi0jxETamK+M3iAJnnu5KnLPqhEYnalZWr6xrAz+NGBGZgWYL6KGzNOsowbm7fIZA VjLUZfMFv+M6J8GWXFexmPySjJobIAHcrovNa0Wv84FbqOhDx3dl33qdiCTVMzUIolj58 kd7mFO3tcLRwZRNbzqJCgVzgzr8sXtv1dLX2IZnYoASajh+8+/g24Mz+ITofJA2zo/3NB 9OzZ9Xt1NY3nr8FMGwaAQV9MbHL4+CC/rxb9nWAtv9fT7KkXmhTHGSDIUirrw3coZbWnQ QLySy8WupILYrLOj+fj9a8kGE2xOkx/ZA/C7gjJywy0/QRqA6vJ2vN9zHMjq21H0eTQ== 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=eaQk8zFB; 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 BB5E9606A329 for ; Wed, 28 Oct 2026 11:42: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=eaQk8zFB Received: by smtp.kernel.org (Postfix) with ESMTPSA id C62941F01829; Wed, 28 Oct 2026 11:42:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187729; bh=FXUtXbW+oRubslwSynRLk7BEwhZWD/4U/C+Ru92z9Dc=; h=From:To:Cc:Subject:Date:Reply-To; b=eaQk8zFBM34wXPX7H0MMs8yocbq6zxs+QKqLF6E2vWUmw2PTwjeaasy0kY4muUnJx PyMWMR5ao7RFdNpuKV4fbAsS44K3vEKDt/vEaYS+Hxc98K4vxe6Qhwk4+4YHKG0LaF kzkw2mZJmpPcfbt2ABwJGXOHiBL7Cm7ZAo7E6EN4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99171: ntfs3: free the sbi after a grace period Date: Wed, 28 Oct 2026 11:35:58 +0100 Message-ID: <2026102807-CVE-2026-99171-4fcb@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=3467; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OjNk+WZM7/T8L/8KobEv/dzIv0UcxHczqJBSTf4ohgg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz9+u3p/Q9aCjur+zjetxCbuUs/c2ZfMcVYmVVflhT 1bN3763I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSac+wYN50h7ScnIcP3gY1 lPUyOkiuD+KqYViw9+Tz6BeHgvPWhOxS0l/9l2t1VOUnAA== 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: ntfs3: free the sbi after a grace period If the "nocase" mount option ntfs3 uses custom hash and dentry compare functions. Both access ntfs3 superblock private information in rcu pathwalk. ntfs_put_super() and ntfs3_kill_sb() drop the info without any rcu delay. A lookup that's still inside the filesystem when the last reference to the mount is dropped causes a UAF. With a pathwalk held up in ntfs_d_hash() while the last reference to the mount goes away: BUG: KASAN: slab-use-after-free in ntfs_nls_to_utf16+0x752/0x940 Read of size 8 at addr ff1100010453c850 by task walker/99 Call Trace: ntfs_nls_to_utf16+0x752/0x940 ntfs_d_hash+0x22b/0x500 link_path_walk+0x11ad/0x1d30 path_lookupat+0x63/0xb00 filename_lookup+0x1f1/0x5b0 vfs_statx+0xd7/0x3b0 [...] Allocated by task 95: __kmalloc_cache_noprof+0x249/0x560 ntfs_init_fs_context+0x2db/0x5a0 alloc_fs_context+0x52e/0xc70 [...] Freed by task 98: kfree+0x1db/0x5b0 deactivate_locked_super+0x9c/0xf0 cleanup_mnt+0x9f/0x130 task_work_run+0x131/0x250 The bug is currently masked by the grace period in namespace_unlock() for umount(2). Keep the necessary information until the filesystem private info is freed and free it with an rcu delay. ntfs3_free_sbi() now runs from an rcu callback and drops the upcase table via ntfs_put_shared(). So switch s_shared_lock over to spin_lock_bh(). Otherwise the callback can deadlock against a task holding the lock on the same cpu. The Linux kernel CVE team has assigned CVE-2026-99171 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit a3a956c78efaa202b1d75190136671cf6e87bfbe and fixed in 6.18.59 with commit c8b1a4840467930e01f1a9374d991d7a8a2896c1 Issue introduced in 6.2 with commit a3a956c78efaa202b1d75190136671cf6e87bfbe and fixed in 7.2.13 with commit 7abecef26a9be8f9de70659a3092250461a52072 Issue introduced in 6.2 with commit a3a956c78efaa202b1d75190136671cf6e87bfbe and fixed in 7.3 with commit c01b091b06412d3b1b53d8c2925f6de586c8a2fc 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-99171 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/ntfs3/ntfs_fs.h fs/ntfs3/super.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/c8b1a4840467930e01f1a9374d991d7a8a2896c1 https://git.kernel.org/stable/c/7abecef26a9be8f9de70659a3092250461a52072 https://git.kernel.org/stable/c/c01b091b06412d3b1b53d8c2925f6de586c8a2fc