Harden USB-audio parsers
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | ALSA: usb-audio: Add sanity checks to FE parsersound/ | +12 | 0 replies | |
| 2/4 | ALSA: usb-audio: Fix potential out-of-bound access at parsing SUsound/ | +2 | 0 replies | |
| 3/4 | ALSA: usb-audio: Fix potential zero-division at parsing FUsound/ | +2 | 0 replies | |
| 4/4 | ALSA: usb-audio: Add sanity checks in v2 clock parserssound/ | +6 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] Harden USB-audio parsers
Hi,
as recently spotted by syzkaller, the parser codes in USB audio driver don't check the length of the descriptor unit before actually accessing the extra field, which may lead to out-of-bound access error. This patchset tries to address these by adding proper sanity checks.
Takashi
===
Takashi Iwai (4):
ALSA: usb-audio: Add sanity checks to FE parser
ALSA: usb-audio: Fix potential out-of-bound access at parsing SU
ALSA: usb-audio: Fix potential zero-division at parsing FU
ALSA: usb-audio: Add sanity checks in v2 clock parsers
sound/usb/clock.c | 9 ++++++--- sound/usb/mixer.c | 19 ++++++++++++++++--- 2 files changed, 22 insertions(+), 6 deletions(-)
Signature · 1 line
2.15.0