В ядре Linux устранена следующая уязвимость:
Staging: rtl8723bs: исправлено недополнение длины WEP и чтение OOB в OnAuth().
OnAuth() имеет две ошибки в пути аутентификации с общим ключом. Когда бит конфиденциальности установлен, rtw_wep_decrypt() вызывается без
проверка того, что кадр достаточно длинный, чтобы содержать действительный WEP IV, и
ICV. Внутри rtw_wep_decrypt() длина вычисляется как:
длина = len - WLAN_HDR_A3_LEN - iv_len
а затем передается как (длина - 4) в crc32_le().
Если len меньше
WLAN_HDR_A3_LEN + iv_len + icv_len (32 байта), длина - 4 отрицательна
и после неявного приведения к size_t заставляет crc32_le() читать далеко
за пределами буфера кадра. Добавьте проверку минимальной длины перед доступом
поле IV и вызов пути расшифровки. При обработке ответа seq=3 функция rtw_get_ie() сохраняет вызов.
Длина текста IE в ie_len, но последующий memcmp() всегда читает 128
байт независимо от ie_len. IEEE 802.11 требует текст запроса
ровно 128 байт; отклонять любой IE, поле длины которого отличается, сопоставляя
проверка уже применена к OnAuthClient().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix WEP length underflow and OOB read in OnAuth() OnAuth() has two bugs in the shared-key authentication path. When the Privacy bit is set, rtw_wep_decrypt() is called without verifying that the frame is long enough to contain a valid WEP IV and ICV. Inside rtw_wep_decrypt(), length is computed as: length = len - WLAN_HDR_A3_LEN - iv_len and then passed as (length - 4) to crc32_le(). If len is less than WLAN_HDR_A3_LEN + iv_len + icv_len (32 bytes), length - 4 is negative and, after the implicit cast to size_t, causes crc32_le() to read far beyond the frame buffer. Add a minimum length check before accessing the IV field and calling the decryption path. When processing a seq=3 response, rtw_get_ie() stores the Challenge Text IE length in ie_len, but the subsequent memcmp() always reads 128 bytes regardless of ie_len. IEEE 802.11 mandates a challenge text of exactly 128 bytes; reject any IE whose length field differs, matching the check already applied to OnAuthClient().
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 9
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.12
|
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:7.2:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.2:rc2:*:*:*:*:*:*
|
— | — |