Skip to contentSkip to conversation

CVE-2026-98338: wifi: cfg80211: ibss: ref BSS entry for joined event

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

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.

The Linux kernel CVE team has assigned CVE-2026-98338 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 2.6.32 with commit 667503ddcb96f3b10211f997fe55907fa7509841 and fixed in 7.2.8 with commit b0e3f019e461ac42e45aa3ec1216cefaca2f4a8b
	Issue introduced in 2.6.32 with commit 667503ddcb96f3b10211f997fe55907fa7509841 and fixed in 7.3-rc4 with commit 708f9d43d6a2eb9c6b83fe62af628de9dffd9314

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98338

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/wireless/core.h
net/wireless/ibss.c
net/wireless/util.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/b0e3f019e461ac42e45aa3ec1216cefaca2f4a8b
	https://git.kernel.org/stable/c/708f9d43d6a2eb9c6b83fe62af628de9dffd9314