# CVE-2022-49740: wifi: brcmfmac: Check the count value of channel spec to prevent out-of-bounds reads

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-03-27T16:42:52.222Z
- **Modified:** 2026-06-17T05:19:00.713Z

## Who should check

- Anyone running Linux \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< 9cf5e99c1ae1a85286a76c9a970202750538394c; \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< b2e412879595821ff1b5545cbed5f108fba7f5b6; \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< e4991910f15013db72f6ec0db7038ea67a57052e; \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< f06de1bb6d61f0c18b0213bbc6298960037f9d42; \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< 4920ab131b2dbae7464b72bdcac465d070254209
- Anyone running Linux 3.10

## Description

In the Linux kernel, the following vulnerability has been resolved:

wifi: brcmfmac: Check the count value of channel spec to prevent out-of-bounds reads

This patch fixes slab-out-of-bounds reads in brcmfmac that occur in
brcmf\_construct\_chaninfo() and brcmf\_enable\_bw40\_2g() when the count
value of channel specifications provided by the device is greater than
the length of 'list-\>element\[\]', decided by the size of the 'list'
allocated with kzalloc(). The patch adds checks that make the functions
free the buffer and return -EINVAL if that is the case. Note that the
negative return is handled by the caller, brcmf\_setup\_wiphybands() or
brcmf\_cfg80211\_attach().

Found by a modified version of syzkaller.

Crash Report from brcmf\_construct\_chaninfo():
==================================================================
BUG: KASAN: slab-out-of-bounds in brcmf\_setup\_wiphybands+0x1238/0x1430
Read of size 4 at addr ffff888115f24600 by task kworker/0:2/1896

CPU: 0 PID: 1896 Comm: kworker/0:2 Tainted: G        W  O      5.14.0+ \#132
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.1-0-ga5cab58e9a3f-prebuilt.qemu.org 04/01/2014
Workqueue: usb\_hub\_wq hub\_event
Call Trace:
 dump\_stack\_lvl+0x57/0x7d
 print\_address\_description.constprop.0.cold+0x93/0x334
 kasan\_report.cold+0x83/0xdf
 brcmf\_setup\_wiphybands+0x1238/0x1430
 brcmf\_cfg80211\_attach+0x2118/0x3fd0
 brcmf\_attach+0x389/0xd40
 brcmf\_usb\_probe+0x12de/0x1690
 usb\_probe\_interface+0x25f/0x710
 really\_probe+0x1be/0xa90
 \_\_driver\_probe\_device+0x2ab/0x460
 driver\_probe\_device+0x49/0x120
 \_\_device\_attach\_driver+0x18a/0x250
 bus\_for\_each\_drv+0x123/0x1a0
 \_\_device\_attach+0x207/0x330
 bus\_probe\_device+0x1a2/0x260
 device\_add+0xa61/0x1ce0
 usb\_set\_configuration+0x984/0x1770
 usb\_generic\_driver\_probe+0x69/0x90
 usb\_probe\_device+0x9c/0x220
 really\_probe+0x1be/0xa90
 \_\_driver\_probe\_device+0x2ab/0x460
 driver\_probe\_device+0x49/0x120
 \_\_device\_attach\_driver+0x18a/0x250
 bus\_for\_each\_drv+0x123/0x1a0
 \_\_device\_attach+0x207/0x330
 bus\_probe\_device+0x1a2/0x260
 device\_add+0xa61/0x1ce0
 usb\_new\_device.cold+0x463/0xf66
 hub\_event+0x10d5/0x3330
 process\_one\_work+0x873/0x13e0
 worker\_thread+0x8b/0xd10
 kthread+0x379/0x450
 ret\_from\_fork+0x1f/0x30

