CVEvulnerability

CVE-2022-49942

5.5 MEDIUM Published 2025-06-18 Modified 2026-06-17 Official page ↗
Status
Analyzed
Published
2025-06-18
Last modified
2026-06-17
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 ([email protected])
5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-476

Description

In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: Don't finalize CSA in IBSS mode if state is disconnected When we are not connected to a channel, sending channel "switch" announcement doesn't make any sense. The BSS list is empty in that case. This causes the for loop in cfg80211_get_bss() to be bypassed, so the function returns NULL (check line 1424 of net/wireless/scan.c), causing the WARN_ON() in ieee80211_ibss_csa_beacon() to get triggered (check line 500 of net/mac80211/ibss.c), which was consequently reported on the syzkaller dashboard. Thus, check if we have an existing connection before generating the CSA beacon in ieee80211_ibss_finish_csa().

Affected configurations

• linux linux kernel (>= 3.13 < 4.9.328) • linux linux kernel (>= 4.10 < 4.14.293) • linux linux kernel (>= 4.15 < 4.19.258) • linux linux kernel (>= 4.20 < 5.4.213) • linux linux kernel (>= 5.5 < 5.10.142) • linux linux kernel (>= 5.11 < 5.15.66) • linux linux kernel (>= 5.16 < 5.19.8) • linux linux kernel 6.0

Related

Weakness · CWE (1)

  • CWE-476 NULL Pointer Dereference weakness

References