Ad

CVE-2026-93805

NONE EPSS 0.17%
Обновлено 3 октября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux была устранена следующая уязвимость: wifi: cfg80211: проверка длины кадров обратного вызова rx/tx MLME перед доступом к точкам трассировки вызова cfg80211_rx_mlme_mgmt() и cfg80211_tx_mlme_mgmt() перед отказом от кадров короче поля управления кадром. После этого им требуется только len 2 перед отправкой в обработчики подтипов, которые предполагают, что их фиксированные поля присутствуют. Кадры, которые делают это, не короче 2 байт; они короткие относительно своего подтипа. mwifiex является конкретным примером в дереве со стороны длины: mwifiex_process_mgmt_packet() требует только 4-адресный ieee80211_hdr плюс 2-байтовый префикс длины прошивки, прежде чем передать кадр в cfg80211_rx_mlme_mgmt().

После снятия префикса длины и удаления addr4, pkt_len может быть ровно 24: голый 3-адресный заголовок управления без тела логического кода. Существующий WARN_ON(len < 2) не запускается на таком кадре, и cfg80211_process_deauth () затем читает u.deauth.reason_code как двухбайтовый доступ, начинающийся с смещения 24, сразу за 24-байтным буфером. Добавьте затвор длины управления кадром, а затем проверьте минимальный размер кадра каждого подтипа в цепочке if/else-if, которая отражает логику отправки.

След только после того, как рамка, как известно, хорошо сформирована. Побочные эффекты этого изменения: - The WARN_ON(len < 2) отбрасывается. Он только охранял чтение frame_control, никогда не фиксированные подтипы полей, и он не запускает фреймы, которые фактически вызывают чтение out-of-bounds (которые являются 2).

Проверка len 2 сохраняется в качестве защиты перед снятием ссылок на frame_control, но без предупреждения: это экспортируемые обратные вызовы, и искаженный кадр от драйвера должен быть удален молча, а не отслежен. - cfg80211_tx_mlme_mgmt () ранее маршрутизировал каждый не-подтип deauth через обработку диссоциации; теперь он молча игнорирует непризнанные подтипы.

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: wifi: cfg80211: validate rx/tx MLME callback frame lengths before access cfg80211_rx_mlme_mgmt() and cfg80211_tx_mlme_mgmt() call tracepoints before rejecting frames shorter than the frame-control field. After that, they only require len >= 2 before dispatching into subtype handlers that assume their fixed fields are present. The frames that trip this are not shorter than 2 bytes; they are short relative to their subtype. mwifiex is a concrete in-tree example on the length side: mwifiex_process_mgmt_packet() only requires a 4-address ieee80211_hdr plus the 2-byte firmware length prefix before handing the frame to cfg80211_rx_mlme_mgmt(). After stripping the length prefix and removing addr4, pkt_len can be exactly 24: a bare 3-address management header with no reason-code body. The existing WARN_ON(len < 2) does not fire on such a frame, and cfg80211_process_deauth() then reads u.deauth.reason_code as a two-byte access starting at offset 24, immediately past the 24-byte buffer. Add a frame-control length gate, then validate each subtype's minimum frame size in an if/else-if chain that mirrors the dispatch logic. Trace only after the frame is known to be well-formed. Side effects of this change: - The WARN_ON(len < 2) is dropped. It only guarded the frame_control read, never the subtype fixed fields, and it does not fire on the frames that actually trigger the out-of-bounds read (which are >= 2). The len >= 2 check is kept as the guard before dereferencing frame_control, but without the warning: these are exported callbacks and a malformed frame from a driver should be dropped silently rather than backtraced. - cfg80211_tx_mlme_mgmt() previously routed every non-deauth subtype through disassociation handling; it now silently ignores unrecognised subtypes.