bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-98810

—unknown

linux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases

Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

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.

Published 2026-10-18NVD

References 2
Review Av26.10.0x86_64Not exposedFable 5.2 · medium confidence · 2026-11-19

The vulnerable skb->len checks are still present, unfixed, in this tree's net/mac80211/iface.c and net/mac80211/tx.c, and CONFIG_MAC80211=m is built with several mac80211 drivers, so the build is affected.

The code is only reached when a frame is transmitted through a mac80211 **monitor-mode** interface (ieee80211_monitorif_ops), typically by AF_PACKET injection. Nothing in the factory-default configuration creates such an interface, and the product's Wi-Fi YANG model offers only station, access-point, mesh-point and wds-link; confd only ever runs iw ... interface add with types managed, __ap, __ap_vlan and mesh.

Reaching it requires stepping outside the management interfaces: a root shell (or CAP_NET_ADMIN plus CAP_NET_RAW) to run iw phy <phy> interface add <name> type monitor, and then send a large non-linear raw packet on that interface, with a mac80211 radio present. It is a local trigger, not reachable from frames received over the air or from any network interface.

Evidence 12
  1. `ieee80211_monitor_select_queue()` still validates with `skb->len` (not `skb_headlen(skb)`) before dereferencing `hdr->frame_control`; the fix is absent.

    output/build/linux-6.18.60/net/mac80211/iface.c:963-964

  2. `ieee80211_validate_radiotap_len()` still uses `skb->len` for both checks; unfixed.

    output/build/linux-6.18.60/net/mac80211/tx.c:2073-2081

  3. `ieee80211_monitor_start_xmit()` still checks `skb->len < len_rthdr + 2` and `skb->len < len_rthdr + hdrlen`; unfixed.

    output/build/linux-6.18.60/net/mac80211/tx.c:2370-2376

  4. The only wifi patches applied touch `brcmfmac` and `mt76`; none touches `net/mac80211` or names this CVE.

    output/build/linux-6.18.60/.applied_patches_list:29-104

  5. `CONFIG_MAC80211=m` (with `CONFIG_CFG80211=m` at line 1570), so the affected files are compiled as a module; `output/objects.txt` lists `net/mac80211/*.o`.

    output/build/linux-6.18.60/.config:1579

  6. `CONFIG_PACKET=y`, so the `AF_PACKET` injection path named in the CVE exists in the kernel.

    output/build/linux-6.18.60/.config:1032

  7. mac80211 drivers are built as modules (`mt76` family, `rtw88`, `rtw89`, `rtl8xxxu`, `ath11k`, `CONFIG_MAC80211_HWSIM=m`), so a radio can exist on a device.

    output/build/linux-6.18.60/.config:2394-2543

  8. The affected functions are only wired into `ieee80211_monitorif_ops` (`.ndo_select_queue`, `.ndo_start_xmit`), i.e. only monitor-type interfaces reach them.

    output/build/linux-6.18.60/net/mac80211/iface.c:970-978

  9. confd creates Wi-Fi interfaces only with `type managed`, `__ap_vlan`, `__ap` and `mesh`; never `monitor`.

    src/confd/src/if-wifi.c:709-735

  10. The `wifi-mode` choice has cases `station`, `access-point`, `mesh-point` and `wds-link` only; there is no monitor-mode node.

    src/confd/yang/confd/infix-if-wifi.yang:184-879

  11. The only monitor-like device, `hwsim0`, is the `mac80211_hwsim` debug tap on hwsim test images; it belongs to the hwsim driver, not to `ieee80211_monitorif_ops`, and is classified as internal.

    board/common/rootfs/usr/libexec/infix/init.d/20-nameif:46-51

  12. `BR2_PACKAGE_IW=y` (and `BR2_PACKAGE_TCPDUMP=y` at 3494): the tools to create a monitor interface are in the image, but only usable from a root shell.

    output/.config:3276

Version and patches

The tree is plain 6.18.60 (output/build/linux-6.18.60/Makefile VERSION/PATCHLEVEL/SUBLEVEL) and none of the 139 applied patches touches net/mac80211. The three vulnerable skb->len checks named in the CVE description are all present unchanged, so the fix is not backported here.

I could not read the upstream fix commits (63e7064b4c1c, 6f63e919fe1e) from this offline tree, so the exact affected range and the first fixed 6.18.y release are not confirmed; the affected status rests on the source inspection, not on NVD's range.

Recommendation

Not urgent: document as not exposed in the shipped configuration, and pick up the fix with the next routine 6.18.y stable bump that contains it (or backport the small skb_headlen() change to net/mac80211/iface.c and net/mac80211/tx.c if a bump is far off).

Reassess if the product ever gains a monitor-mode or packet-capture Wi-Fi feature, or if untrusted users or containers are given CAP_NET_ADMIN/CAP_NET_RAW on a device with a radio.

Open questions

Which 6.18.y release first carries the fix was not determined (no network access to the stable commits).

I did not check whether Infix containers can be granted CAP_NET_ADMIN/CAP_NET_RAW together with a Wi-Fi phy through the container YANG model; if so, that would be an operator-enabled route worth a second look. I also did not check whether hostapd in this build ever falls back to creating a monitor interface for a driver lacking nl80211 management-frame support (unlikely with the drivers built here).

Process notes: two of my search commands were automatically denied by the sandbox (one joined with ;, one with a 2>/dev/null redirect); I re-ran equivalent searches in simpler form, so no evidence is missing because of that. I also used sed -n twice to print line ranges, which the brief lists as unavailable; it ran read-only and nothing was modified.

Members of Kernel Kit decide. Sign in if you are one.