{"identifier":"CVE-2026-99862","cve":{"id":"CVE-2026-99862","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---","published":"2026-11-30T14:20:20+00:00","modified":"2026-12-01T06:17:54.207000+00:00","status":"Received","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","cvss_version":"3.1","affected":[],"weaknesses":[],"references":[{"url":"https://git.kernel.org/stable/c/408216b66afd9ddadaba2dce56fd4af6793e95a2","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/61329755f28185322ab4f7640112b1e5c2f505ee","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7e1d4096436edfb365c536ca92d5db8e507add9c","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/81e354bc1e5568fd56ebe1caf1a828df67294d93","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/986ec1c317d15cb8040d82471190e5fb209a564e","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c9544b9a24a60d5eb3fedd7765ac741f1f0bf191","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e558ee689f40b4d4e8d46d7a76c1c4e439f11200","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}],"kev":null,"kev_checked":true,"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[],"source":"nvd","retrieved_at":"2026-12-01T09:50:39.191905+00:00","exploited":false,"kev_stale":false,"products":[],"priority":{"label":"Assess exposure and vendor guidance","reasons":["No higher-priority signal is available in the current stored evidence."]},"epss":{"probability":0.00213,"percentile":0.12256,"date":"2026-12-04","stale":false},"version_assessment":null},"news":[],"campaigns":[],"domains":[{"domain":"git.kernel.org","source_url":"https://git.kernel.org/stable/c/408216b66afd9ddadaba2dce56fd4af6793e95a2","investigate_url":"https://investigate.aeglixmind.com/#git.kernel.org"}],"arsenal_url":"https://arsenal.aeglixmind.com/?cve=CVE-2026-99862","catalog_url":"https://cves.aeglixmind.com/cve/CVE-2026-99862","research_url":"https://investigate.aeglixmind.com/research/cve/CVE-2026-99862","coverage":{"news_candidates_checked":0,"campaign_candidates_checked":0,"bounded":false,"notice":"Exact CVE mentions in stored public excerpts and reviewed campaign content only. A mention is not proof of exploitation, attribution or tool suitability. Missing matches do not establish absence."}}