{"id":"CVE-2026-99862","aliases":[],"cve":{"records":[{"id":"CVE-2026-99862","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.439Z","published":"2026-11-30T13:17:45.277Z","modified":"2026-11-30T13:17:45.277Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-30T13:17:45.277Z"}],"references":[{"url":"https://git.kernel.org/stable/c/c9544b9a24a60d5eb3fedd7765ac741f1f0bf191","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/7e1d4096436edfb365c536ca92d5db8e507add9c","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/986ec1c317d15cb8040d82471190e5fb209a564e","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/e558ee689f40b4d4e8d46d7a76c1c4e439f11200","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/61329755f28185322ab4f7640112b1e5c2f505ee","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/81e354bc1e5568fd56ebe1caf1a828df67294d93","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/408216b66afd9ddadaba2dce56fd4af6793e95a2","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"fs/ntfs3: bound DeleteAttribute asize against rec->used in do_action","titleSource":"Linux","descriptionSource":"Linux","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: bound DeleteAttribute asize against rec->used in do_action\n\nIn do_action()'s DeleteAttribute case (fslog.c:3316), attr is\nAdd2Ptr(rec, roff) with roff taken from the on-disk lrh->record_off, and\nasize = le32_to_cpu(attr->size) is read straight out of the MFT record:\n\n\tasize = le32_to_cpu(attr->size);\n\tused  = le32_to_cpu(rec->used);\n\n\tif (!check_if_attr(rec, lrh))\n\t\tgoto dirty_vol;\n\t...\n\tmemmove(attr, Add2Ptr(attr, asize), used - asize - roff);\n\ncheck_if_attr() (fslog.c:2869) walks the attribute chain from\nrec->attr_off and returns o == ro.  Its loop breaks on ATTR_END, so ro may\nlegitimately equal the offset of the ATTR_END marker; that is exactly how\nCreateAttribute appends to a record.  But check_file_record()'s walk\n(fslog.c:2831) also stops at ATTR_END, so check_attr() never inspects the\nbytes there.  When roff is the ATTR_END offset, those never-validated bytes\nare what gets read as attr->size, and used - asize - roff underflows.\n\nThe read itself is also unbounded: roff is a u16 and attr->size is\ndereferenced at fslog.c:3317, before check_if_attr() has constrained roff\nat all, so it can be up to ~64K past a record_size-sized object.\n\nCommit 0ca0485e4b2e (\"fs/ntfs3: validate rec->used in journal-replay file\nrecord check\") added at fslog.c:2844\n\n\tif (used < PtrOffset(rec, attr) + sizeof(attr->type))\n\t\treturn false;\n\nand its changelog names this very memmove.  It bounds rec->used against the\nATTR_END offset; it does not bound asize.  With record_size 0x400,\nattr_off 0x38, a valid three-attribute chain ending in ATTR_END at 0x158\nand used 0x160, a record whose four bytes at 0x15c read 0x100 gives\n\n\tused - asize - roff = 0x160 - 0x100 - 0x158 = 0xffffff08\n\ni.e. a ~4 GiB memmove whose source and destination both run off the end of\nrec, a kmalloc(sbi->record_size) object (record.c:105).\n\nThe equivalent non-replay path already refuses this.  mi_remove_attr()\nperforms the same removal and starts with (record.c:548):\n\n\tif (aoff + asize > used)\n\t\treturn false;\n\nApply the same bound, spelled as a subtraction to match the neighbouring\ncases, and move the attr->size read after check_if_attr() so that the\nheader is known to lie inside the record before it is dereferenced.\nRequiring roff + SIZEOF_RESIDENT <= used rejects the ATTR_END offset\nwithout rejecting any real attribute: for an attribute the walk validated,\nroff + asize <= off(ATTR_END) <= used - 4, and any attribute a\nDeleteAttribute record can legitimately name carries a full resident\nheader, so roff + SIZEOF_RESIDENT <= roff + asize <= used - 4.\ncheck_attr() itself imposes no lower bound on asize, so a crafted\nsub-header asize can still pass the first test; the second test then\nbounds it and the memmove stays inside the record.\n\nReproduced by mounting a crafted image on v7.2-rc5, which already contains\n0ca0485e4b2e, under KASAN.  The image is an ordinary mkfs.ntfs volume with\nfour bytes of one MFT record changed and a crafted $LogFile:\n\n  BUG: KASAN: slab-out-of-bounds in do_action.isra.0+0x3211/0x83c0\n  Read of size 4294967048 at addr ffff888002423258 by task mount/66\n\n  CPU: 1 UID: 0 PID: 66 Comm: mount Not tainted 7.2.0-rc5 #3\n  Call Trace:\n   kasan_report+0xce/0x100\n   kasan_check_range+0x105/0x1b0\n   __asan_memmove+0x23/0x60\n   do_action.isra.0+0x3211/0x83c0\n   log_replay+0x920a/0xd300\n   ntfs_loadlog_and_replay+0x3ef/0x510\n   ntfs_fill_super+0x1d23/0x4550\n   get_tree_bdev_flags+0x2ef/0x550\n   vfs_get_tree+0x82/0x2f0\n   fc_mount+0x10/0x1b0\n   path_mount+0x517/0x1df0\n   __x64_sys_mount+0x20b/0x270\n   do_syscall_64+0xf9/0x540\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n  Allocated by task 66:\n   __kasan_kmalloc+0x8f/0xa0\n   __kmalloc_noprof+0x1b4/0x460\n   mi_init+0x81/0x110\n   mi_get+0x6a/0x220\n   do_action.isra.0+0x1dbf/0x83c0\n   log_replay+0x920a/0xd300\n   ntfs_loadlog_and_replay+0x3ef/0x510\n   ntfs_fill_super+0x1d23/0x4550\n\n  The buggy address belongs to the object at ffff88\n---truncated---","score":null,"severity":"unknown","published":"2026-11-30T13:17:45.277Z","modified":"2026-11-30T13:17:45.277Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"c9544b9a24a60d5eb3fedd7765ac741f1f0bf191","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"7e1d4096436edfb365c536ca92d5db8e507add9c","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"986ec1c317d15cb8040d82471190e5fb209a564e","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"e558ee689f40b4d4e8d46d7a76c1c4e439f11200","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"61329755f28185322ab4f7640112b1e5c2f505ee","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"81e354bc1e5568fd56ebe1caf1a828df67294d93","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"408216b66afd9ddadaba2dce56fd4af6793e95a2","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99862"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99862"}],"remediation":[],"references":["https://git.kernel.org/stable/c/c9544b9a24a60d5eb3fedd7765ac741f1f0bf191","https://git.kernel.org/stable/c/7e1d4096436edfb365c536ca92d5db8e507add9c","https://git.kernel.org/stable/c/986ec1c317d15cb8040d82471190e5fb209a564e","https://git.kernel.org/stable/c/e558ee689f40b4d4e8d46d7a76c1c4e439f11200","https://git.kernel.org/stable/c/61329755f28185322ab4f7640112b1e5c2f505ee","https://git.kernel.org/stable/c/81e354bc1e5568fd56ebe1caf1a828df67294d93","https://git.kernel.org/stable/c/408216b66afd9ddadaba2dce56fd4af6793e95a2"],"sources":[{"name":"CVE","id":"CVE-2026-99862","modified":"2026-11-30T13:17:45.277Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99862"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-30T13:47:16.494Z","kev":{"status":"not-listed","checkedAt":"2026-11-30T22:55:31.926Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}