CVE-2026-80829

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
04/09/2026
Last modified:
19/10/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> ALSA: usb-audio: fix OOB write in snd_usbmidi_novation_output()<br /> <br /> snd_usbmidi_novation_output() lays out a two-byte header at<br /> transfer_buffer[0..1] and passes &amp;transfer_buffer[2] together with a<br /> length of ep-&gt;max_transfer - 2 to snd_rawmidi_transmit():<br /> <br /> count = snd_rawmidi_transmit(ep-&gt;ports[0].substream,<br /> &amp;transfer_buffer[2],<br /> ep-&gt;max_transfer - 2);<br /> <br /> ep-&gt;max_transfer comes from the output endpoint&amp;#39;s wMaxPacketSize via<br /> usb_maxpacket(). A malformed or malicious device can advertise a bulk<br /> OUT endpoint with a wMaxPacketSize of 1 - the USB core only clamps this<br /> value downwards - so ep-&gt;max_transfer becomes 1 and the count argument<br /> becomes -1.<br /> <br /> snd_rawmidi_transmit() passes the negative count on to<br /> __snd_rawmidi_transmit_peek(), where "if (count1 &gt; count) count1 = count"<br /> leaves count1 negative; get_aligned_size() keeps it negative for a<br /> byte-stream substream, so the following memcpy(buffer, ..., count1) runs<br /> with a (size_t)-1 length and writes far past the transfer buffer, which<br /> was allocated with usb_alloc_coherent(ep-&gt;max_transfer).<br /> <br /> This is the same class of bug that was fixed for snd_usbmidi_akai_output()<br /> in commit 0970274613fb ("ALSA: usb-audio: fix OOB write in<br /> snd_usbmidi_akai_output()"); the novation output routine was left<br /> unguarded. Bail out when the endpoint cannot hold the two-byte header<br /> plus at least one payload byte.

Impact