Code execution via BSS reference mismanagement
Published Oct 13, 2022 · Updated May 15, 2025
Use-after-free flaws in Linux kernel 5.1 through 5.19.x before 5.19.16 allow local users to execute code via crafted WLAN frames. In net/wireless/scan.c, bss_ref_get overwrites a BSS pointer before checking the transmitted BSS; cfg80211_bss_update copies and later unreferences a transmitted_bss pointer, while cfg80211_inform_single_bss_data returns an unreferenced entry after list insertion fails. Reachability requires malformed multi-BSSID beacon-frame injection into the wireless stack; the public demonstration triggers kernel use-after-free, not arbitrary code execution.
Summary
What happened
Use-after-free flaws in Linux kernel 5.1 through 5.19.x before 5.19.16 allow local users to execute code via crafted WLAN frames. In net/wireless/scan.c, bss_ref_get overwrites a BSS pointer before checking the transmitted BSS; cfg80211_bss_update copies and later unreferences a transmitted_bss pointer, while cfg80211_inform_single_bss_data returns an unreferenced entry after list insertion fails. Reachability requires malformed multi-BSSID beacon-frame injection into the wireless stack; the public demonstration triggers kernel use-after-free, not arbitrary code execution.
The record
- CVE
- CVE-2022-42720
- Published
- Oct 13, 2022
- Updated
- May 15, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-416, T1203
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 13, 2022CVE publishedPublication date reported by the CVE source.
- May 15, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- Malformed multi-BSSID beacon-frame proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo