В ядре Linux устранена следующая уязвимость:
wifi: rtlwifi: rtl8192du: проверьте TID QoS перед индексацией tids
rtl92du_tx_fill_desc() использует ieee80211_get_tid() для чтения QoS TID
из заголовка 802.11, а затем использует его как индекс в
sta_entry->tids[]. ieee80211_get_tid() возвращает нижний 4-битный TID QoS.
значение, поэтому результат может находиться в диапазоне 0..15.
rtlwifi выделяет только записи MAX_TID_COUNT для sta_entry->tids[] и
MAX_TID_COUNT равен 9. QoS TID больше 8, поэтому индексация выходит за пределы
массив состояний агрегации. Сохраните состояние RTL_AGG_STOP по умолчанию для
TID вне диапазона, соответствующие rtl92cu_tx_fill_desc().
Эта проблема была обнаружена нашим инструментом статического анализа и подтверждена
ручной аудит. Проверка UBSAN для того же шаблона ошибок сообщает
доступ к индексу массива за пределами границ с индексом 10 для типа
'rtl_tid_data [9]'.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: wifi: rtlwifi: rtl8192du: check QoS TID before indexing tids rtl92du_tx_fill_desc() uses ieee80211_get_tid() to read the QoS TID from the 802.11 header and then uses it as an index into sta_entry->tids[]. ieee80211_get_tid() returns the low 4-bit QoS TID value, so the result can be in the range 0..15. rtlwifi only allocates MAX_TID_COUNT entries for sta_entry->tids[], and MAX_TID_COUNT is 9. A QoS TID greater than 8 therefore indexes past the aggregation state array. Keep the default RTL_AGG_STOP state for out-of-range TIDs, matching rtl92cu_tx_fill_desc(). This issue was detected by our static analysis tool and confirmed by manual audit. UBSAN validation for the same bug pattern reports an array-index-out-of-bounds access with index 10 for type 'rtl_tid_data [9]'.
Характеристики атаки
Последствия
Строка CVSS v3.1