{"id":"CVE-2026-99819","summary":"ntfs3: fix out-of-bounds read in ntfs_read_mft()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs3: fix out-of-bounds read in ntfs_read_mft()\n\nntfs_read_mft() walks the attributes of an MFT record and, for each\nFILE_NAME attribute, compares the resident on-disk name with the name\nbeing looked up.  The only size check before the compare is\nrsize \u003e= SIZEOF_ATTRIBUTE_FILENAME, which covers the fixed header up to\nand including name_len, but not the variable-length name that follows it.\n\nname_len comes straight from disk and is not validated against the\nresident data_size.  A crafted image can set name_len large while keeping\ndata_size at the header size, so ntfs_cmp_names_cpu() reads name_len\nle16 characters past the end of the MFT record buffer:\n\n  BUG: KASAN: slab-out-of-bounds in ntfs_cmp_names_cpu (fs/ntfs3/upcase.c:84)\n  Read of size 2 at addr ffff888031879c00 by task a.out\n   ntfs_cmp_names_cpu (fs/ntfs3/upcase.c:84)\n   ntfs_iget5 (fs/ntfs3/inode.c:209)\n   dir_search_u (fs/ntfs3/dir.c:265)\n   ntfs_lookup (fs/ntfs3/namei.c:85)\n   __lookup_slow (fs/namei.c:1915)\n   lookup_slow (fs/namei.c:1932)\n   path_lookupat (fs/namei.c:2278)\n   vfs_statx (fs/stat.c)\n   vfs_fstatat (fs/stat.c)\n   __do_sys_newfstatat (fs/stat.c)\n\n  Allocated by task:\n   mi_init (fs/ntfs3/record.c)\n   ntfs_iget5 (fs/ntfs3/inode.c)\n   dir_search_u (fs/ntfs3/dir.c)\n   ntfs_lookup (fs/ntfs3/namei.c)\n\nCheck that the name fits in the resident data before using it.","modified":"2026-11-30T09:00:31.225674134Z","published":"2026-11-30T07:52:20.616Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99819.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/39ee57c2f55a5720c5a6de2b16de358fb53e0089"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5193cdc5e113df0198d1074fd268fc3c8e912284"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7a374d9be8267834dc534e55f01e5e01765cab4c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a0340f7bc98d5eef1654201f881b6893b457f9dc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c0c73f63c47ee44fc7e07708217e8b7aaf816ab4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f47f4fb45607062c46dd15b4b37b6b527d556f14"},{"type":"WEB","url":"https://git.kernel.org/stable/c/feeddef5523d56e9a0d101181d5645d6881d3830"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99819.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99819"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"82cae269cfa953032fbb8980a7d554d60fb00b17"},{"fixed":"feeddef5523d56e9a0d101181d5645d6881d3830"},{"fixed":"a0340f7bc98d5eef1654201f881b6893b457f9dc"},{"fixed":"c0c73f63c47ee44fc7e07708217e8b7aaf816ab4"},{"fixed":"39ee57c2f55a5720c5a6de2b16de358fb53e0089"},{"fixed":"f47f4fb45607062c46dd15b4b37b6b527d556f14"},{"fixed":"5193cdc5e113df0198d1074fd268fc3c8e912284"},{"fixed":"7a374d9be8267834dc534e55f01e5e01765cab4c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99819.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99819.json"}}],"schema_version":"1.9.2"}