Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50AC7361958 for ; Sat, 15 Aug 2026 06:15:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774547; cv=none; b=sEoGkpDnyXb5YMZeMfRuDXBGMOD/Epi1WJN4XO6blaYF8aZlkNGrtZg3M4xi6wzafNEv5VxKnF83Wfli7723PQGLurG3+Bdqhh/dA0X8OZp/C4WxzR1oVNX00CgUcIS5B2d7YSWln4Js1WwhzQfMnjSIcIU7xAHWqFm6ohrSmk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774547; c=relaxed/simple; bh=rh3QQF5R9QvEljlQqlqDeXLdO5/Cc5hWHAXOJz23iHs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N9/oQfO0z99Am8L/7QYXTlsTFOn4sFEK4EM36Eb2Z8wY2Lhsx5qbQc1Srt/IiA4cCip0UYPrJjpVcHMbBZmPWApaXWKeHZkma/1pyWycg32rZz5llKDcoAte/mmtKiqZQeqHxfdTwTUhkeurnpgQhQaM/dCzBxzipna3I+iTPTQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vJc2uy7K; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vJc2uy7K" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D7F21F000E9; Sat, 15 Aug 2026 06:15:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774545; bh=oVh9yRQKQ5HFjwT0gpRrlLwheo+4xJ1b3sXBQQbyYYc=; h=From:To:Cc:Subject:Date:Reply-To; b=vJc2uy7KoZYFx4lIvAntdRMOJ33DWcs43HprTULcWAGrgNKkxL9kU6olG+/wjECxL GHnOyUotc2iHfNUbqW1ZA94v04BRQpMYOD6saUgZR7DfP4WkhQNQ7l2yxG+d6hD+At XjbEpGYPYFoBRYFV+ES7d8As9Trdb5Gu4MeKQ7qA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72191: ntfs3: validate split-point offset in indx_insert_into_buffer Date: Sat, 15 Aug 2026 15:04:30 +0900 Message-ID: <2026081541-CVE-2026-72191-b9e9@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4469; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kt4SVDJPbOWomZkJWM3hhRZI3I5d9FoCwipCRQdBNZs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDEeZjMV0j+XE3v7+98aZ8uYDrS//Mlw4dyEnODTj7 ef2KJ/MjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIZRzDPJOav5+j5KJ5s8Q6 BI7/uSKZk7M+i2F+Quu+pm8qqxiYj0T3tJy2zb7sY/YBAA== 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: validate split-point offset in indx_insert_into_buffer indx_insert_into_buffer() computes used = used1 - to_copy - sp_size; memmove(de_t, Add2Ptr(sp, sp_size), used - le32_to_cpu(hdr1->de_off)); where sp and sp_size come from hdr_find_split(). hdr_find_split() walks entries by le16_to_cpu(e->size) without validating that each step stays within hdr->used or that the size field is at least sizeof(struct NTFS_DE). index_hdr_check(), the on-load gatekeeper, only validates header-level fields (used, total, de_off) and does not walk per-entry sizes. A crafted NTFS image whose leaf INDEX_HDR reports used == total but contains one interior NTFS_DE with size = 0xFFF0 therefore passes validation, descends to indx_insert_into_buffer() through the ntfs_create() -> indx_insert_entry() path, and makes hdr_find_split() return an sp whose sp_size (0xFFF0) greatly exceeds the remaining bytes in the buffer. The u32 subtraction underflows and the memmove count becomes a near-4-GiB value, producing an out-of-bounds kernel write that corrupts adjacent allocations and panics the kernel. Reproduced on 7.0.0-rc7 with UML + KASAN via a crafted image and a single 'touch' inside the mounted directory; crash site resolves to fs/ntfs3/index.c at the memmove. Trigger requires only local mount of an attacker-supplied filesystem image (USB, loopback, or removable media auto-mount). Reject the split whenever the chosen sp plus its declared size already extends past hdr1->used. This is the minimal fix; it preserves the existing hdr_find_split() contract and relies on the same out: cleanup path as the pre-existing error returns. A prior OOB read in the very same indx_insert_into_buffer() memmove was fixed in commit b8c44949044e ("fs/ntfs3: Fix OOB read in indx_insert_into_buffer") by tightening hdr_find_e(), but that fix does not cover the split-point size field path addressed here: sp is returned by hdr_find_split(), not hdr_find_e(), and the underflow is driven by sp->size rather than hdr->used exceeding hdr->total. The Linux kernel CVE team has assigned CVE-2026-72191 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.6.145 with commit b232eb5c9fe11ec2368e9b565db69c724c35fbd2 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.12.97 with commit 7bf74e6baf810fe325f111996496c678fc6e244f Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.18.40 with commit f3624cc069195001c88df7a291af215f2133ff2c Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 7.1.5 with commit 1758a564b6ebe7f4a82f23c9851d1cae15549457 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 7.2-rc1 with commit f1df9d771df47aa40de6d70949c28720ae1e430d 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-72191 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/index.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/b232eb5c9fe11ec2368e9b565db69c724c35fbd2 https://git.kernel.org/stable/c/7bf74e6baf810fe325f111996496c678fc6e244f https://git.kernel.org/stable/c/f3624cc069195001c88df7a291af215f2133ff2c https://git.kernel.org/stable/c/1758a564b6ebe7f4a82f23c9851d1cae15549457 https://git.kernel.org/stable/c/f1df9d771df47aa40de6d70949c28720ae1e430d