Bug 2373421 (CVE-2022-49942) - CVE-2022-49942 kernel: wifi: mac80211: Don't finalize CSA in IBSS mode if state is disconnected
Summary: CVE-2022-49942 kernel: wifi: mac80211: Don't finalize CSA in IBSS mode if sta...
Keywords:
Status: NEW
Alias: CVE-2022-49942
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:01 UTC by OSIDB Bzimport
Modified: 2025-06-20 10:08 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:01:59 UTC
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().

Comment 1 Avinash Hanwate 2025-06-20 09:58:26 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061807-CVE-2022-49942-8f93@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.