summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorTristan Madani <tristan@talencesecurity.com>2026-09-04 20:58:26 +0000
committerTakashi Iwai <tiwai@suse.de>2026-09-06 10:10:52 +0200
commit8f5ef203abda9dd36b2af473c7b737d544f807bd (patch)
tree53a7e095b2bc95f413663d7993c382d4dfca4f63 /scripts/Makefile.thinlto
parent861111a14740e12c36d363e9830f8daa734279c9 (diff)
downloadlinux-8f5ef203abda9dd36b2af473c7b737d544f807bd.tar.gz
linux-8f5ef203abda9dd36b2af473c7b737d544f807bd.zip
ALSA: usbusx2y: validate URB actual_length in interrupt callback
i_usx2y_in04_int() processes the interrupt URB data without checking urb->actual_length. A short transfer from a malfunctioning device would cause the handler to process uninitialized heap data from the kmalloc-allocated in04_buf, which is then copied to the mmap-accessible ctl_snapshot[] array. Fix by using kzalloc() for in04_buf to zero-initialize the buffer, and adding an actual_length check to skip processing on short transfers while still resubmitting the URB. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable@vger.kernel.org Signed-off-by: Tristan Madani <tristan@talencesecurity.com> Link: https://patch.msgid.link/20260904205826.4071119-2-tristmd@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions