{"id":"CVE-2026-99993","summary":"ntfs: fix kunmap_local() of advanced pointers in check_mft_mirror()","details":"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.","modified":"2026-12-01T21:02:34.829431952Z","published":"2026-11-30T13:18:57.819Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99993.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/16fcb1c446f17c11c104bd4e631b841946d180aa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a441c72351cc38b98ee7a099793a225d16924f4a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99993.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99993"},{"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":"6251f0b0de7d645e3591931ca4c11d8322c1866f"},{"fixed":"a441c72351cc38b98ee7a099793a225d16924f4a"},{"fixed":"16fcb1c446f17c11c104bd4e631b841946d180aa"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99993.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-99993.json"}}],"schema_version":"1.9.2"}