CVE-2026-99993: ntfs: fix kunmap_local() of advanced pointers in check_mft_mirror()

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ntfs: fix kunmaplocal() of advanced pointers in checkmftmirror()

checkmftmirror() compares the mft records of a page with the mirror records by advancing kmft and kmirr by the record size for every record. It then passes the advanced pointers to kunmaplocal(). After the last record of a page they point one page past the mapping.

With HIGHMEM kunmaplocal() warns that the address does not match the top of the kmaplocal stack. What it does next depends on how the architecture finds the page table entry:

- 32-bit ARM looks the entry up by that address. It clears the entry of the neighbouring fixmap slot and leaves the real mapping in place. The next kmaplocal() on that CPU that reaches the slot hits the BUGON(!ptenone()) in kmaplocalpfnprot(). - x86-32 takes the entry from the stack index, so the wrong address does not select a wrong entry. In QEMU the mount carried on after the warning.

With 4 KiB pages and 1 KiB mft records the four mirror records fill exactly one page, so every mount whose $MFT and $MFTMirr folios are in highmem hits it. A fresh mkntfs volume on 32-bit ARM (multiv7defconfig, 256 MiB of highmem) fails on the first mount:

WARNING: mm/highmem.c:623 at kunmaplocalindexed+0x254/0x26c, CPU#1: mount/85 kunmaplocalindexed from ntfsfillsuper+0x224c/0x35a0 ntfsfillsuper from gettreebdevflags+0x1d8/0x2a4 ntfs: volume version 3.1, dev loop0, cluster size 4096 kernel BUG at mm/highmem.c:565! PC is at kmaplocalpfnprot+0x210/0x214 kmaplocalpageprot from ntfschecklogfile+0x1fc/0x1210

Found with syzkaller. Kernels without HIGHMEM do not show it. kmaplocalfolio() returns the direct map address there and kunmaplocal() has no mapping to remove.

Keep the addresses returned by kmaplocalfolio() and unmap with those.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In ntfs_check_logfile()'s check_mft_mirror(), keep the addresses returned by kmap_local_folio() and pass those original addresses to kunmap_local(), rather than the pointers advanced through the MFT records.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:18 PM
Data Sourced
via MITRE·01:18 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203