В ядре Linux устранена следующая уязвимость:
ALSA: caiaq: возьмите ссылку на USB-устройство в create_card(). Драйвер caiaq сохраняет указатель на родительское USB-устройство в
cdev->chip.dev, но никогда не использует ссылку на него. Карта
обратный вызов Private_free, snd_usb_caiaq_card_free(), может работать
асинхронно через snd_card_free_when_closed() после USB
устройство уже отключено и освобождено, поэтому любой доступ к
cdev->chip.dev по этому пути разыменовывает освобожденное usb_device.
Помимо проблемы пересчета, текущая реализация card_free
вызывает usb_reset_device(cdev->chip.dev). Сброс в бесплатном обратном звонке
неуместно: устройство уходит, звонок принимает
блокировка устройства в контексте демонтажа, и сброс происходит с
отсоединить путь, после которого обратный вызов уже очищает. Возьмите ссылку на USB-устройство в create_card() с помощью
usb_get_dev(), отбросьте его с помощью usb_put_dev() в бесплатном обратном вызове,
и удалите вызов usb_reset_device().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ALSA: caiaq: take a reference on the USB device in create_card() The caiaq driver stores a pointer to the parent USB device in cdev->chip.dev but never takes a reference on it. The card's private_free callback, snd_usb_caiaq_card_free(), can run asynchronously via snd_card_free_when_closed() after the USB device has already been disconnected and freed, so any access to cdev->chip.dev in that path dereferences a freed usb_device. On top of the refcounting issue, the current card_free implementation calls usb_reset_device(cdev->chip.dev). A reset in a free callback is inappropriate: the device is going away, the call takes the device lock in a teardown context, and the reset races with the disconnect path that the callback is already cleaning up after. Take a reference on the USB device in create_card() with usb_get_dev(), drop it with usb_put_dev() in the free callback, and remove the usb_reset_device() call.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.25
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.2
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:-:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |