В ядре Linux устранена следующая уязвимость:
Bluetooth: virtio_bt: проверить длину заголовка rx pkt_type
virtbt_rx_handle() считывает первый байт pkt_type из RX skb.
и пересылает остаток в hci_recv_frame() для каждого
тип события/ACL/SCO/ISO, не проверяя, что оставшаяся полезная нагрузка
это как минимум фиксированный заголовок HCI для этого типа. После того, как предыдущий патч ограничивает предоставленный серверной частью файл Used.len
[1, VIRTBT_RX_BUF_SIZE], однобайтовое завершение все еще достигает
hci_recv_frame() с skb->len, уже установленным в 0. Если байт
оказался HCI_ACLDATA_PKT, классификация ACL-vs-ISO
быстрый путь в разыменованиях hci_dev_classify_pkt_type()
hci_acl_hdr(skb)->обрабатывать всякий раз, когда устройство HCI имеет активный
Соединение CIS_LINK, BIS_LINK или PA_LINK, чтение двух байтов
неинициализированные данные RX-буфера.
Одна и та же опасность существует для каждого
тип пакета, который принимает драйвер, поскольку ни один из случаев переключения в
virtbt_rx_handle() проверяет skb->len на соответствие минимальному HCI для каждого типа
размер заголовка перед передачей кадра в ядро. После удаления pkt_type потребуется skb->len, чтобы закрыть фиксированный
размер заголовка для выбранного типа (событие 2, ACL 4, SCO 3, ISO 4)
перед вызовом hci_recv_frame(); в противном случае скорость падения ограничена. Неизвестные значения pkt_type по-прежнему принимают исходное значение по умолчанию kfree_skb().
путь.
Используйте bt_dev_err_ratelimited(), потому что и длина, и pkt_type
значения поступают из ненадежного бэкэнда, который в противном случае может затопить
журнал ядра.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: virtio_bt: validate rx pkt_type header length virtbt_rx_handle() reads the leading pkt_type byte from the RX skb and forwards the remainder to hci_recv_frame() for every event/ACL/SCO/ISO type, without checking that the remaining payload is at least the fixed HCI header for that type. After the preceding patch bounds the backend-supplied used.len to [1, VIRTBT_RX_BUF_SIZE], a one-byte completion still reaches hci_recv_frame() with skb->len already pulled to 0. If the byte happened to be HCI_ACLDATA_PKT, the ACL-vs-ISO classification fast-path in hci_dev_classify_pkt_type() dereferences hci_acl_hdr(skb)->handle whenever the HCI device has an active CIS_LINK, BIS_LINK, or PA_LINK connection, reading two bytes of uninitialized RX-buffer data. The same hazard exists for every packet type the driver accepts because none of the switch cases in virtbt_rx_handle() check skb->len against the per-type minimum HCI header size before handing the frame to the core. After stripping pkt_type, require skb->len to cover the fixed header size for the selected type (event 2, ACL 4, SCO 3, ISO 4) before calling hci_recv_frame(); drop ratelimited otherwise. Unknown pkt_type values still take the original kfree_skb() default path. Use bt_dev_err_ratelimited() because both the length and pkt_type values come from an untrusted backend that can otherwise flood the kernel log.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 15
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.15.78
|
5.15.209
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.0.8
|
6.1
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.1.1
|
6.1.175
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.140
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.88
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.30
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.7
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:-:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:rc7:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:rc8:*:*:*:*:*:*
|
— | — |
|
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:*:*:*:*:*:*
|
— | — |