В ядре Linux была устранена следующая уязвимость: HID: roccat: bound device-supplied profile index kone_keep_values_up_to_date() и kone_profile_activated() используют 8-битное, поставляемое устройством значение профиля в качестве индекса в 5-элементном массиве kone->profiles[] без проверки диапазона. Вредоносное устройство USB, претендующее на идентификатор Roccat Kone, может отправить событие профиля коммутатора (или startup_profile, прочитанное при зондировании) со значением out-of-range и заставить драйвер читать за пределами; результат отображается через атрибут sysfs actual_dpi. Отклонить индексы out-of-range в обоих направлениях.
Это было обнаружено при статическом анализе и подтверждено тестом KUnit, добавленным в следующий патч (KASAN: slab-out-of-bounds).
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: HID: roccat: bound device-supplied profile index kone_keep_values_up_to_date() and kone_profile_activated() use an 8-bit, device-supplied profile value as an index into the 5-element kone->profiles[] array without a range check. A malicious USB device claiming the Roccat Kone id can send a switch-profile event (or a startup_profile read at probe) with an out-of-range value and make the driver read out of bounds; the result is exposed via the actual_dpi sysfs attribute. Reject out-of-range indices in both paths. This was found with static analysis and confirmed with the KUnit test added in the following patch (KASAN: slab-out-of-bounds).
Уязвимые продукты 8
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.35
|
5.10.270
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.35
|
5.15.221
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.35
|
6.1.188
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.35
|
6.6.157
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.35
|
6.12.110
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.35
|
6.18.52
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.35
|
7.2.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.35
|
7.3-rc1
|