{"id":"CVE-2026-99993","aliases":["CVE-2026-99993"],"related":[],"kind":"vulnerability","state":"published","title":"ntfs: fix kunmap_local() of advanced pointers in check_mft_mirror()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: fix kunmap_local() of advanced pointers in check_mft_mirror()\n\ncheck_mft_mirror() compares the mft records of a page with the mirror\nrecords by advancing kmft and kmirr by the record size for every record.\nIt then passes the advanced pointers to kunmap_local(). After the last\nrecord of a page they point one page past the mapping.\n\nWith HIGHMEM kunmap_local() warns that the address does not match the\ntop of the kmap_local stack. What it does next depends on how the\narchitecture finds the page table entry:\n\n- 32-bit ARM looks the entry up by that address. It clears the entry of\n  the neighbouring fixmap slot and leaves the real mapping in place.\n  The next kmap_local() on that CPU that reaches the slot hits the\n  BUG_ON(!pte_none()) in __kmap_local_pfn_prot().\n- x86-32 takes the entry from the stack index, so the wrong address\n  does not select a wrong entry. In QEMU the mount carried on after the\n  warning.\n\nWith 4 KiB pages and 1 KiB mft records the four mirror records fill\nexactly one page, so every mount whose $MFT and $MFTMirr folios are in\nhighmem hits it. A fresh mkntfs volume on 32-bit ARM\n(multi_v7_defconfig, 256 MiB of highmem) fails on the first mount:\n\n  WARNING: mm/highmem.c:623 at kunmap_local_indexed+0x254/0x26c, CPU#1: mount/85\n   kunmap_local_indexed from ntfs_fill_super+0x224c/0x35a0\n   ntfs_fill_super from get_tree_bdev_flags+0x1d8/0x2a4\n  ntfs: volume version 3.1, dev loop0, cluster size 4096\n  kernel BUG at mm/highmem.c:565!\n  PC is at __kmap_local_pfn_prot+0x210/0x214\n   __kmap_local_page_prot from ntfs_check_logfile+0x1fc/0x1210\n\nFound with syzkaller. Kernels without HIGHMEM do not show it.\nkmap_local_folio() returns the direct map address there and\nkunmap_local() has no mapping to remove.\n\nKeep the addresses returned by kmap_local_folio() and unmap with those.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: fix kunmap_local() of advanced pointers in check_mft_mirror()\n\ncheck_mft_mirror() compares the mft records of a page with the mirror\nrecords by advancing kmft and kmirr by the record size for every record.\nIt then passes the advanced pointers to kunmap_local(). After the last\nrecord of a page they point one page past the mapping.\n\nWith HIGHMEM kunmap_local() warns that the address does not match the\ntop of the kmap_local stack. What it does next depends on how the\narchitecture finds the page table entry:\n\n- 32-bit ARM looks the entry up by that address. It clears the entry of\n  the neighbouring fixmap slot and leaves the real mapping in place.\n  The next kmap_local() on that CPU that reaches the slot hits the\n  BUG_ON(!pte_none()) in __kmap_local_pfn_prot().\n- x86-32 takes the entry from the stack index, so the wrong address\n  does not select a wrong entry. In QEMU the mount carried on after the\n  warning.\n\nWith 4 KiB pages and 1 KiB mft records the four mirror records fill\nexactly one page, so every mount whose $MFT and $MFTMirr folios are in\nhighmem hits it. A fresh mkntfs volume on 32-bit ARM\n(multi_v7_defconfig, 256 MiB of highmem) fails on the first mount:\n\n  WARNING: mm/highmem.c:623 at kunmap_local_indexed+0x254/0x26c, CPU#1: mount/85\n   kunmap_local_indexed from ntfs_fill_super+0x224c/0x35a0\n   ntfs_fill_super from get_tree_bdev_flags+0x1d8/0x2a4\n  ntfs: volume version 3.1, dev loop0, cluster size 4096\n  kernel BUG at mm/highmem.c:565!\n  PC is at __kmap_local_pfn_prot+0x210/0x214\n   __kmap_local_page_prot from ntfs_check_logfile+0x1fc/0x1210\n\nFound with syzkaller. Kernels without HIGHMEM do not show it.\nkmap_local_folio() returns the direct map address there and\nkunmap_local() has no mapping to remove.\n\nKeep the addresses returned by kmap_local_folio() and unmap with those.","source":"cvelist"}],"published":"2026-11-30T13:18:57.819Z","modified":"2026-11-30T14:20:42.583Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6251f0b0de7d645e3591931ca4c11d8322c1866f","fixed":"a441c72351cc38b98ee7a099793a225d16924f4a","status":"affected"},{"type":"git","introduced":"6251f0b0de7d645e3591931ca4c11d8322c1866f","fixed":"16fcb1c446f17c11c104bd4e631b841946d180aa","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/a441c72351cc38b98ee7a099793a225d16924f4a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/16fcb1c446f17c11c104bd4e631b841946d180aa","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99993","url":"https://www.cve.org/CVERecord?id=CVE-2026-99993","licence":"CVE Terms of Use","modified":"2026-11-30T13:18:57.819Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99993","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99993","licence":"Public domain","modified":"2026-11-30T14:20:42.583Z"}],"updatedAt":"2026-11-30T14:33:45.877Z","epss":{"score":0.00267,"percentile":0.20075,"date":"2026-12-01T12:00:22.000Z"}}