Kernel Kit / Infix / v26.10.0latest
CVE-2026-98338
—unknownlinux6.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: cfg80211: ibss: ref BSS entry for joined event
When the IBSS is joined, we only record the BSSID/channel in the event and look up the BSS entry when processing it. However, that's racy, e.g. a new scan with NL80211_SCAN_FLAG_FLUSH can remove it, causing a warning in the event work:
!bss WARNING: net/wireless/ibss.c:37 at __cfg80211_ibss_joined+0x3d3/0x440 Workqueue: cfg80211 cfg80211_event_work cfg80211_process_wdev_events+0x39f/0x5b0 net/wireless/util.c:1144 cfg80211_process_rdev_events+0xa1/0x110 net/wireless/util.c:1179 cfg80211_event_work+0x2f/0x40 net/wireless/core.c:393
Do the lookup early (the driver is expected to only join an IBSS that has a BSS entry) and keep a reference to it.
Published 2026-10-06NVD
The unfixed IBSS (ad-hoc) joined-event code is present in this kernel and built as part of cfg80211.ko: __cfg80211_ibss_joined() still looks up the BSS entry late and hits WARN_ON(!bss), and no applied patch touches it.
It only runs when a Wi-Fi interface joins an IBSS. Infix's Wi-Fi model offers only station, access-point, mesh-point and wds-link modes, and confd never generates an ad-hoc configuration, so no YANG, CLI or web UI setting reaches it.
Reaching it needs a root shell on a device with a Wi-Fi radio to create an ad-hoc interface with iw or a hand-written wpa_supplicant config (mode=1), then a flushing scan racing the join event. The result is a kernel warning (a crash only if panic_on_warn is set).
Evidence 12
`__cfg80211_ibss_joined()` still calls `cfg80211_get_bss()` when the event is processed and does `WARN_ON(!bss)`; this is the pre-fix code.
output/build/linux-6.18.60/net/wireless/ibss.c:34-37
The `EVENT_IBSS_JOINED` handler passes only `ev->ij.bssid` and `ev->ij.channel`, with no referenced BSS entry, so the fix is not applied.
output/build/linux-6.18.60/net/wireless/util.c:1160-1162
Of 139 applied patches, the Wi-Fi ones (lines 29-31, 48, 64-68, 82) are all for `brcmfmac` or `mt76`; none touches `net/wireless/ibss.c` or `net/wireless/util.c`.
output/build/linux-6.18.60/.applied_patches_list
`CONFIG_CFG80211=m` and `CONFIG_MAC80211=m` (line 1579), with `mt76`, `rtw88`, `rtw89`, `ath11k` drivers and `CONFIG_MAC80211_HWSIM=m` (line 2543).
output/build/linux-6.18.60/.config:1570
`net/wireless/ibss.o` was built, as were `net/wireless/util.o` (23842) and `net/mac80211/ibss.o` (24265), the mac80211 caller of `cfg80211_ibss_joined()`.
output/objects.txt:23855
The `feature-wifi` package turns on `CONFIG_WLAN`, `CONFIG_CFG80211`, `CONFIG_MAC80211` and hwsim, which is why the built `.config` differs from `board/x86_64/linux_defconfig:250` (`# CONFIG_WIRELESS is not set`).
package/feature-wifi/feature-wifi.mk:11-24
`BR2_PACKAGE_FEATURE_WIFI=y` plus the HWSIM, MEDIATEK, QUALCOMM and REALTEK sub-options are selected for this image.
configs/x86_64_defconfig:149-153
The `wifi-mode` choice has exactly four cases: `station` (205), `access-point` (398), `mesh-point` (736) and `wds-link` (878). There is no IBSS/ad-hoc case.
src/confd/yang/confd/infix-if-wifi.yang:184-878
The only `mode=` that confd writes into a `wpa_supplicant` network block is `mode=5` (mesh); station blocks use the default infrastructure mode, and `mode=1` (IBSS) is never written.
src/confd/src/if-wifi.c:476
The only `iw ... interface add` that confd issues is `type __ap_vlan`; a search of `src/confd` for `ibss`, `adhoc` and `ad-hoc` finds no configuration path.
src/confd/src/if-wifi.c:727
The only mention of `adhoc` in the product sources is a read-only decode of the nl80211 interface type for operational status.
src/yangerd/internal/nl80211/nl80211.go:546
The kernel does expose `NL80211_CMD_JOIN_IBSS` over netlink, so a privileged local process outside the management plane could still join an IBSS.
output/build/linux-6.18.60/net/wireless/nl80211.c:2296
Version and patches
The tree is plain 6.18.60 (output/build/linux-6.18.60/Makefile: SUBLEVEL = 60) and the fix is absent from net/wireless/ibss.c and net/wireless/util.c. None of the 139 applied patches addresses it.
I could not read the upstream fix commits (708f9d43d6a2, b0e3f019e461) from here, so the exact affected range and the first fixed 6.18.y release are not confirmed. The source itself shows the vulnerable pattern, so the NVD match is correct.
Recommendation
Document as not exposed; no urgent backport is needed.
Pick up the fix with the next routine 6.18.y stable bump that contains it. Impact is low in any case: a WARN in the cfg80211 event work, which is a denial of service only where panic_on_warn is set.
Re-assess if an IBSS/ad-hoc mode is ever added to infix-if-wifi.yang.
Open questions
Which 6.18.y release first carries the fix; the upstream commits are not available in this tree.
Whether panic_on_warn is set on shipped devices; I did not check the kernel command line or sysctl settings.
I did not exhaustively check that every loaded driver advertises IBSS support, or that the mesh, station and AP paths can never produce an IBSS-joined event. In the kernel sources that event comes only from the IBSS join paths (net/mac80211/ibss.c and a few fullmac drivers).
Containers run by an operator with CAP_NET_ADMIN and a Wi-Fi phy moved into them could issue NL80211_CMD_JOIN_IBSS; I treated this as outside the product's own management interface and did not investigate it.
Members of Kernel Kit decide. Sign in if you are one.