In the Linux kernel, the following vulnerability has been resolved:
ntfs: grow index root value before reparent header update
ntfs_ir_reparent() moves the resident index root entries into an index
block and leaves a small root stub containing the child VCN. That root
stub can be larger than the existing resident value. For example, an
empty root with value_length 48 has an index area of 32 bytes, while the
large-index root stub needs index_length and allocated_size of 40 bytes.
The current code publishes the larger index.index_length and
index.allocated_size before resizing the resident value. If the resize
returns -ENOSPC, the recovery path can call ntfs_inode_add_attrlist(),
which looks attributes up again while the root header says
allocated_size 40 but the resident value still only provides 32 bytes of
index area. Lookup-time $INDEX_ROOT validation then correctly rejects
that transient layout as corrupt.
This reproduces as a generic/013 failure under qemu. In the failing run,
the transient root had value_len=48, index_size=32, index_length=40, and
allocated_size=40, and ntfsprogs-plus ntfsck reported "Corrupt index
root in MFT record 1177".
When the root stub grows, resize the resident value before publishing the
larger root header. If the resize fails, the old root remains valid for
recovery lookups. Keep the existing header-before-resize ordering for
shrink or same-size cases so the resident value never temporarily
exposes an allocated_size beyond its bounds.
CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 9.8
AV:N - ntfs_ir_reparent is reached via ntfs_index_add_filename on VFS create/mkdir/link/rename; the ntfs driver registers ntfs_export_ops, so remote NFS or ksmbd clients writing to an exported rw NTFS share can trigger index reparent without local shell access.
AC:L - An attacker can deterministically fill a directory and pack the host MFT record so index-root reparent needs a larger stub than the resident value_length, forcing -ENOSPC on resize; xfstests generic/013 reproduces this without races or victim-specific timing.
PR:N - Exploitation requires only permission to create or link files in an NTFS directory (local user with write access, authenticated SMB/NFS client, or guest/anonymous write on a misconfigured export); mounting is environmental setup, not a privilege needed during the trigger.
UI:N - Once an administrator has rw-mounted and optionally exported the NTFS volume, the attacker drives file-creation or link operations that grow the directory index; no further victim clicks, opens, or cooperative actions are required beyond that standing configuration.
S:U - Impact is confined to on-disk NTFS $INDEX_ROOT metadata corruption and operation failure within the host kernel/filesystem security authority; this is standard local or network filesystem exploitation, not a VM escape or cross-authority sandbox breakout.
C:H - Publishing allocated_size beyond the resident value index area leaves a transient header/buffer mismatch in the mapped MFT record; recovery lookups and subsequent index walks can read past the resident value bounds, and persistent corrupt $INDEX_ROOT can expose adjacent directory/MFT metadata.
I:H - Failed reparent can leave $INDEX_ROOT with index_length and allocated_size larger than the resident value (ntfsck reports Corrupt index root in MFT record), enabling attacker-steerable on-disk directory index metadata corruption beyond the intended filesystem state.
A:H - Recovery fails when $INDEX_ROOT validation rejects the inconsistent root, aborting directory updates and leaving corrupt on-disk index metadata that can render directories unusable; this was reproduced as an xfstests generic/013 failure with persistent filesystem corruption.
| Attack Vector |
Network |
Scope |
Unchanged |
| Attack Complexity |
Low |
Confidentiality Impact |
High |
| Privileges Required |
None |
Integrity Impact |
High |
| User Interaction |
None |
Availability Impact |
High |
AV:N - ntfs_ir_reparent is reached via ntfs_index_add_filename on VFS create/mkdir/link/rename; the ntfs driver registers ntfs_export_ops, so remote NFS or ksmbd clients writing to an exported rw NTFS share can trigger index reparent without local shell access.
AC:L - An attacker can deterministically fill a directory and pack the host MFT record so index-root reparent needs a larger stub than the resident value_length, forcing -ENOSPC on resize; xfstests generic/013 reproduces this without races or victim-specific timing.
PR:N - Exploitation requires only permission to create or link files in an NTFS directory (local user with write access, authenticated SMB/NFS client, or guest/anonymous write on a misconfigured export); mounting is environmental setup, not a privilege needed during the trigger.
UI:N - Once an administrator has rw-mounted and optionally exported the NTFS volume, the attacker drives file-creation or link operations that grow the directory index; no further victim clicks, opens, or cooperative actions are required beyond that standing configuration.
S:U - Impact is confined to on-disk NTFS $INDEX_ROOT metadata corruption and operation failure within the host kernel/filesystem security authority; this is standard local or network filesystem exploitation, not a VM escape or cross-authority sandbox breakout.
C:H - Publishing allocated_size beyond the resident value index area leaves a transient header/buffer mismatch in the mapped MFT record; recovery lookups and subsequent index walks can read past the resident value bounds, and persistent corrupt $INDEX_ROOT can expose adjacent directory/MFT metadata.
I:H - Failed reparent can leave $INDEX_ROOT with index_length and allocated_size larger than the resident value (ntfsck reports Corrupt index root in MFT record), enabling attacker-steerable on-disk directory index metadata corruption beyond the intended filesystem state.
A:H - Recovery fails when $INDEX_ROOT validation rejects the inconsistent root, aborting directory updates and leaving corrupt on-disk index metadata that can render directories unusable; this was reproduced as an xfstests generic/013 failure with persistent filesystem corruption.
CVSS 3.1