В ядре Linux устранена следующая уязвимость:
Ввод: usbtouchscreen — привязать NEXIO data_len/x_len к размеру буфера URB.
nexio_read_data() извлекает data_len и x_len из упакованного заголовка __be16.
в пакете прерывания устройства, а затем идет package->data[0..x_len)
и package->data[x_len..data_len), сравнивая каждый байт с
порог. Оба поля имеют 16-битную длину (максимум 65535). Существующие
корректировки срезают не более 0x100/0x80, поэтому привязка цикла все еще может
достичь примерно 0xfeff.
Буфер передачи URB для NEXIO имеет значение rept_size.
(1024) байт из usb_alloc_coherent(), причем первые 7 заняты
упакованный заголовок — поэтому package->data[] имеет 1017 допустимых байт. read_data()
обратные вызовы не задаются urb->actual_length, и ничто другое не ограничивает
ходить. Устройство, длина которого не соответствует его длине, может получить чтение за пределами границ ~64 КиБ.
после согласованного распределения DMA. Первый индекс, байт которого превышает
NEXIO_THRESHOLD попадает в начало_x/begin_y и оттуда в
сообщал координаты касания, поэтому содержимое соседней памяти ядра просачивалось в
пользовательское пространство как события ABS_X/ABS_Y.
Достаточно далеко, чтение также может
попал на несопоставленную страницу и произошел сбой. Исправьте все это, привязав data_len к емкости data[] буфера и
x_len в data_len.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: Input: usbtouchscreen - clamp NEXIO data_len/x_len to URB buffer size nexio_read_data() pulls data_len and x_len from a packed __be16 header in the device's interrupt packet and then walks packet->data[0..x_len) and packet->data[x_len..data_len) comparing each byte against a threshold. Both fields are 16-bit on the wire (max 65535). The existing adjustments shave at most 0x100 / 0x80 off, so the loop bound can still reach roughly 0xfeff. The URB transfer buffer for NEXIO is rept_size (1024) bytes from usb_alloc_coherent(), with the first 7 occupied by the packed header — so packet->data[] has 1017 valid bytes. read_data() callbacks are not given urb->actual_length, and nothing else bounds the walk. A device that lies about its length can get a ~64 KiB out-of-bounds read past the coherent DMA allocation. The first index whose byte exceeds NEXIO_THRESHOLD lands in begin_x / begin_y and from there into the reported touch coordinates, so adjacent kernel memory contents leak to userspace as ABS_X / ABS_Y events. Far enough out, the read can also hit an unmapped page and fault. Fix this all by clamping data_len to the buffer's data[] capacity and x_len to data_len.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 12
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.34
|
5.10.259
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.210
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.176
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.143
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.93
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.35
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.12
|
|
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:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*
|
— | — |