{"id":"CVE-2026-98340","state":"PUBLISHED","title":"wifi: cfg80211: only group hidden BSSes with beacon entries","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: cfg80211: only group hidden BSSes with beacon entries\n\nWhen a probe response for an unknown BSS comes in, __cfg80211_bss_update()\nlooks for an existing entry with the same BSSID and a hidden (zero-length\nor NUL-filled) SSID, and if it finds one it groups them, using the beacon\nIEs from the existing entry.\n\nBut that could find another entry without a beacon, if it was also from a\nprobe response (with SSID), so there's a group without beacon elements.\n\nIf a beacon with a hidden SSID for that BSSID arrives later,\ncfg80211_combine_bsses() goes looking for the probe response entries that\nbelong to it - i.e. entries with the same BSSID and channel that have no\nbeacon IEs - and finds those two. They are already grouped with each\nother, so it hits its\n\n  WARN_ON_ONCE(bss->pub.hidden_beacon_bss)\n  WARN_ON_ONCE(!list_empty(&bss->hidden_list))\n\nwhich are there because an entry without beacon elements is not supposed\nto be part of a group yet.\n\nOnly combine entries when a beacon was already received, ones that are\nkept separate will be combined when a beacon arrives.","publishedAt":"2026-10-06T08:46:30.796Z","updatedAt":"2026-10-19T09:17:51.387Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"4cd6a518ce7527284bbc9baab5fa2453a7d477c2","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"74ed0d992f392c75e1969415527e06df3f7a4034","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"3658093df69849daf4f813a8f087f358e13be203","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"73365b81630b57e1a1f9d50dc87281797855c2ac","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"7405dd19bda4537a2843637d8d7bed1efd4776cf","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"86235be788094131912e9bd8412b358d91d99f49","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"332ea1502c46f53375cb109fa82bfaff818f3a41","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"068843ed0902c552a13860c5ec6b2ca65b57a065","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/wireless/scan.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.9","versionType":"semver"},{"version":"5.10.271","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.222","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.189","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.158","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.54","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.8","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/wireless/scan.c"]}],"references":["https://git.kernel.org/stable/c/4cd6a518ce7527284bbc9baab5fa2453a7d477c2","https://git.kernel.org/stable/c/74ed0d992f392c75e1969415527e06df3f7a4034","https://git.kernel.org/stable/c/3658093df69849daf4f813a8f087f358e13be203","https://git.kernel.org/stable/c/73365b81630b57e1a1f9d50dc87281797855c2ac","https://git.kernel.org/stable/c/7405dd19bda4537a2843637d8d7bed1efd4776cf","https://git.kernel.org/stable/c/86235be788094131912e9bd8412b358d91d99f49","https://git.kernel.org/stable/c/332ea1502c46f53375cb109fa82bfaff818f3a41","https://git.kernel.org/stable/c/068843ed0902c552a13860c5ec6b2ca65b57a065"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98340.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98340","state":"PUBLISHED","datePublished":"2026-10-06T08:46:30.796Z","dateUpdated":"2026-10-19T09:17:51.387Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.342Z"},"containers":{"cna":{"title":"wifi: cfg80211: only group hidden BSSes with beacon entries","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: cfg80211: only group hidden BSSes with beacon entries\n\nWhen a probe response for an unknown BSS comes in, __cfg80211_bss_update()\nlooks for an existing entry with the same BSSID and a hidden (zero-length\nor NUL-filled) SSID, and if it finds one it groups them, using the beacon\nIEs from the existing entry.\n\nBut that could find another entry without a beacon, if it was also from a\nprobe response (with SSID), so there's a group without beacon elements.\n\nIf a beacon with a hidden SSID for that BSSID arrives later,\ncfg80211_combine_bsses() goes looking for the probe response entries that\nbelong to it - i.e. entries with the same BSSID and channel that have no\nbeacon IEs - and finds those two. They are already grouped with each\nother, so it hits its\n\n  WARN_ON_ONCE(bss->pub.hidden_beacon_bss)\n  WARN_ON_ONCE(!list_empty(&bss->hidden_list))\n\nwhich are there because an entry without beacon elements is not supposed\nto be part of a group yet.\n\nOnly combine entries when a beacon was already received, ones that are\nkept separate will be combined when a beacon arrives."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"4cd6a518ce7527284bbc9baab5fa2453a7d477c2","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"74ed0d992f392c75e1969415527e06df3f7a4034","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"3658093df69849daf4f813a8f087f358e13be203","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"73365b81630b57e1a1f9d50dc87281797855c2ac","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"7405dd19bda4537a2843637d8d7bed1efd4776cf","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"86235be788094131912e9bd8412b358d91d99f49","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"332ea1502c46f53375cb109fa82bfaff818f3a41","versionType":"git"},{"version":"4593c4cbe1c96b3995727dc42f6aa103f4ff5afc","status":"affected","lessThan":"068843ed0902c552a13860c5ec6b2ca65b57a065","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/wireless/scan.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.9","versionType":"semver"},{"version":"5.10.271","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.222","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.189","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.158","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.54","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.8","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/wireless/scan.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4cd6a518ce7527284bbc9baab5fa2453a7d477c2"},{"url":"https://git.kernel.org/stable/c/74ed0d992f392c75e1969415527e06df3f7a4034"},{"url":"https://git.kernel.org/stable/c/3658093df69849daf4f813a8f087f358e13be203"},{"url":"https://git.kernel.org/stable/c/73365b81630b57e1a1f9d50dc87281797855c2ac"},{"url":"https://git.kernel.org/stable/c/7405dd19bda4537a2843637d8d7bed1efd4776cf"},{"url":"https://git.kernel.org/stable/c/86235be788094131912e9bd8412b358d91d99f49"},{"url":"https://git.kernel.org/stable/c/332ea1502c46f53375cb109fa82bfaff818f3a41"},{"url":"https://git.kernel.org/stable/c/068843ed0902c552a13860c5ec6b2ca65b57a065"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:17:51.387Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"5.10.271"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"5.15.222"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.1.189"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.6.158"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.12.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.18.54"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"7.2.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}