efi: apple-properties: validate setup data header length

map_properties() remaps the Apple properties setup_data payload
and then reads the properties header fields.

Reject a truncated payload before checking the header version and length
fields.

Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Reviewed-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
Pengpeng Hou 2026-07-06 17:18:13 +08:00 • committed by Ard Biesheuvel
commit eb01ffabeb