{"id":"CVE-2026-100002","aliases":["CVE-2026-100002"],"related":[],"kind":"vulnerability","state":"published","title":"ntfs: fail the mount when $MFT needs its own extent records","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: fail the mount when $MFT needs its own extent records\n\nMounting a crafted image hangs the mount process forever, unkillable at\n0% CPU.  Only the hung-task detector reports it:\n\n  INFO: task mount:74 blocked in I/O wait for more than 30 seconds.\n\n  folio_wait_bit_common      <- waits forever\n  filemap_read_folio\n  map_mft_record_folio\n  map_mft_record\n  ntfs_map_runlist_nolock\n  ntfs_attr_vcn_to_rl\n  __ntfs_read_iomap_begin\n  iomap_read_folio\n  ntfs_read_folio            <- already holds that folio's lock\n  ntfs_read_inode_mount\n  ntfs_fill_super\n\nntfs_read_inode_mount() assembles $MFT's runlist one $DATA extent at a\ntime, hoping, as its comment says, that it never needs a part of $MFT it\nhas not decoded yet.  If $MFT's attribute list puts one of its\nattributes or later $DATA extents in an extent record outside the\nrunlist decoded so far, reading that record re-enters\nntfs_map_runlist_nolock() for $MFT.  Depending on the layout, that waits\non the folio lock it already holds, as above, blocks on $MFT's runlist\nlock, or dereferences NULL in map_extent_mft_record().\n\nMark the volume for the whole $DATA enumeration and have\nntfs_map_runlist_nolock() refuse $MFT with -EIO while the mark is set.\nThe enumeration decodes each extent itself with\nntfs_mapping_pairs_decompress(), so it does not need that path.\n\nA validly placed record can trip the check too.  The driver puts an\nextent record for $MFT's own mapping pairs before the first vcn it\ndescribes, but with clusters smaller than a page, the folio holding it\ncan still run past the decoded runlist.  An unpatched kernel hangs on\nthat layout as well; with the check the mount fails.  The check then\nrefuses only the folio's tail, so this patch needs \"ntfs: do not map an\nunmappable runlist fragment as a hole\": without it the tail is\nzero-filled and the mount serves an all-zero mft record.  The mount now\nfails instead of hanging:\n\n  ntfs: (device vda): ntfs_map_runlist_nolock(): $MFT needs its own\n    extent records to describe itself; cannot mount.\n\nTested under qemu with KASAN, PROVE_LOCKING and the hung-task detector\non ntfs-next, with and without the whole series: six crafted images\nthat hang or crash an unpatched kernel fail to mount with the series,\nand nine images that mount without it still mount, three of them with\nthe same file listing and contents, among them a volume written by\nntfs-3g whose $MFT has its $DATA in three extent records.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: fail the mount when $MFT needs its own extent records\n\nMounting a crafted image hangs the mount process forever, unkillable at\n0% CPU.  Only the hung-task detector reports it:\n\n  INFO: task mount:74 blocked in I/O wait for more than 30 seconds.\n\n  folio_wait_bit_common      <- waits forever\n  filemap_read_folio\n  map_mft_record_folio\n  map_mft_record\n  ntfs_map_runlist_nolock\n  ntfs_attr_vcn_to_rl\n  __ntfs_read_iomap_begin\n  iomap_read_folio\n  ntfs_read_folio            <- already holds that folio's lock\n  ntfs_read_inode_mount\n  ntfs_fill_super\n\nntfs_read_inode_mount() assembles $MFT's runlist one $DATA extent at a\ntime, hoping, as its comment says, that it never needs a part of $MFT it\nhas not decoded yet.  If $MFT's attribute list puts one of its\nattributes or later $DATA extents in an extent record outside the\nrunlist decoded so far, reading that record re-enters\nntfs_map_runlist_nolock() for $MFT.  Depending on the layout, that waits\non the folio lock it already holds, as above, blocks on $MFT's runlist\nlock, or dereferences NULL in map_extent_mft_record().\n\nMark the volume for the whole $DATA enumeration and have\nntfs_map_runlist_nolock() refuse $MFT with -EIO while the mark is set.\nThe enumeration decodes each extent itself with\nntfs_mapping_pairs_decompress(), so it does not need that path.\n\nA validly placed record can trip the check too.  The driver puts an\nextent record for $MFT's own mapping pairs before the first vcn it\ndescribes, but with clusters smaller than a page, the folio holding it\ncan still run past the decoded runlist.  An unpatched kernel hangs on\nthat layout as well; with the check the mount fails.  The check then\nrefuses only the folio's tail, so this patch needs \"ntfs: do not map an\nunmappable runlist fragment as a hole\": without it the tail is\nzero-filled and the mount serves an all-zero mft record.  The mount now\nfails instead of hanging:\n\n  ntfs: (device vda): ntfs_map_runlist_nolock(): $MFT needs its own\n    extent records to describe itself; cannot mount.\n\nTested under qemu with KASAN, PROVE_LOCKING and the hung-task detector\non ntfs-next, with and without the whole series: six crafted images\nthat hang or crash an unpatched kernel fail to mount with the series,\nand nine images that mount without it still mount, three of them with\nthe same file listing and contents, among them a volume written by\nntfs-3g whose $MFT has its $DATA in three extent records.","source":"cvelist"}],"published":"2026-11-30T13:22:58.705Z","modified":"2026-11-30T14:17:13.977Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b041ca562526b3c4a71b41b80ba5e520eac636ad","fixed":"ccdb67f6bd08242bf98002db6a98e2efc7228ff3","status":"affected"},{"type":"git","introduced":"b041ca562526b3c4a71b41b80ba5e520eac636ad","fixed":"5562eaecdaf9deb3f750441c95a5f2c440b3293b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.1","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/ccdb67f6bd08242bf98002db6a98e2efc7228ff3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5562eaecdaf9deb3f750441c95a5f2c440b3293b","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-100002","url":"https://www.cve.org/CVERecord?id=CVE-2026-100002","licence":"CVE Terms of Use","modified":"2026-11-30T13:22:58.705Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-100002","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100002","licence":"Public domain","modified":"2026-11-30T14:17:13.977Z"}],"updatedAt":"2026-11-30T14:32:21.227Z","epss":{"score":0.00198,"percentile":0.10109,"date":"2026-12-01T12:00:22.000Z"}}