From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796025153; b=yYAUJ9BHrFeHm1U11wZ5vpwNKUFVXhr/YYdTWJmIFscL20CNu0sBKL/0zXneXsSvNYFp f6RuYJDhIHTeMruFEshszXSiV5CrYDbzJKfv2QnS126wVYrCnR4jTpKhavDoBnYX8XQrt C3xWlhbCr1Xwwd9PMX11up6XqbUCCdWPvNaIA4fSJODRlMXrbKGUO0Lhv/wwu6ZJWgO1h 4a4UKZghz07dPIHMJp7vd8Fg6LZoAA+ZX7T/MBn0Rr5clDtRkbgpDHsfCaSPmCevldl1e Wu0dTqfoapM19jvxYElBgP2kOr8eZSS5ZeRxG89wYEuD+yGF1l1UZyXQmcNBLafUvKg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796025153; 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=P0u9vmQKkYyy5nIIMjCf2u+fLHwRGsTUK4qTi/4yTXI=; b=MBG39nILLdxvdjVusOXAowYZNke5WLPtY9Pk01srXsvWiiGE9r5My1FH4xUStE+0H075 DYTjoa898fjdjlh9+XLO2TYrGnKOLfSRT85/eBtgiQ1Fih2PefRIOuBXuhMG5sCKzLK+p Qge/TbVawswlPsD/ZK+2Z7MDllk/PZbev58it5U0xB0e6cldLfwRIi+beuj6uuRVQG6v2 mLzSG2kDBMBVxN59mDmD9Q3pD5X2J+i++pdawD199NB90h0F3Ovk6tzTvgMfRA/HUa7+/ tgIs8StLD88CZ9stPs6vhC5SzuAsYaQU6cOD/vIBqRQ7Z37LAecI9dQBh9WMvkKC98Q== 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=FgAWoo9M; 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 7AA62606A31C for ; Mon, 30 Nov 2026 07:52:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=FgAWoo9M Received: by smtp.kernel.org (Postfix) with ESMTPSA id 596BE1F00897; Mon, 30 Nov 2026 07:52:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796025152; bh=P0u9vmQKkYyy5nIIMjCf2u+fLHwRGsTUK4qTi/4yTXI=; h=From:To:Cc:Subject:Date:Reply-To; b=FgAWoo9Mu64lLeOORj//TFexSr7OqFRxvO6j/0FQJK10/F0njF9418Qe3+nfI1MuE 64zd8ymvw7QlmLv91HWS07YECsVVT3X3u8QKFsPfMKxGzr74d8KQMhhJSesQ3MjrZl wztEoyWPtuSdujAyQl5NRIoAjbCQpe/YYuoKjMj8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99813: fs/ntfs3: check INDEX_ROOT resident size before use in ntfs_read_mft() Date: Mon, 30 Nov 2026 08:52:27 +0100 Message-ID: <2026113028-CVE-2026-99813-e2c2@gregkh> X-Mailer: git-send-email 2.56.1 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=4724; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9DYlCFCaSruRwOLp4e4fJ1GycTttwTlza8C2WDK9thQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm82jZNl/oiU66fmTW743fPlPNHM4V2n/i0gLvPfM2UF w9mFV4O7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ7CllWHDGbtdDi0nbs07u ln4kxJ2+dvtXv36GeTrcst4b1ZKX9H06v3uj6rMq2WaJHgA= 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: fs/ntfs3: check INDEX_ROOT resident size before use in ntfs_read_mft() When ntfs_read_mft() parses an ATTR_ROOT attribute it computes root = Add2Ptr(attr, roff); using the on-disk resident data offset (roff = attr->res.data_off) and then dereferences root->type and root->rule, and later passes root on to indx_init(). Unlike the ATTR_STD and ATTR_NAME cases, which validate that the resident data is large enough (asize >= sizeof(struct X) + roff and rsize >= sizeof(struct X)) before accessing it, the ATTR_ROOT case has no such check. mi_enum_attr() only guarantees data_off + data_size <= attribute size, so a crafted image can set data_off such that root lands at (or past) the end of the MFT record's slab allocation while still passing that check (e.g. data_size == 0). The subsequent read of root->type is then a slab-out-of-bounds read, reported by KASAN when mounting the image: BUG: KASAN: slab-out-of-bounds in ntfs_iget5 (fs/ntfs3/inode.c:283) Read of size 4 at addr ffff88800c06a400 by task exploit/142 Call Trace: ... [KASAN report internals] ntfs_iget5 (fs/ntfs3/inode.c:283 fs/ntfs3/inode.c:542) ntfs_fill_super (fs/ntfs3/super.c:1690) get_tree_bdev_flags (fs/super.c:1634) vfs_get_tree (fs/super.c:1694) fc_mount (fs/namespace.c:1198) path_mount (fs/namespace.c:3765 ...) __x64_sys_mount (fs/namespace.c:4174 ...) do_syscall_64 (arch/x86/entry/syscall_64.c:63) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) The buggy address is located 0 bytes to the right of allocated 1024-byte region [ffff88800c06a000, ffff88800c06a400) which belongs to the cache kmalloc-1k of size 1024 Validate the resident data size in the ATTR_ROOT case the same way the neighbouring cases do, so that a truncated or mis-offset INDEX_ROOT is rejected before root is dereferenced. The Linux kernel CVE team has assigned CVE-2026-99813 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 5.15.226 with commit a25ff2c3469e2f5774ccf03785b8f98b57fda74f Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.1.193 with commit 92dfb05d7e947110e8baa0f5ca2125f6faea2122 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.6.163 with commit aa9e9261daec2e46c100b6df2be4892de5aee4c9 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.12.119 with commit bc6ba85987b809855f6997b9a8d2bef91fd5c54c Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.18.65 with commit 47d638327828256774494a707f8da390ce218043 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 7.3.6 with commit 1366a00d35950a7f73d9e6a6d9a3c01c0d391f84 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 7.4-rc1 with commit d0ac69ce3af4dbae01d4f064b7482f0c5440dbde 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-99813 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/inode.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/a25ff2c3469e2f5774ccf03785b8f98b57fda74f https://git.kernel.org/stable/c/92dfb05d7e947110e8baa0f5ca2125f6faea2122 https://git.kernel.org/stable/c/aa9e9261daec2e46c100b6df2be4892de5aee4c9 https://git.kernel.org/stable/c/bc6ba85987b809855f6997b9a8d2bef91fd5c54c https://git.kernel.org/stable/c/47d638327828256774494a707f8da390ce218043 https://git.kernel.org/stable/c/1366a00d35950a7f73d9e6a6d9a3c01c0d391f84 https://git.kernel.org/stable/c/d0ac69ce3af4dbae01d4f064b7482f0c5440dbde