diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-07-05 16:46:01 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-07-05 12:14:19 +0200 |
| commit | aba30af07d4fe499b50209801eba9da8a815522f (patch) | |
| tree | b9355957362cb1784365c4cd46d8da72d00da469 /scripts/Makefile.thinlto | |
| parent | 742a87fa54ad7123bff41bd1aa149fef6929a7af (diff) | |
ALSA: usb-audio: caiaq: validate EP1 reply lengths
usb_ep1_command_reply_dispatch() uses buf[0] as a command byte and then
reads command-specific fixed items from the same URB buffer. Several
paths use buf + 1, buf[1], buf[2], or buf + 3 without first proving that
urb->actual_length contains those bytes.
Add per-command length checks, use a payload length derived from the
bytes after the command byte for the control-state copy, and reject short
analog input payloads before the input helper reads fixed offsets from
the EP1 reply.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260705084601.56400-1-pengpeng@iscas.ac.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
