Files
erofs-linux/drivers/net
Pengpeng Hou 8ae344eb54 net: prestera: validate firmware header length
prestera_fw_hdr_parse() reads the firmware header before checking
that the firmware image contains that header.

Reject images shorter than struct prestera_fw_header before decoding the
magic and version fields.

Fixes: 4c2703dfd7 ("net: marvell: prestera: Add PCI interface support")
Signed-off-by: Pengpeng Hou <[email protected]>
Acked-by: Elad Nachman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
2026-08-05 17:36:24 -07:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…