PT-2026-166984
CVE-2026-143126
·
Published
2026-12-03
·
Updated
2026-12-03
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
ntfs: check the file name against the key length of an index entry
ntfs index entry inconsistent() checks that the file name of a
$FILE NAME key fits in the index entry. It does not check that the name
fits in the key, which is what key length describes. Code that works on
the key alone relies on that.
ntfs readdir() copies key length bytes of the key of the next entry to
resume the enumeration, and later uses the copy to search the index. If
file name length is larger than the key holds, the name comparison reads
past the copy:
BUG: KASAN: slab-out-of-bounds in ntfs file compare values+0x2d1/0x4b0
Read of size 2 at addr ffff88800a4ef2ce by task init/1
ntfs file compare values
ntfs collate
ntfs ie lookup
ntfs index lookup
ntfs readdir
iterate dir
Allocated by task 1:
kmemdup noprof
ntfs readdir
The buggy address is located 0 bytes to the right of
allocated 78-byte region
Two bytes of an image from mkntfs are enough: in an entry whose name has
six characters (key length 78), change file name length from 6 to 7, so
the key claims 80 bytes. The entry itself is 96 bytes, so the existing
check lets it pass. The next readdir of the directory reads the extra
bytes.
Check the name against key length, and check that the key is large
enough to hold file name length in the first place.
Found an issue in the description? Have something to add? Feel free to write us 👾