+21
−10
Loading
mainline inclusion from mainline-v6.13-rc2 commit f7d306b47a24367302bd4fe846854e07752ffcd9 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IBEAFE CVE: CVE-2024-53197 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f7d306b47a24367302bd4fe846854e07752ffcd9 -------------------------------- 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: e7afa75245b6 ("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> Conflicts: sound/usb/quirks.c [The conflict is due to the patch b01104fc for mbox3 support was not merged yet] Signed-off-by:
Tengda Wu <wutengda2@huawei.com>