Skip to content

ALSA: usb-audio: fix OOB and return value check

Jaejoong Kim alsa-devel stable 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Changes return value check for second patch (by Takashi Iwai)
- In case of failure case, return 0 not negative value (by Takashi Iwai)
- Put an explicit error and bail out (by Takashi Iwai)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2ALSA: usb-audio: Fix out-of-bound errorsound/usb/mixer.c+4 -01 reply
2/2ALSA: usb-audio: Add check return value for usb_string()sound/usb/mixer.c+5 -41 reply

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] ALSA: usb-audio: fix OOB and return value check

Hi,

This patch series fixes the out-of-bound error caused by the return value of usb_string(). It was descovered by KASAN.

KASAN OOB warning meesage was founded by connecting the following product.
http://www.lg.com/uk/lg-friends/lg-AFD-1200

Changes in v2:
- Changes return value check for second patch (by Takashi Iwai)
- In case of failure case, return 0 not negative value (by Takashi Iwai)
- Put an explicit error and bail out (by Takashi Iwai)

Thanks
jaejoong

Jaejoong Kim (2):
ALSA: usb-audio: Fix out-of-bound error
ALSA: usb-audio: Add check return value for usb_string()

 sound/usb/mixer.c | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
Signature · 1 line
2.7.4