Ad

CVE-2026-99608

NONE EPSS 0.18%
Обновлено 23 ноября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux была устранена следующая уязвимость: ALSA: usx2y: Guard копия воспроизведения usx2y_urb_play_prepare() суммирует длины пакетов целого URB, копирует множество кадров с одной обёрткой, и размер каждого пакета воспроизведения из actual_length пакета захвата. Три вещи не проверяются: что URB вписывается в буфер кольца, что пакет вписывается в макспакиз конечной точки воспроизведения, из которого выделяется tmpbuf, и что actual_length представляет собой целое количество кадров. Дескрипторы ISO принимают необработанный actual_length, в то время как transfer_buffer_length и копии принимают число * шаг, поэтому пакет, который не является кратным шагу, заставляет дескрипторы добавлять больше, чем буфер, вплоть до шага - 1 байт на пакет.

Возврат -EPIPE, как и в случае существующей проверки размера пакета, когда URB больше, чем буфер, или пакет больше, чем maxpacksize, и размер каждого дескриптора из целых кадров, так что дескрипторы складываются в transfer_buffer_length, и каждый остается в пределах maxpacksize. Буферный чехол предотвращается предыдущим патчем, и это защитное приспособление для него; другие два зависят только от устройства. The first case is reachable on the unpatched driver with ordinary packets: on 7.3-rc7, a USB/IP device presenting the US-122 interface layout and sending 48-frame packets, with a 100-frame playback buffer (two 50-frame periods, inside the stock constraints), KASAN reports: BUG: KASAN: out-of-bounds in i_usx2y_urb_complete+0x79b/0x1ac0 Read of size 18446744073709551280 at addr ffff88800e6b02e0 by task vhci_rx/80 With both patches, the same device and a 200-frame playback buffer is refused at hw_params with EINVAL, and a 400-frame buffer plays for 30 s with the position advancing inside the buffer, no KASAN report and neither guard message.

Проверка maxpacksize не выполняется: эмулируемое устройство сообщает об одном и том же wMaxPacketSize на обеих конечных точках. Случай дескриптора виден с пакетами захвата 195 байт на шаге 4 (48 кадров и 3 байта): без этого изменения четыре дескриптора добавляют до 780 байт для 768 байт данных, а проверка завершения USB / IP отказывает URB («общая длина пакетов iso 780 не равна фактической длине буфера 768», -EPROTO), после чего драйвер останавливает потоки. С этим патчем каждый дескриптор составляет 192 байта, дескрипторы добавляются к данным в каждом URB в течение 30 секунд, позиция продвигается внутри буфера, и KASAN ничего не сообщает. 48-кадровое воспроизведение, запущенное выше, не изменилось.

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: ALSA: usx2y: Guard the playback copy usx2y_urb_play_prepare() sums the packet lengths of a whole URB, copies that many frames with a single wrap, and sizes each playback packet from the capture packet's actual_length. Three things are unchecked: that the URB fits in the ring buffer, that a packet fits in the playback endpoint's maxpacksize, from which tmpbuf is allocated, and that actual_length is a whole number of frames. The ISO descriptors take the raw actual_length while transfer_buffer_length and the copies take count * stride, so a packet that is not a multiple of the stride makes the descriptors add up to more than the buffer, by up to stride - 1 bytes per packet. Return -EPIPE, as the existing packet-size check does, when the URB is larger than the buffer or a packet is larger than maxpacksize, and size each descriptor from whole frames, so the descriptors add up to transfer_buffer_length and each stays within maxpacksize. The buffer case is prevented by the previous patch and this is the guard for it; the other two depend only on the device. The first case is reachable on the unpatched driver with ordinary packets: on 7.3-rc7, a USB/IP device presenting the US-122 interface layout and sending 48-frame packets, with a 100-frame playback buffer (two 50-frame periods, inside the stock constraints), KASAN reports: BUG: KASAN: out-of-bounds in i_usx2y_urb_complete+0x79b/0x1ac0 Read of size 18446744073709551280 at addr ffff88800e6b02e0 by task vhci_rx/80 With both patches, the same device and a 200-frame playback buffer is refused at hw_params with EINVAL, and a 400-frame buffer plays for 30 s with the position advancing inside the buffer, no KASAN report and neither guard message. The maxpacksize check is not exercised: the emulated device reports the same wMaxPacketSize on both endpoints. The descriptor case is visible with capture packets of 195 bytes at stride 4 (48 frames and 3 bytes): without this change the four descriptors add up to 780 bytes for 768 bytes of data, and USB/IP's completion check refuses the URB ("total length of iso packets 780 not equal to actual length of buffer 768", -EPROTO), after which the driver stops the streams. With this patch every descriptor is 192 bytes, the descriptors add up to the data in every URB for 30 s, the position advances inside the buffer and KASAN reports nothing. The 48-frame playback run above is unchanged.