Skip to content

ihex: add some bounds checking to firmware parsing

Dan Carpenter linux-input linux-media linux-watchdog lkml 1 version Applied

Status from this message: Applied, thank you.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3media: gspca: Add bounds checking to firmware parserdrivers/media/usb/gspca/vicam.c+8 -20 replies
2/3watchdog: ziirave_wdt: check record length in ziirave_firm_verify()drivers/watchdog/ziirave_wdt.c+3 -01 reply
3/3Input: ims-pcu - Check record size in ims_pcu_flash_firmware()drivers/input/misc/ims-pcu.c+6 -03 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchGuenetr Roeck
1/3
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] ihex: add some bounds checking to firmware parsing

These three patches go to different subsystems so hopefully the individual maintainers can apply them. I can resend them as individual patches if that's easier.

The ihex firmware code is a list of records of various lengths. The ihex code ensures that total length of the records doesn't read beyond the end of the fw->data[], however the parsers need to check that individual records are not too large.

Dan Carpenter (3):
media: gspca: Add bounds checking to firmware parser
watchdog: ziirave_wdt: check record length in ziirave_firm_verify()
Input: ims-pcu - Check record size in ims_pcu_flash_firmware()

 drivers/input/misc/ims-pcu.c    |  6 ++++++
 drivers/media/usb/gspca/vicam.c | 10 ++++++++--
 drivers/watchdog/ziirave_wdt.c  |  3 +++
 3 files changed, 17 insertions(+), 2 deletions(-)
Signature · 1 line
2.47.2