[PATCH 2/2] ntfs3: fix out-of-bounds access in log replay and ni_remove_name

From: k3rn3lbr3ach3r

Date: Tue Aug 18 2026 - 14:35:03 EST


Thanks for the feedback :)


Here are the two fixes as proper patches, one per finding.

Patch 1: Adds bounds check in UpdateFileNameRoot and
UpdateFileNameAllocation to prevent 56-byte memmove from overflowing
when e->size is too small.

Patch 2: Validates fname_full_size() against the attribute's actual
res.data_size in ni_remove_name() before copying.

Both pass checkpatch with zero errors and zero warnings.

KRISH JAIN