В ядре Linux устранена следующая уязвимость:
HID: hid-thrustmaster: исправлено чтение стека за пределами границ в usb_check_int_endpoints()
Syzbot[1] обнаружил чтение массива ep_addr за пределами стека из
драйвер hid-thrustmaster. Этот массив передается в usb_check_int_endpoints.
функция из основного драйвера usb.c, которая выполняет цикл for, который выполняет итерацию
по элементам переданного массива. Не найти нулевой элемент в конце
массив, он пытается прочитать следующий, несуществующий элемент, приводя к сбою ядра.
Чтобы исправить это, в конце массива был добавлен элемент 0, чтобы разбить for.
петля.
[1] https://syzkaller.appspot.com/bug?extid=9c9179ac46169c56c1ad
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: HID: hid-thrustmaster: fix stack-out-of-bounds read in usb_check_int_endpoints() Syzbot[1] has detected a stack-out-of-bounds read of the ep_addr array from hid-thrustmaster driver. This array is passed to usb_check_int_endpoints function from usb.c core driver, which executes a for loop that iterates over the elements of the passed array. Not finding a null element at the end of the array, it tries to read the next, non-existent element, crashing the kernel. To fix this, a 0 element was added at the end of the array to break the for loop. [1] https://syzkaller.appspot.com/bug?extid=9c9179ac46169c56c1ad
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.6.76
|
6.6.79
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.12.13
|
6.12.16
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13.2
|
6.13.4
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*
|
— | — |