CVE-2026-139266: ntfs: fix FITRIM bitmap indexing for large pages
In the Linux kernel, the following vulnerability has been resolved:
ntfs: fix FITRIM bitmap indexing for large pages
The LCN bitmap has one bit per cluster, so a bitmap page represents PAGESIZE 8 clusters. ntfstrimfs() still used a 15-bit shift when selecting the page. On arm64 with 16 KiB pages this selects the wrong bitmap page and can test or discard the wrong clusters.
Compute bitmap indices from bufclusters, use the page cluster base as the bit-search origin, and keep the requested range as the clipping boundary.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel NTFS implementation on arm64 with 16 KiB pages are affected when FITRIM is performed. The incorrect 15-bit bitmap-page shift can select the wrong LCN bitmap page on that page-size configuration.
What operation triggers the problem?
The issue is triggered by ntfs_trim_fs() during FITRIM processing. It can cause the filesystem to test or discard clusters other than those intended by the requested trim range.
What can be done if an update cannot be applied immediately?
The provided information identifies FITRIM processing as the affected path. Avoiding FITRIM operations on NTFS filesystems on arm64 systems using 16 KiB pages prevents use of that vulnerable code path.