Home
last modified time | relevance | path

Searched hist:"8866 f405efd4171f9d9c91901d2dd02f01bacb60" (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/sound/usb/
H A Dformat.cdiff 8866f405efd4171f9d9c91901d2dd02f01bacb60 Tue Feb 14 04:18:48 CST 2012 Xi Wang <xi.wang@gmail.com> ALSA: usb-audio: avoid integer overflow in create_fixed_stream_quirk()

A malicious USB device could feed in a large nr_rates value. This would
cause the subsequent call to kmemdup() to allocate a smaller buffer than
expected, leading to out-of-bounds access.

This patch validates the nr_rates value and reuses the limit introduced
in commit 4fa0e81b ("ALSA: usb-audio: fix possible hang and overflow
in parse_uac2_sample_rate_range()").

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
H A Dcard.hdiff 8866f405efd4171f9d9c91901d2dd02f01bacb60 Tue Feb 14 04:18:48 CST 2012 Xi Wang <xi.wang@gmail.com> ALSA: usb-audio: avoid integer overflow in create_fixed_stream_quirk()

A malicious USB device could feed in a large nr_rates value. This would
cause the subsequent call to kmemdup() to allocate a smaller buffer than
expected, leading to out-of-bounds access.

This patch validates the nr_rates value and reuses the limit introduced
in commit 4fa0e81b ("ALSA: usb-audio: fix possible hang and overflow
in parse_uac2_sample_rate_range()").

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
H A Dquirks.cdiff 8866f405efd4171f9d9c91901d2dd02f01bacb60 Tue Feb 14 04:18:48 CST 2012 Xi Wang <xi.wang@gmail.com> ALSA: usb-audio: avoid integer overflow in create_fixed_stream_quirk()

A malicious USB device could feed in a large nr_rates value. This would
cause the subsequent call to kmemdup() to allocate a smaller buffer than
expected, leading to out-of-bounds access.

This patch validates the nr_rates value and reuses the limit introduced
in commit 4fa0e81b ("ALSA: usb-audio: fix possible hang and overflow
in parse_uac2_sample_rate_range()").

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>