{"id":"CVE-2026-100003","summary":"ntfs: do not map an unmappable runlist fragment as a hole","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: do not map an unmappable runlist fragment as a hole\n\nWhen the extent mft record holding part of a file's runlist cannot be\nread, ntfs_attr_vcn_to_rl() ignores the failed ntfs_map_runlist_nolock()\nretry and returns with *lcn == LCN_RL_NOT_MAPPED.  The iomap read path\nonly rejects lcn \u003c LCN_ENOENT, so it maps the range as a hole and read()\nreturns zeros with no error.  The first read already does this:\nntfs_attr_map_whole_runlist() keeps the fragments it could read,\nreadahead drops its error, and the next lookup finds the unmapped tail.\n\nOn a file whose runlist is split between its base record (vcn 0-214) and\none extent record (vcn 215-1499), breaking only the extent record's FILE\nmagic makes the kernel log \"Failed to map extent mft record\", yet read()\nreturns 1285 clusters of zeros for vcn 215-1499.  A damaged attribute\nlist entry, which makes the retry fail with -ENOENT, gives the same\nzeros.\n\nReturn -ENOMEM if the retry ran out of memory and -EIO otherwise.  Both\ncallers already handle an ERR_PTR; other negative lcns, including\nLCN_ENOENT, are returned as before, and so is LCN_RL_NOT_MAPPED at or\nbeyond allocated_size, where nothing is mapped: the runlist ends there\nwith LCN_RL_NOT_MAPPED when only the last extent is mapped, as after a\nwrite into it, and with clusters smaller than a page every read of a\nfile's last folio looks up such vcns.\n\nReads of vcn 215-1499 now fail with -EIO.  An intact volume exercised\nwith buffered, mmap and O_DIRECT I/O, fallocate, truncate, sparse and\ncompressed files behaves as before.","modified":"2026-12-01T21:00:22.320028573Z","published":"2026-11-30T13:22:59.269Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100003.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2b451a65658fb44017480be8818ab93e9115b420"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7721a5eacab2fbf677ae03b2bd5cc2f355064556"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100003.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100003"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"495e90fa334828d4119061e2726af51d0a0fb4ed"},{"fixed":"7721a5eacab2fbf677ae03b2bd5cc2f355064556"},{"fixed":"2b451a65658fb44017480be8818ab93e9115b420"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100003.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.1.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100003.json"}}],"schema_version":"1.9.2"}