ALSA: usb-audio: Fix a DMA to stack memory bug
commit f7d306b4 upstream. The usb_get_descriptor() function does DMA so we're not allowed to use a stack buffer for that. Doing DMA to the stack is not portable all architectures. Move the "new_device_descriptor" from being stored on the stack and allocate it with kmalloc() instead. Fixes: b909df18 ("ALSA: usb-audio: Fix potential out-of-bound accesses for Extigy and Mbox devices") Cc: stable@kernel.org Signed-off-by:Dan Carpenter <dan.carpenter@linaro.org> Link: https://patch.msgid.link/60e3aa09-039d-46d2-934c-6f123026c2eb@stanley.mountain Signed-off-by:
Takashi Iwai <tiwai@suse.de> Signed-off-by:
Benoît Sevens <bsevens@google.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
mentioned in commit 44e0f5b6
-
mentioned in commit 5659b677
-
mentioned in commit 8bc4ea20
-
mentioned in commit bd6d8357
-
mentioned in commit bd6dda98
-
mentioned in commit 154abf75
-
mentioned in commit a6b6a852
-
mentioned in commit 9ace7db4
-
mentioned in commit 76a73c74
-
mentioned in commit 6b993e20
-
mentioned in commit 07e17f7f
-
mentioned in commit 0c8a6028
-
mentioned in commit 0d1aafb8
-
mentioned in commit 307db947
-
mentioned in commit 78ec0fb4
-
mentioned in commit 7999c942
-
mentioned in commit d5b129f3
-
mentioned in commit d894add4
-
mentioned in commit 18b357e8
-
mentioned in commit 1d39d3c6
-
mentioned in commit 11f76541
-
mentioned in commit 55cc0a78
-
mentioned in commit 77de9516
-
mentioned in commit eafd9f3e
-
mentioned in commit 04c6479f
-
mentioned in commit d2bcf2a2
-
mentioned in commit f68a69f6
-
mentioned in commit 49bd830e
-
mentioned in commit a73fa041
-
mentioned in commit 42d02110
-
mentioned in commit baecd141