В ядре Linux устранена следующая уязвимость:
wifi: wilc1000: проверить длину ответа ассоциированного устройства перед вычитанием заголовка
wilc_parse_assoc_resp_info() вычисляет конечную длину IE как
ies_len = buffer_len - sizeof(*res);
без предварительной проверки того, что buffer_len имеет размер не ниже sizeof(struct
wilc_assoc_resp) (6 байт). buffer_len — это длина, сообщаемая для
получен ответ ассоциации (host_int_parse_assoc_resp_info() передает
hif_drv->assoc_resp / assoc_resp_info_len прямо) и должен быть
проверяется до того, как драйвер получит доступ к фиксированному заголовку. Для кадра короче 6-байтового фиксированного заголовка вычитание завершается. Для четырехбайтового ответа результат усекается до u16 ies_len
65534, поэтому kmemdup() пытается скопировать 65534 байта, начиная с
буфер + sizeof(*res), за пределами допустимых данных ответа ассоциации
(CWE-125).
Ответ короче четырех байтов также может вызвать
чтение за пределами границ res->status_code по смещениям 2 и 3. Отклонять кадры, слишком короткие, чтобы удерживать фиксированный заголовок перед касанием
заголовок или вычисление ies_len. Также установите статус соединения на сбой
на этом пути: вызывающий абонент попадает в
проверка "conn_info->status == WLAN_STATUS_SUCCESS" после парсера
возвращается, поэтому если оставить статус нетронутым, это может привести к неправильному короткому замыканию.
ответ можно рассматривать как успешную ассоциацию.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: wifi: wilc1000: validate assoc response length before subtracting header wilc_parse_assoc_resp_info() computes the trailing IE length as ies_len = buffer_len - sizeof(*res); without first checking that buffer_len is at least sizeof(struct wilc_assoc_resp) (6 bytes). buffer_len is the length reported for a received association response (host_int_parse_assoc_resp_info() passes hif_drv->assoc_resp / assoc_resp_info_len straight in) and must be validated before the driver accesses the fixed header. For a frame shorter than the 6-byte fixed header, the subtraction wraps. For a four-byte response the result is truncated to a u16 ies_len of 65534, so kmemdup() then attempts to copy 65534 bytes starting at buffer + sizeof(*res), beyond the valid association-response data (CWE-125). A response shorter than four bytes can also cause an out-of-bounds read of res->status_code at offsets 2 and 3. Reject frames too short to hold the fixed header before touching the header or computing ies_len. Also set the connection status to a failure on this path: the caller falls through to a "conn_info->status == WLAN_STATUS_SUCCESS" check after the parser returns, so leaving the status untouched could let a malformed short response be treated as a successful association.
Характеристики атаки
Последствия
Строка CVSS v3.1