CVE-2026-99813: fs/ntfs3: check INDEX_ROOT resident size before use in ntfs_read_mft()

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

fs/ntfs3: check INDEXROOT resident size before use in ntfsreadmft()

When ntfsreadmft() parses an ATTRROOT attribute it computes

root = Add2Ptr(attr, roff);

using the on-disk resident data offset (roff = attr->res.dataoff) and then dereferences root->type and root->rule, and later passes root on to indxinit(). Unlike the ATTRSTD and ATTRNAME cases, which validate that the resident data is large enough (asize >= sizeof(struct X) + roff and rsize >= sizeof(struct X)) before accessing it, the ATTRROOT case has no such check.

mienumattr() only guarantees dataoff + datasize <= attribute size, so a crafted image can set dataoff such that root lands at (or past) the end of the MFT record's slab allocation while still passing that check (e.g. datasize == 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 ntfsiget5 (fs/ntfs3/inode.c:283) Read of size 4 at addr ffff88800c06a400 by task exploit/142 Call Trace: ... [KASAN report internals] ntfsiget5 (fs/ntfs3/inode.c:283 fs/ntfs3/inode.c:542) ntfsfillsuper (fs/ntfs3/super.c:1690) gettreebdevflags (fs/super.c:1634) vfsgettree (fs/super.c:1694) fcmount (fs/namespace.c:1198) pathmount (fs/namespace.c:3765 ...) x64sysmount (fs/namespace.c:4174 ...) dosyscall64 (arch/x86/entry/syscall64.c:63) entrySYSCALL64afterhwframe (arch/x86/entry/entry64.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 ATTRROOT case the same way the neighbouring cases do, so that a truncated or mis-offset INDEXROOT is rejected before root is dereferenced.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·07:52 AM
Data Sourced
via MITRE·07:52 AM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203