CVE-2026-139217: ntfs: reject index blocks with a too small entries offset

Published Nov 30, 2026
·
Updated

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

ntfs: reject index blocks with a too small entries offset

Index blocks read from the volume are checked for a plausible header, but nothing keeps a block from placing its entries closer to the header than ntfsiballoc() does when it creates one. The allocation adds the update sequence array, one entry per 512-byte sector plus the terminator, to the index header and aligns the result to 8 bytes, so the first entry of a 4096-byte block starts at offset 40, while a corrupt block may declare 16.

ntfsibcopytail() then copies the entries that follow the median entry from the source block into a freshly allocated destination. The tail is sized as indexlength minus entriesoffset and the median entry, both from the source, while the destination only has allocatedsize minus the canonical offset of room. With the values above the tail is 4040 bytes and the destination holds 4032, so the last 8 bytes are written past the end of the new allocation, with contents taken from the mounted image.

Reject such a block when it is read: entriesoffset must not be smaller than the canonical offset for the block size. Derive it from blocksize rather than from the block's own usacount, which postreadmstfixup() treats as "not protected" when it does not match the block size, and use the same helper in ntfsiballoc() so both stay in sync.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the Linux kernel NTFS index-block read path, reject a block when entries_offset is smaller than the canonical offset derived from block_size, aligned to 8 bytes.

Event History

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