Re: [PATCH v2] exfat: validate vendor allocation directory entries

From: Namjae Jeon

Date: Fri Aug 28 2026 - 23:46:24 EST


On Fri, Aug 28, 2026 at 9:52 PM Yang Wen <anmuxixixi@xxxxxxxxx> wrote:
>
> The exfat entry validator checks the type and ordering of benign secondary
> entries, but does not validate Vendor Allocation entry fields. In addition,
> exfat_find() reads only the first two entries, allowing malformed trailing
> Vendor Allocation entries to bypass validation.
>
> Validate the allocation flags, VendorGuid, FirstCluster, DataLength, and
> NoFatChain extent. Read the complete entry set during lookup so malformed
> Vendor Allocation entries are rejected.
>
> Signed-off-by: Yang Wen <anmuxixixi@xxxxxxxxx>
Applied it to #dev.
Thanks!