CVE-2026-143124: ntfs: open the index allocation before reading or writing an index block

Published Dec 3, 2026
·
Updated

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

ntfs: open the index allocation before reading or writing an index block

ntfsibwrite() and ntfsibread() use icx->iani without checking it. ntfsirreparent() only opens the index allocation through ntfsiaadd() when the root is a small index. For a root that is already marked as a large index it calls ntfsibwrite() directly.

The lookup does not open the index allocation either when it ends in the root. If the last entry of the root has no child node, iani is still NULL when the root has to be moved into an index block, and the write dereferences it:

Oops: general protection fault, KASAN: null-ptr-deref in range [0x0000000000000128-0x000000000000012f] RIP: 0010:ntfsinodeattrpwrite+0x52/0x1600 ntfsirmakespace ntfsieadd ntfsindexaddfilename ntfslink ntfslink vfslink

A single byte of an image from mkntfs is enough. In a directory that has one empty index block, clear INDEXENTRYNODE (flags 3 -> 2) of the last entry of the $INDEXROOT and link() a file into the directory.

Commit 9365c4a1357e ("ntfs: fix NULL dereference on index allocation open failure") covers the case where ntfsiaopen() fails in the lookup. Here it was never tried. Open the index allocation on demand in both helpers and fail with -EIO if that does not work.

ntfsiaopen() also succeeds for a directory that has no $INDEXALLOCATION attribute. The inode it returns is then an empty resident stub that does not describe an index allocation, so reject that case too.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 9365c4a1357e

Event History

Dec 3, 2026
CVE Published
via MITRE·09:19 AM
Data Sourced
via MITRE·09:19 AM
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