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=1793187616; b=X44egdPiN/eTCI0wu5wVHeQv5zPmGnbjQtQknY8nWo2w9Iins6KKK9OAtSVcTGkp6ATP yWTIgiiixY4jMPJL9fWMxH6YGtxbIn7sFQWxnJAapvzJVKw8XG2ZSbxm2ppuqq8ty0O6i zzLyz2/WSbJms4XNt7HTG+IEcaLC0QCeRkgk75SKiDXza8e/wr8c5/py75DTJXSGXGz3G DOPJYPfJtaK9GaCCRmxWMiJ1uZFf0fYenQmrD320UTElEpxa+WHSlhP+AHqMmXQiWkIkd e4cHCJnfQF/wqMXsBftlnQAG33ewIibabsMNs8pJeIUfirP0rLGYU7hFr2cL3kKUoFg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187616; 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=1eCz8dwEwdrQRHfTlz7YcScdvUP0B9O50U4Buyr55rU=; b=pEnExOLqSFhLPTmfMJAaby7mx/HrT0reXyUwWMoxeBbiz1GT6zilLITyrO1YabZBlmpC RZOI7i1iFouVhDa7Juj+fdLzQavPJf30s5BYp+pfST+UDUwLSwYhL90BZTsATDe1ySEHs 9O/3Myt4nE85qshBgMlAgdJPDpVivzWgjsuI0FUaedwfrl2WG9jqtdGkUlZnh8djqGLRG w3W0+jW+UXZBshT2NHiHhCHJR3xSIhAoUWfEGEMpzSAWIHuaSaN/IAQeaqDlYgn6i1lQ1 qgcgPLF0bsN74Nyh3lPtL54Wx4l+Ri2toNbAKnOGHn6R3kgXj9Lno2o43nlVMTFZNIQ== 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=JzcuCw7I; 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 25669606A31A for ; Wed, 28 Oct 2026 11:40:16 +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=JzcuCw7I Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49B3E1F01825; Wed, 28 Oct 2026 11:40:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187616; bh=1eCz8dwEwdrQRHfTlz7YcScdvUP0B9O50U4Buyr55rU=; h=From:To:Cc:Subject:Date:Reply-To; b=JzcuCw7ISDO8a18tTd+pvTyLJMO9lEzVqXIJj8tvfXZRIvprgiHUZBVBNRkPDdR+/ +xraEPzS+8IS7fasGYfBXabYCMJMBZ9+Qjb/NfqigVwoLBSDKqsnOeBxiRwoEcKbG+ EaHLg4+XbipC1JMXbhtFmsSgXK+vCSECuNL9bmRo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99174: ext4: free the sbi after a grace period Date: Wed, 28 Oct 2026 11:36:01 +0100 Message-ID: <2026102808-CVE-2026-99174-1742@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=3773; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qu17l2/JdUBbdOONKqkQC/tblGRzxEfMVnSS3Q6sIk4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz9+5XX45MVa52mp60VNnzhOtN1wyPr//I77kwgX5z PrJcnNiO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiAXsYFixk8mW7eVJU/1VQ 3/EnwTHya7mnhTHMs923SD7+rKxqwJY/YV/2LJzp8fxDMgA= 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: ext4: free the sbi after a grace period ext4_get_link() follows a symlink that keeps its target in a data block in rcu pathwalk mode with ext4_getblk(EXT4_GET_BLOCKS_CACHED_NOWAIT). That reads s_mount_state in the ASSERT() of ext4_getblk() and again in ext4_es_lookup_extent(), and the lookup bumps the extent status hit or miss counter, all through sb->s_fs_info. ext4_put_super() destroys those counters, clears sb->s_fs_info and frees the sbi without waiting for a grace period. A pathwalk that is still in ext4_get_link() when the last reference to the mount goes away then dereferences a NULL s_fs_info, the freed sbi or the destroyed percpu counters. With a pathwalk held up in ext4_get_link() while the last reference goes away: KASAN: null-ptr-deref in range [0x00000000000000a8-0x00000000000000af] RIP: 0010:ext4_getblk+0xf0/0x640 Call Trace: ext4_get_link+0x26c/0x410 pick_link+0xf96/0x1780 step_into_slowpath+0x9b8/0x1250 path_lookupat+0x484/0xb00 filename_lookup+0x1f1/0x5b0 vfs_statx+0xd7/0x3b0 vfs_fstatat+0x4d/0x90 __do_sys_newfstatat+0xa0/0x100 do_syscall_64+0x10e/0x5e0 entry_SYSCALL_64_after_hwframe+0x77/0x7f So far that has been hard to hit. umount(2) waits for a grace period in namespace_unlock() before it drops the mount, so only a mount whose last reference goes away elsewhere, like the close of a file or a chdir out of a lazily unmounted directory, can race a walker. Keep sb->s_fs_info and free the sbi together with the extent status counters after a grace period. Split the counters out of ext4_es_unregister_shrinker() for that. The shrinker still gets wasted in ext4_put_super(), the counters go with the sbi. The Linux kernel CVE team has assigned CVE-2026-99174 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 6493792d3299b3e33f887ef8a150099d271faf9c and fixed in 6.18.59 with commit 80d5db1686b05fad6f384be017714297d828a714 Issue introduced in 5.19 with commit 6493792d3299b3e33f887ef8a150099d271faf9c and fixed in 7.2.13 with commit 87d29b8b849738d52fe820d495fa0aa2d5a1ec82 Issue introduced in 5.19 with commit 6493792d3299b3e33f887ef8a150099d271faf9c and fixed in 7.3 with commit c17b44266a1f9fcb49b894d4611d1254bf1aa313 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-99174 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/ext4/ext4.h fs/ext4/extents-test.c fs/ext4/extents.c fs/ext4/extents_status.c fs/ext4/extents_status.h fs/ext4/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/80d5db1686b05fad6f384be017714297d828a714 https://git.kernel.org/stable/c/87d29b8b849738d52fe820d495fa0aa2d5a1ec82 https://git.kernel.org/stable/c/c17b44266a1f9fcb49b894d4611d1254bf1aa313