Skip to content

orinoco: improve robustness of firmware load

David Kilroy linux-wireless 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2orinoco: validate firmware headerdrivers/net/wireless/orinoco/fw.c+37 -00 replies
2/2orinoco: prevent accessing memory outside the firmware imagedrivers/net/wireless/orinoco/fw.c drivers/net/wireless/orinoco/hermes_dld.c drivers/net/wireless/orinoco/hermes_dld.h+67 -560 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] orinoco: improve robustness of firmware load

We don't currently do any verification of the firmware that we attempt to load, and it is possible to cause a kernel oops. For example, see
<http://marc.info/?l=orinoco-users&m=123411762524637>

This series introduces a few nominal checks to reject files which are incorrectly formatted, and then makes sure that we do not attempt to read data outside the firmware.

It is still possible to load a duff firmware. However it shouldn't be possible to cause any permanent damage. Hopefully it can't oops either.

---
David Kilroy (2):
orinoco: validate firmware header
orinoco: prevent accessing memory outside the firmware image

 drivers/net/wireless/orinoco/fw.c         |   49 +++++++++++++--
 drivers/net/wireless/orinoco/hermes_dld.c |   99 +++++++++++++++--------------
 drivers/net/wireless/orinoco/hermes_dld.h |   12 +++-
 3 files changed, 104 insertions(+), 56 deletions(-)