linux/drivers/net/wireless/intersil
Heyang Tan db7b86bd97 wifi: p54: validate firmware record lengths
The p54 firmware parser accesses component ID and component version
records without checking that their lengths cover the fields being read.
A malformed record can therefore make the parser read past the record.

Validate the component ID and component version record lengths before
accessing their data. The descriptor record is also checked against the
shortest descriptor length found in the supported firmware images.

Reject descriptor values that underflow the RX offset or produce an empty
RX range before updating the driver state.

Assisted-by: LLM Codex
Signed-off-by: Heyang Tan <thy15333007817@163.com>
Tested-by: Christian Lamparter <chunkeey@gmail.com>
Link: https://patch.msgid.link/20260918083349.891-1-thy15333007817@163.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-21 16:30:25 +02:00
..
p54 wifi: p54: validate firmware record lengths 2026-09-21 16:30:25 +02:00
Kconfig wifi: remove orphaned orinoco driver 2023-10-30 19:29:52 +02:00
Makefile wifi: remove orphaned orinoco driver 2023-10-30 19:29:52 +02:00