В ядре Linux устранена следующая уязвимость:
Ввод: ti_am335x_tsc — исправить ошибку отклонения на единицу при проверке Wire_order. Текущая проверка «wire_order[i] > ARRAY_SIZE(config_pins)» позволяет
Wire_order[i] равен ARRAY_SIZE(config_pins), что приводит к выходу за пределы
доступ при использовании в качестве индекса в «config_pins[wire_order[i]]». Поскольку config_pins имеет 4 элемента (индексы 0–3), допустимый диапазон для
Wire_order должно быть 0-3.
Исправьте ошибку отклонения на единицу, используя вместо этого >= of > в проверке проверки.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: Input: ti_am335x_tsc - fix off-by-one error in wire_order validation The current validation 'wire_order[i] > ARRAY_SIZE(config_pins)' allows wire_order[i] to equal ARRAY_SIZE(config_pins), which causes out-of-bounds access when used as index in 'config_pins[wire_order[i]]'. Since config_pins has 4 elements (indices 0-3), the valid range for wire_order should be 0-3. Fix the off-by-one error by using >= instead of > in the validation check.