Ad

CVE-2026-99469

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

В ядре Linux устранена следующая уязвимость: media: gspca: use vb2_video_unregister_device() on disconnect gspca использует vb2_fop_release(), но gspca_disconnect() только отменяет регистрацию видеоустройства. Если владелец очереди закрывает устройство после отключения USB, vb2_fop_release() освобождает очередь и вызывает gspca_stop_streaming() в этот момент. gspca_stream_off() вызывает subdriver stop callbacks и usb_set_interface() через gspca_dev->dev. К тому времени, когда завершается закрытие, ядро USB может освободить usb_device, в результате чего появится use-after-free.

Это наблюдалось как KASAN use-after-free в sd_stopN(). Используйте vb2_video_unregister_device(), чтобы очередь освобождалась, и потоковая передача прекращалась синхронно во время отключения, в то время как usb_device по-прежнему действителен. Поскольку помощник принимает блокировку очереди, которая является usb_lock, вызовите ее после удаления этой блокировки.

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

In the Linux kernel, the following vulnerability has been resolved: media: gspca: use vb2_video_unregister_device() on disconnect gspca uses vb2_fop_release(), but gspca_disconnect() only unregisters the video device. If the queue owner closes the device after USB disconnect, vb2_fop_release() releases the queue and invokes gspca_stop_streaming() at that point. gspca_stream_off() calls subdriver stop callbacks and usb_set_interface() through gspca_dev->dev. By the time the late close runs, the USB core can have freed the usb_device, resulting in a use-after-free. This was observed as a KASAN use-after-free in sd_stopN(). Use vb2_video_unregister_device() so the queue is released and streaming is stopped synchronously during disconnect, while the usb_device is still valid. Since the helper takes the queue lock, which is usb_lock, call it after dropping that lock.