Allocated by task 1896:
 kasan\_save\_stack+0x1b/0x40
 \_\_kasan\_kmalloc+0x7c/0x90
 kmem\_cache\_alloc\_trace+0x19e/0x330
 brcmf\_setup\_wiphybands+0x290/0x1430
 brcmf\_cfg80211\_attach+0x2118/0x3fd0
 brcmf\_attach+0x389/0xd40
 brcmf\_usb\_probe+0x12de/0x1690
 usb\_probe\_interface+0x25f/0x710
 really\_probe+0x1be/0xa90
 \_\_driver\_probe\_device+0x2ab/0x460
 driver\_probe\_device+0x49/0x120
 \_\_device\_attach\_driver+0x18a/0x250
 bus\_for\_each\_drv+0x123/0x1a0
 \_\_device\_attach+0x207/0x330
 bus\_probe\_device+0x1a2/0x260
 device\_add+0xa61/0x1ce0
 usb\_set\_configuration+0x984/0x1770
 usb\_generic\_driver\_probe+0x69/0x90
 usb\_probe\_device+0x9c/0x220
 really\_probe+0x1be/0xa90
 \_\_driver\_probe\_device+0x2ab/0x460
 driver\_probe\_device+0x49/0x120
 \_\_device\_attach\_driver+0x18a/0x250
 bus\_for\_each\_drv+0x123/0x1a0
 \_\_device\_attach+0x207/0x330
 bus\_probe\_device+0x1a2/0x260
 device\_add+0xa61/0x1ce0
 usb\_new\_device.cold+0x463/0xf66
 hub\_event+0x10d5/0x3330
 process\_one\_work+0x873/0x13e0
 worker\_thread+0x8b/0xd10
 kthread+0x379/0x450
 ret\_from\_fork+0x1f/0x30

The buggy address belongs to the object at ffff888115f24000
 which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 1536 bytes inside of
 2048-byte region \[ffff888115f24000, ffff888115f24800)

Memory state around the buggy address:
 ffff888115f24500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888115f24580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
\>ffff888115f24600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                   ^
 ffff888115f24680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888115f24700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Crash Report from brcmf\_enable\_bw40\_2g():
==========
---truncated---

## Affected and fixed versions

- Linux: \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< 9cf5e99c1ae1a85286a76c9a970202750538394c; \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< b2e412879595821ff1b5545cbed5f108fba7f5b6; \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< e4991910f15013db72f6ec0db7038ea67a57052e; \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< f06de1bb6d61f0c18b0213bbc6298960037f9d42; \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< 4920ab131b2dbae7464b72bdcac465d070254209 (cvelist)
- Linux: 3.10 (cvelist)

## Mitigation

- Upgrade Linux to 4920ab131b2dbae7464b72bdcac465d070254209 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49740. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49740.md
Affected: Linux >= d48200ba45dd2edfe6286abfc783a81a4a492e98, < 9cf5e99c1ae1a85286a76c9a970202750538394c; >= d48200ba45dd2edfe6286abfc783a81a4a492e98, < b2e412879595821ff1b5545cbed5f108fba7f5b6; >= d48200ba45dd2edfe6286abfc783a81a4a492e98, < e4991910f15013db72f6ec0db7038ea67a57052e; >= d48200ba45dd2edfe6286ab…
Fixed in: Linux 9cf5e99c1ae1a85286a76c9a970202750538394c, Linux 4920ab131b2dbae7464b72bdcac465d070254209

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49740 being exploited?

There is no confirmed exploitation: CVE-2022-49740 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49740?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49740?

Linux \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< 9cf5e99c1ae1a85286a76c9a970202750538394c; \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< b2e412879595821ff1b5545cbed5f108fba7f5b6; \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< e4991910f15013db72f6ec0db7038ea67a57052e; \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< f06de1bb6d61f0c18b0213bbc6298960037f9d42; \>= d48200ba45dd2edfe6286abfc783a81a4a492e98, \< 4920ab131b2dbae7464b72bdcac465d070254209; Linux 3.10.

### Is there a fix for CVE-2022-49740?

Yes. Fixed in Linux 9cf5e99c1ae1a85286a76c9a970202750538394c, Linux 4920ab131b2dbae7464b72bdcac465d070254209. Upgrade Linux to 4920ab131b2dbae7464b72bdcac465d070254209 or later.

### How do I check if I'm affected by CVE-2022-49740?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9cf5e99c1ae1a85286a76c9a970202750538394c>
- patch: <https://git.kernel.org/stable/c/b2e412879595821ff1b5545cbed5f108fba7f5b6>
- patch: <https://git.kernel.org/stable/c/e4991910f15013db72f6ec0db7038ea67a57052e>
- patch: <https://git.kernel.org/stable/c/f06de1bb6d61f0c18b0213bbc6298960037f9d42>
- patch: <https://git.kernel.org/stable/c/4920ab131b2dbae7464b72bdcac465d070254209>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49740>

HTML: <https://flawdb.com/CVE-2022-49740> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49740>
