Skip to content
Commit 82f4b393 authored by Pedro Falcato's avatar Pedro Falcato
Browse files

Ext4Pkg: Improve extent node validation on the number of entries



Improve the extent tree node validation by validating the number of
entries the node advertises against the theoretical max (derived from
the size of on-disk structs and the block size (or i_data, if inline
extents).

Previously, we did not validate the number of entries. This could be
exploited for out-of-bounds reads and crashes.

Cc: Marvin Häuser <mhaeuser@posteo.de>
Fixes: d9ceedca ("Ext4Pkg: Add Ext4Dxe driver.")
Reported-by: default avatarSavva Mitrofanov <savvamtr@gmail.com>
Signed-off-by: default avatarPedro Falcato <pedro.falcato@gmail.com>
Reviewed-by: default avatarMarvin Häuser <mhaeuser@posteo.de>
parent 43ab7c85
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment