orinoco: improve robustness of firmware load
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 0 repliesNew
- v12 patches 3 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | orinoco: validate firmware headerdrivers/ | +37 | 0 replies | |
| 2/2 | orinoco: prevent accessing memory outside the firmware imagedrivers/ drivers/ drivers/ | +67 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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.
Signed-off-by David Kilroy <[email protected]>
---
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(-)