Ad

CVE-2026-98810

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

В ядре Linux была устранена следующая уязвимость: wifi: mac80211: fix slab-out-of-bounds read in ieee80211_monitor_select_queue() ieee80211_monitor_select_queue() проверяет длину skb с помощью skb->len, прежде чем переводить указатели в skb->data для доступа к заголовку 802.11. Однако skb->len включает данные как в линейный головной буфер, так и в нелинейные фрагменты/страницы. Когда AF_PACKET отправляет пакет, достаточно большой, чтобы стать нелинейным, заголовок 802.11 в skb->data + len_rthdr может выходить за пределы линейного буфера головы, даже если skb->len кажется достаточным.

Это приводит к чтению slab-out-of-bounds при доступе к hdr->frame_control, поскольку ядро читает за пределами выделенного буфера skb: BUG: KASAN: slab-out-of-bounds в ieee80211_monitor_select_queue+0x1ed/0x220 syzbot столкнулся с теми же проблемами. Исправьте это, проверив skb_headlen(skb) (который дает длину линейной области данных) вместо skb->len перед снятием ссылок на указатели skb->data. Это гарантирует, что требуемые байты фактически присутствуют в линейной части skb.

Примените то же исправление к ieee80211_validate_radiotap_len(), который имеет тот же класс ошибок: он использует skb->len для проверки доступа к skb->data, и к соответствующим проверкам в ieee80211_monitor_start_xmit(): для драйверов, рекламирующих NETIF_F_SG, skb не линеаризован до ndo_start_xmit, поэтому заголовок 802.11 также может быть прочитан за пределами линейного буфера.

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

In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: fix slab-out-of-bounds read in ieee80211_monitor_select_queue() ieee80211_monitor_select_queue() validates the skb length using skb->len before dereferencing pointers into skb->data to access the 802.11 header. However, skb->len includes data in both the linear head buffer and non-linear fragments/pages. When AF_PACKET sends a packet large enough to become non-linear, the 802.11 header at skb->data + len_rthdr may extend past the linear head buffer even though skb->len appears sufficient. This leads to a slab-out-of-bounds read when accessing hdr->frame_control, as the kernel reads beyond the allocated skb head buffer: BUG: KASAN: slab-out-of-bounds in ieee80211_monitor_select_queue+0x1ed/0x220 syzbot has hit the same issues. Fix this by checking skb_headlen(skb) (which gives the length of the linear data region) instead of skb->len before dereferencing skb->data pointers. This ensures the required bytes are actually present in the linear portion of the skb. Apply the same fix to ieee80211_validate_radiotap_len() which has the same class of bug: it uses skb->len to validate accesses to skb->data, and to the corresponding checks in ieee80211_monitor_start_xmit(): for drivers advertising NETIF_F_SG the skb is not linearized before ndo_start_xmit, so the 802.11 header can be read past the linear buffer there as well.