---
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: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
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-07'
sourceUpdated: '2026-10-07T07:17:09.540'
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
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98339.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-98339'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2546370'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-98339'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98339'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-98339.mbox
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00281
epssPercentile: 0.20531
ingestedAt: '2026-10-06T08:50:17.402Z'
cwe:
  - CWE-617
scores:
  nvd: 8.8
  vendor: 7
  cna: 8.8
---

## 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.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, … · updated 2026-10-10 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98339.json)
