[PATCH master] partitions: efi: reject partitions with negative size

Sascha Hauer s.hauer at pengutronix.de
Fri Sep 11 07:11:18 PDT 2026


On Wed, 09 Sep 2026 17:29:34 +0200, Stefan Kerkmann wrote:
> Previously the GPT parser accepted a partition whose ending LBA is
> smaller than its starting LBA. The sector-count calculation then wraped
> and registered a partition with a negative file size. This is invalid
> and caused out of bounds reads in the bootm 4-KiB image probe on 32-bit
> systems.
> 
> 
> [...]

Applied, thanks!

[1/1] partitions: efi: reject partitions with negative size
      https://git.pengutronix.de/cgit/barebox/commit/?id=21b8d0054c1a (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list