diff options
author | 2012-02-14 05:18:48 -0500 | |
---|---|---|
committer | 2012-02-15 14:58:15 +0100 | |
commit | 8866f405efd4171f9d9c91901d2dd02f01bacb60 (patch) | |
tree | 414b07ed6d979f9aad804dc16b4f280247741eaf /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | ALSA: intel8x0: Fix default inaudible sound on Gateway M520 (diff) | |
download | wireguard-linux-8866f405efd4171f9d9c91901d2dd02f01bacb60.tar.xz wireguard-linux-8866f405efd4171f9d9c91901d2dd02f01bacb60.zip |
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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions