Ad

CVE-2026-80815

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

В ядре Linux устранена следующая уязвимость: ALSA: Scarlett2: используйте частный URB для конечной точки уведомления. Scarlett2_init_notify() использовала Mixer->urb, что snd_usb_mixer_status_create() выделяет для прерывания статуса UAC2 конечная точка и mix.c управляют. На устройстве с этой конечной точкой «уже используется» проверяет статус URB и возвращает 0 для успех, ничего не делая. Уведомление URB не подано, и cmd_done остается нулевым, поскольку он инициализируется после этой проверки и больше нигде. Scarlett2_usb_init() затем выдает SCARLETT2_USB_INIT_1. и wait_for_completion_timeout() приведет к сбою при добавлении к обнуленному значению. подожди.голова.

Используйте отдельный URB в Scarlett2_data, как это сделано для FCP, и инициализируйте cmd_done в Scarlett2_init_private(). Mixer.c также освобождал URB в snd_usb_mixer_free() и повторно отправив его в snd_usb_mixer_activate(), поэтому Scarlett2 теперь должен сделать и то, и другое: добавить Scarlett2_cleanup_urb(), вызываемый из Private_free и Private_suspend, и обратный вызов Private_resume для повторного установления URB после возобновления. Отсюда достигается Scarlett2_init_notify() и путь уничтожения URB. в Scarlett2_notify() завершает cmd_done, оставляя устаревший счетчик, который удовлетворит ожидание следующей команды до подтверждения устройства. Использование reinit_completion(), чтобы очистить его.

Также освободите URB, если выделение буфера передачи не удалось, и в обоих случаях, если usb_submit_urb() завершается с ошибкой. Переместите Scarlett2_init_notify() рядом с Scarlett2_cleanup_urb(), чтобы Scarlett2_init_private() мог ссылаться на него. без предварительного заявления.

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

In the Linux kernel, the following vulnerability has been resolved: ALSA: scarlett2: Use a private URB for the notification endpoint scarlett2_init_notify() used mixer->urb, which snd_usb_mixer_status_create() allocates for the UAC2 status interrupt endpoint and mixer.c manages. On a device with that endpoint, the "already in use" check fires on the status URB and returns 0 for success without doing anything. No notification URB is submitted, and cmd_done is left zeroed because it is initialised past that check and nowhere else. scarlett2_usb_init() then issues SCARLETT2_USB_INIT_1 and wait_for_completion_timeout() would crash adding to the zeroed wait.head. Use a separate URB in scarlett2_data, as done for FCP, and initialise cmd_done in scarlett2_init_private(). mixer.c was also freeing the URB in snd_usb_mixer_free() and resubmitting it in snd_usb_mixer_activate(), so scarlett2 must now do both: add scarlett2_cleanup_urb(), called from private_free and private_suspend, and a private_resume callback to re-establish the URB after resume. scarlett2_init_notify() is reached from there, and the URB kill path in scarlett2_notify() completes cmd_done, leaving a stale count that would satisfy the next command's wait before the device ACKs. Use reinit_completion() to clear it. Also free the URB if the transfer buffer allocation fails, and both if usb_submit_urb() fails. Move scarlett2_init_notify() up next to scarlett2_cleanup_urb() so scarlett2_init_private() can reference it without a forward declaration.