---
id: CVE-2026-98339
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  wifi: cfg80211: don't filter by BSS type when removing stale entries

  When an assoc AP switches to a channel that already has a BSS entry,
  cfg80211_update_assoc_bss_ent…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  wifi: cfg80211: don't filter by BSS type when removing stale entries

  When an assoc AP switches to a channel that already has a BSS entry,
  cfg80211_update_assoc_bss_ent…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 0afd425b1b64251f19b5d8d8b49bf56fefbc643f <
    6ef87a853327434ae1cd9c5a2c27a557fb4047fc
  - >-
    Linux >= 0afd425b1b64251f19b5d8d8b49bf56fefbc643f <
    1380ee3a202dbb9f8e8b3c3b87eb410450d57799
  - >-
    Linux >= 0afd425b1b64251f19b5d8d8b49bf56fefbc643f <
    fb445ec7480da5d2b82bf681e3b4313603722729
  - >-
    Linux >= 0afd425b1b64251f19b5d8d8b49bf56fefbc643f <
    65fdb973bd905bc3f5cb045a04c1828f2d2a7e24
  - >-
    Linux >= 0afd425b1b64251f19b5d8d8b49bf56fefbc643f <
    64e23a36d8f04811372365b44cfca325f8e0f4bb
  - >-
    Linux >= 0afd425b1b64251f19b5d8d8b49bf56fefbc643f <
    6d2fd26185678038ef2ea11dd4d2e6eccbf2dd25
  - >-
    Linux >= 0afd425b1b64251f19b5d8d8b49bf56fefbc643f <
    0aa44982125c86b47961be5ac1c82eddab8080f3
  - >-
    Linux >= 0afd425b1b64251f19b5d8d8b49bf56fefbc643f <
    b377e1000d963e7182a987082b4b06580bd7ac84
  - Linux 5.4
published: '2026-10-06'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T09:18:26.560'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98339'
references:
  - url: 'https://git.kernel.org/stable/c/0aa44982125c86b47961be5ac1c82eddab8080f3'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/1380ee3a202dbb9f8e8b3c3b87eb410450d57799'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/64e23a36d8f04811372365b44cfca325f8e0f4bb'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/65fdb973bd905bc3f5cb045a04c1828f2d2a7e24'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/6d2fd26185678038ef2ea11dd4d2e6eccbf2dd25'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/6ef87a853327434ae1cd9c5a2c27a557fb4047fc'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b377e1000d963e7182a987082b4b06580bd7ac84'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/fb445ec7480da5d2b82bf681e3b4313603722729'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-06T08:50:17.402Z'
---

## Overview

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

wifi: cfg80211: don't filter by BSS type when removing stale entries

When an assoc AP switches to a channel that already has a BSS entry,
cfg80211_update_assoc_bss_entry() removes that entry before rehashing
the real one, since the two would otherwise collide in the BSS rbtree.

The lookup for that entry also required it to match the connection's BSS
type, so an entry advertising e.g. the IBSS capability bit was left in
place, and the following cfg80211_rehash_bss() then ran into it:

  WARN_ON(!cmp)

Changing the type shouldn't really happen, but can be triggered by a
rogue AP/device, so drop the check and remove any entries matching
the comparison.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
