CVE-2026-139216: ntfs: fix u16 truncation of the update sequence array count check

Published Nov 30, 2026
·
Updated

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

ntfs: fix u16 truncation of the update sequence array count check

ntfscheckrestartpageheader() bounds the on-disk system page size by recomputing the update sequence array count from it:

u16 raofs, usacount, usaofs, usaend = 0; ... usacount = 1 + (logfilesystempagesize >> NTFSBLOCKSIZEBITS); if (usacount != le16tocpu(rp->usacount)) return false;

The right hand side is computed in u32 but stored in a u16, so the count wraps once the system page size reaches 0x2000000. An image claiming any larger power of two passes the check by also claiming usacount == 1.

Nothing else limits the value, so ntfscheckandloadrestartpage() goes on to kvzalloc() up to 2 GiB for the restart page and copy that many bytes a page at a time. The size is only rejected afterwards, by the (size >> NTFSBLOCKSIZEBITS) != usacount test in postreadmstfixup().

Compute the count in a u32 so the existing check rejects an over-large system page size instead of being defeated by the truncation. This adds no new limit: the array holds one u16 per protected sector plus the update sequence number and must end within the first sector, which caps usacount at 240 and the system page size at 64 KiB.

Widen raofs and usaofs as well, as ntfscheckrestartarea() already does: both are loaded from le16 on-disk fields and every comparison is against a non-negative value, so no result changes.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 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