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=1796045332; b=1xMLTJc2vGJOIOEht6AzksnDB4mfEy1rj/QTtA5KMuViAE20E6Xxej9C7Y9cjKsIE59A z4YRml/yuZfeA9GaQ7dj1pD7fSgyV7AQny1xHy2y5mpHz/c1pzksv4Dnca0NDjstTTl84 C2nNvaLnQIvVyxiSQDQljR3W/fZu/oZo53a9LCya0DcyNXSyjcwc9/vXSi7d0l38b1fu8 5/XmWVfx27pwbywM+0xzyl6f//n+4tgPPc81bdGxoBc/6DsDqLO61iz4itJFet//yl+93 6KzIV/nOn9RK6a9tCnmj/cPwbJ3F3R8ZUqmVNiaF/c2rnWM/nrwIhw/tODxSYBJkWTw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796045332; 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=CNDZNvDGGOzemTxeOJu3pVrOAHW5F2v1zv6Pm/lIltY=; b=QXwfGNUxHN+MNvi9uJpWvZe7D6/gIi9M4V9whuFR+W0GVwZKqCD/NXQ+RK9+VtwCcGEc foPiPwv65+BO5z8ndvEuiPdg1GGKlwhu6PGXRTXY+qOu8Vp6FxXSPB5TrarZh0QoLEyDk cmaF2eCdlvB8Arg0dnJlXhxN0tFvrW7eM7fgXKfPBrPGBNokjamQvgGFODYrAOU2/wluN sQpxbwhp1a0viTM7HOvk4+shhUuLfmZaEy0SUwyUABvFDduQFKn/Itr6UyDS7C8CpZ638 rF2zx5o598zKgZMV49skAiw0ZBItzXIJYgwgudK1W2Iq5XLggdpGDcQI3LM4o9sSiqg== 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=t97JWmeY; 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 792F2606A320 for ; Mon, 30 Nov 2026 13:28:52 +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=t97JWmeY Received: by smtp.kernel.org (Postfix) with ESMTPSA id 919691F0089C; Mon, 30 Nov 2026 13:28:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796045332; bh=CNDZNvDGGOzemTxeOJu3pVrOAHW5F2v1zv6Pm/lIltY=; h=From:To:Cc:Subject:Date:Reply-To; b=t97JWmeYhc5NM0C3ys0i0LfTHOvcGb3Cl2FOOArN5Dfp8pGgUFYhjtqu/Ibs7i4hS dKb2wSTxaHMw4k7ROdjr9KTM0nSMS2NS60IhQu8oSQ7Ye65nzOQalp4J0HzoY0F2TJ LTggkA6YmL3Oqx24z3HBPVkQQy3gRrCnAdJ9+BFo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99863: fs/ntfs3: bound CreateAttribute asize against record_size in do_action Date: Mon, 30 Nov 2026 14:18:13 +0100 Message-ID: <2026113041-CVE-2026-99863-d351@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=5799; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fmwFR0lwj5FD0hx5ahQRDroLM2mNUQ67NKvdPw4Xxss=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm85aWrZM6WRnyId315Un3W36c5r0yfrUz6tsA0S2nTj 855t7WndMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE1CQY5hkyfbl3yDL/58/o Qzt+rGS3Ve4JnMMwP/+3cCHb9W/dcQcsLThYcm9u/Ft9AAA= 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: bound CreateAttribute asize against record_size in do_action In do_action()'s CreateAttribute case (fslog.c:3286), attr2 points into the on-disk log record and asize = le32_to_cpu(attr2->size) is therefore attacker-controlled on mount. The guard bounds asize only against the log record itself, Add2Ptr(attr2, asize) > Add2Ptr(lrh, rec_len) where rec_len is the client data length, and separately bounds dlen against the MFT record. Nothing bounds asize against record_size, but all three writes that follow are into rec, a kmalloc(sbi->record_size) buffer allocated by mi_init() (record.c:105): memmove(Add2Ptr(attr, asize), attr, used - roff); memcpy(attr, attr2, asize); rec->used = cpu_to_le32(used + asize); With record_size 0x400, roff 0x38, used 0x160 and asize 0x800 the memcpy writes 2048 bytes at rec + 0x38, 0x438 bytes past the allocation, and rec->used is left at 0x960. dlen is 0x18 here, so the existing dlen check passes: dlen bounds nothing about the size of the copy. The equivalent non-replay path already refuses this. mi_insert_attr() performs the same insert and starts with (record.c:488): if (used + asize > sbi->record_size) return NULL; Apply the same bound, spelled as a subtraction to match the neighbouring clause. used <= record_size holds here because check_file_record() validates it (fslog.c:2826) and is called on this record at fslog.c:3172; roff <= used - 4 follows from check_if_attr() together with the ATTR_END check at fslog.c:2844, so bounding used + asize bounds both copies. The sibling WriteEndOfFileRecordSegment case does the equivalent check against record_size at fslog.c:3277. Reproduced by mounting a crafted image on v7.2-rc5 under KASAN: BUG: KASAN: slab-out-of-bounds in do_action.isra.0+0x41f6/0x83a0 Write of size 2048 at addr ffff888005c74838 by task mount/69 CPU: 0 UID: 0 PID: 69 Comm: mount Not tainted 7.2.0-rc5-00300-g8ba098e6b6ff #2 Call Trace: kasan_report+0xce/0x100 kasan_check_range+0x105/0x1b0 __asan_memcpy+0x3c/0x60 do_action.isra.0+0x41f6/0x83a0 log_replay+0x920a/0xd300 ntfs_loadlog_and_replay+0x3ef/0x510 ntfs_fill_super+0x1d23/0x4550 get_tree_bdev_flags+0x2ef/0x550 vfs_get_tree+0x82/0x2f0 fc_mount+0x10/0x1b0 path_mount+0x517/0x1df0 __x64_sys_mount+0x20b/0x270 do_syscall_64+0xf9/0x540 entry_SYSCALL_64_after_hwframe+0x77/0x7f Allocated by task 69: __kasan_kmalloc+0x8f/0xa0 __kmalloc_noprof+0x1b4/0x460 mi_init+0x81/0x110 mi_get+0x6a/0x220 do_action.isra.0+0x1db4/0x83a0 log_replay+0x920a/0xd300 ntfs_loadlog_and_replay+0x3ef/0x510 ntfs_fill_super+0x1d23/0x4550 The buggy address belongs to the object at ffff888005c74800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 56 bytes inside of allocated 1024-byte region [ffff888005c74800, ffff888005c74c00) The Linux kernel CVE team has assigned CVE-2026-99863 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 5.15.226 with commit eb2c69866e1883e00f553127f40df01e9891164e Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 6.1.193 with commit f2cdd82f1dc242e6f831e9cf580eeb5db4af0b5f Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 6.6.163 with commit becddb2e2b856210ce34654261e27d233dfa904b Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 6.12.117 with commit 0ea0755124dba3c9682a87adcee8b4b3ab57902f Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 6.18.63 with commit 2ebe4f0736129014d6fc475215fc5bf0a0549737 Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 7.3.4 with commit 119ab8d9dd61c24a604be6175dc658cebb3a3bbd Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 7.4-rc1 with commit fb0f0ef7b5a6bc761b372ce00764d4b6e0b91a47 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-99863 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/fslog.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/eb2c69866e1883e00f553127f40df01e9891164e https://git.kernel.org/stable/c/f2cdd82f1dc242e6f831e9cf580eeb5db4af0b5f https://git.kernel.org/stable/c/becddb2e2b856210ce34654261e27d233dfa904b https://git.kernel.org/stable/c/0ea0755124dba3c9682a87adcee8b4b3ab57902f https://git.kernel.org/stable/c/2ebe4f0736129014d6fc475215fc5bf0a0549737 https://git.kernel.org/stable/c/119ab8d9dd61c24a604be6175dc658cebb3a3bbd https://git.kernel.org/stable/c/fb0f0ef7b5a6bc761b372ce00764d4b6e0b91a47