mirror of
https://github.com/torvalds/linux.git
synced 2026-10-17 14:30:03 +02:00
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> |
||
|---|---|---|
| .. | ||
| eeprom.c | ||
| eeprom.h | ||
| fwio.c | ||
| Kconfig | ||
| led.c | ||
| lmac.h | ||
| main.c | ||
| Makefile | ||
| p54.h | ||
| p54pci.c | ||
| p54pci.h | ||
| p54spi_eeprom.h | ||
| p54spi.c | ||
| p54spi.h | ||
| p54usb.c | ||
| p54usb.h | ||
| txrx.c | ||