В ядре Linux устранена следующая уязвимость:
Ввод: Synaptics-rmi4 — привязал раскладку клавиш F30 к количеству GPIO/LED.
rmi_f30_map_gpios() выделяет gpioled_key_map с
min(gpioled_count, TRACKSTICK_RANGE_END) == не более 6 записей, но
rmi_f30_attention() повторяет полный f30->gpioled_count (запрос устройства
регистр, диапазон 0..31) и разыменовывает gpioled_key_map[i], и
input->keycodemax установлен на полный gpioled_count, а input->keycode
баллы при распределении из 6 записей. Устройство, которое сообщает gpioled_count > 6 с включенной поддержкой GPIO.
поэтому вызывает чтение за пределами границ при прерывании внимания и
чтение/запись за пределами границ с помощью ioctls EVIOCGKEYCODE/EVIOCSKEYCODE,
который связывал индекс только с keycodemax. Это тот самый дефект
в качестве обработчика F3A, скопированного из F30.
Размер раскладки клавиатуры для полного gpioled_count; цикл отображения все еще
назначает только первые записи min(gpioled_count, TRACKSTICK_RANGE_END).
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: Input: synaptics-rmi4 - bound the F30 keymap to the GPIO/LED count rmi_f30_map_gpios() allocates gpioled_key_map with min(gpioled_count, TRACKSTICK_RANGE_END) == at most 6 entries, but rmi_f30_attention() iterates the full f30->gpioled_count (device query register, range 0..31) and dereferences gpioled_key_map[i], and input->keycodemax is set to the full gpioled_count while input->keycode points at the 6-entry allocation. A device that reports gpioled_count > 6 with GPIO support enabled therefore causes an out-of-bounds read on the attention interrupt and out-of-bounds read/write through the EVIOCGKEYCODE/EVIOCSKEYCODE ioctls, which bound the index only against keycodemax. This is the same defect as the F3A handler, which was copied from F30. Size the keymap for the full gpioled_count; the mapping loop still assigns only the first min(gpioled_count, TRACKSTICK_RANGE_END) entries.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 10
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.14.1
|
5.10.261
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.212
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.178
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.145
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.96
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.39
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.1.4
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:4.14:-:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:4.14:rc7:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:4.14:rc8:*:*:*:*:*:*
|
— | — |