CVE-2022-49231
published high CVSS 3.1 · 7.8rtw88: fix memory overrun and memory leak during hw_scan
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux10d162b2ed395e69720926b4f8d87f1f25ca920f to < ec5da191bfcd5fd22b95459b623694f66c1cc10b · 10d162b2ed395e69720926b4f8d87f1f25ca920f to < d95984b5580dcb8b1c0036577c52b609990a1dab · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.17 (affected) · 0 to < 5.17 (unaffected · semver) · 5.17.2 through 5.17.* (unaffected · semver) · 5.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: rtw88: fix memory overrun and memory leak during hw_scan Previously we allocated less memory than actual required, overwrite to the buffer causes the mm module to complaint and raise access violation faults. Along with potential memory leaks when returned early. Fix these by passing the correct size and proper deinit flow.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is in rtw88 local hw_scan setup (rtw_ops_hw_scan → rtw_hw_scan_update_probe_req), reached only via nl80211 TRIGGER_SCAN / mac80211 hw_scan—not by processing Wi‑Fi frames from the air. AC:L - On a dual-band rtw88 device with scan-offload firmware, an attacker who can issue a scan with ≥1 SSID reliably drives num_ssids×bands probes into an undersized heap buffer; no race or external layout precondition is required. PR:L - NL80211_CMD_TRIGGER_SCAN uses GENL_UNS_ADMIN_PERM (CAP_NET_ADMIN in the wiphy netns user_ns). mac80211 sets WIPHY_FLAG_NETNS_OK, so when the WLAN device is in a user/net namespace that capability is available without real init-namespace root. UI:N - The attacker triggers the scan themselves through nl80211; no separate victim action (mount, open, click) is required. S:U - Impact is heap corruption and potential privilege escalation within the host kernel’s security authority, not a VM escape, IOMMU bypass, or other cross-boundary break. C:H - The undersized kzalloc followed by memcpy of multiple probe skbs is a heap out-of-bounds write that can be leveraged for adjacent-object disclosure primitives; guidance treats such memory corruption as Confidentiality High. I:H - Probe request contents (SSIDs/IEs) are attacker-influenced and are memcpy’d past the allocated buffer (up to ~2KB with 4 SSIDs×2 bands), yielding a heap OOB write usable for corruption and control-flow hijacking. A:H - The commit reports mm access-violation faults from the overrun, and heap corruption can oops/panic the kernel, so availability impact is High.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 10d162b2ed395e69720926b4f8d87f1f25ca920f to < ec5da191bfcd5fd22b95459b623694f66c1cc10b (affected · git)10d162b2ed395e69720926b4f8d87f1f25ca920f to < d95984b5580dcb8b1c0036577c52b609990a1dab (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.17 (affected)0 to < 5.17 (unaffected · semver)5.17.2 through 5.17.* (unaffected · semver)5.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-401 CWE-401 Missing Release of Memory after Effective Lifetime
References
2Provider assertions
2Linux · cna
rtw88: fix memory overrun and memory leak during hw_scan
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5eff92dadee561258d26f8216ad902fb893a438408782c2f2b505a816393dd47
- Ingested
- 23 Sep 2026, 08:04:12 UTC
- Source record
- Official CVE record