В ядре Linux устранена следующая уязвимость:
Bluetooth: hci_event: исправлено внеплановое чтение и бесконечный цикл в hci_le_create_big_complete_evt.
hci_le_create_big_complete_evt() перебирает соединения BT_BOUND для
БОЛЬШОЙ дескриптор с использованием цикла while, доступ к ev->bis_handle[i++] для каждого
итерация. Однако нет никакой проверки того, что я остаюсь в пределах ev->num_bis.
перед доступом к массиву. Когда контроллер отправляет событие LE_Create_BIG_Complete с меньшим количеством
bis_handle, чем есть соединения BT_BOUND для этого BIG,
или с num_bis=0 цикл читает за пределами допустимого гибкого параметра bis_handle[]
массив в соседнюю кучу памяти.
Поскольку значения за пределами границ
обычно превышает HCI_CONN_HANDLE_MAX (0x0EFF), hci_conn_set_handle()
отклоняет их, и соединение остается в состоянии BT_BOUND. То же самое
затем соединение снова находится с помощью hci_conn_hash_lookup_big_state(),
создание бесконечного цикла с удержанием hci_dev_lock. Исправьте это, отключив BIG, если не все BIS могут быть настроены.
правильно.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_event: Fix OOB read and infinite loop in hci_le_create_big_complete_evt hci_le_create_big_complete_evt() iterates over BT_BOUND connections for a BIG handle using a while loop, accessing ev->bis_handle[i++] on each iteration. However, there is no check that i stays within ev->num_bis before the array access. When a controller sends a LE_Create_BIG_Complete event with fewer bis_handle entries than there are BT_BOUND connections for that BIG, or with num_bis=0, the loop reads beyond the valid bis_handle[] flex array into adjacent heap memory. Since the out-of-bounds values typically exceed HCI_CONN_HANDLE_MAX (0x0EFF), hci_conn_set_handle() rejects them and the connection remains in BT_BOUND state. The same connection is then found again by hci_conn_hash_lookup_big_state(), creating an infinite loop with hci_dev_lock held. Fix this by terminating the BIG if in case not all BIS could be setup properly.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.4.16
|
6.5
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.5.3
|
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:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |