# CVE-2022-50551: wifi: brcmfmac: Fix potential shift-out-of-bounds in brcmf\_fw\_alloc\_request()

> 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, NVD) `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.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-10-07T15:21:13.391Z
- **Modified:** 2026-11-05T21:17:05.097Z

## Who should check

- Anyone running Linux \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 1db036d13e10809943c2dce553e2fa7fc9c6cd80; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< bc45aa1911bf699b9905f12414e3c1879d6b784f; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 4c8fc44c44b97854623c56363c359f711fc0b887; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 9d2f70fa2c7cc6c73a420ff15682454782d3d6f6; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 5b06a8a25eba07628313aa3c5496522eff97be53; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 87792567d9ed93fd336d2c3b8d7870f44e141e6d; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 0b12d2aa264bac35bff9b5399bb162262b2b8949; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 579c9b9838e8a73f6e93ddece07972c241514dcc; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< ffb589963df103caaf062081a32db0b9e1798660; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 81d17f6f3331f03c8eafdacea68ab773426c1e3c
- Anyone running Linux 4.5

## Description

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

wifi: brcmfmac: Fix potential shift-out-of-bounds in brcmf\_fw\_alloc\_request()

This patch fixes a shift-out-of-bounds in brcmfmac that occurs in
BIT(chiprev) when a 'chiprev' provided by the device is too large.
It should also not be equal to or greater than BITS\_PER\_TYPE(u32)
as we do bitwise AND with a u32 variable and BIT(chiprev). The patch
adds a check that makes the function return NULL if that is the case.
Note that the NULL case is later handled by the bus-specific caller,
brcmf\_usb\_probe\_cb() or brcmf\_usb\_reset\_resume(), for example.

Found by a modified version of syzkaller.

UBSAN: shift-out-of-bounds in drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c
shift exponent 151055786 is too large for 64-bit type 'long unsigned int'
CPU: 0 PID: 1885 Comm: kworker/0:2 Tainted: G           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
 ubsan\_epilogue+0x5/0x40
 \_\_ubsan\_handle\_shift\_out\_of\_bounds.cold+0x53/0xdb
 ? lock\_chain\_count+0x20/0x20
 brcmf\_fw\_alloc\_request.cold+0x19/0x3ea
 ? brcmf\_fw\_get\_firmwares+0x250/0x250
 ? brcmf\_usb\_ioctl\_resp\_wait+0x1a7/0x1f0
 brcmf\_usb\_get\_fwname+0x114/0x1a0
 ? brcmf\_usb\_reset\_resume+0x120/0x120
 ? number+0x6c4/0x9a0
 brcmf\_c\_process\_clm\_blob+0x168/0x590
 ? put\_dec+0x90/0x90
 ? enable\_ptr\_key\_workfn+0x20/0x20
 ? brcmf\_common\_pd\_remove+0x50/0x50
 ? rcu\_read\_lock\_sched\_held+0xa1/0xd0
 brcmf\_c\_preinit\_dcmds+0x673/0xc40
 ? brcmf\_c\_set\_joinpref\_default+0x100/0x100
 ? rcu\_read\_lock\_sched\_held+0xa1/0xd0
 ? rcu\_read\_lock\_bh\_held+0xb0/0xb0
 ? lock\_acquire+0x19d/0x4e0
 ? find\_held\_lock+0x2d/0x110
 ? brcmf\_usb\_deq+0x1cc/0x260
 ? mark\_held\_locks+0x9f/0xe0
 ? lockdep\_hardirqs\_on\_prepare+0x273/0x3e0
 ? \_raw\_spin\_unlock\_irqrestore+0x47/0x50
 ? trace\_hardirqs\_on+0x1c/0x120
 ? brcmf\_usb\_deq+0x1a7/0x260
 ? brcmf\_usb\_rx\_fill\_all+0x5a/0xf0
 brcmf\_attach+0x246/0xd40
 ? wiphy\_new\_nm+0x1476/0x1d50
 ? kmemdup+0x30/0x40
 brcmf\_usb\_probe+0x12de/0x1690
 ? brcmf\_usbdev\_qinit.constprop.0+0x470/0x470
 usb\_probe\_interface+0x25f/0x710
 really\_probe+0x1be/0xa90
 \_\_driver\_probe\_device+0x2ab/0x460
 ? usb\_match\_id.part.0+0x88/0xc0
 driver\_probe\_device+0x49/0x120
 \_\_device\_attach\_driver+0x18a/0x250
 ? driver\_allows\_async\_probing+0x120/0x120
 bus\_for\_each\_drv+0x123/0x1a0
 ? bus\_rescan\_devices+0x20/0x20
 ? lockdep\_hardirqs\_on\_prepare+0x273/0x3e0
 ? trace\_hardirqs\_on+0x1c/0x120
 \_\_device\_attach+0x207/0x330
 ? device\_bind\_driver+0xb0/0xb0
 ? kobject\_uevent\_env+0x230/0x12c0
 bus\_probe\_device+0x1a2/0x260
 device\_add+0xa61/0x1ce0
 ? \_\_mutex\_unlock\_slowpath+0xe7/0x660
 ? \_\_fw\_devlink\_link\_to\_suppliers+0x550/0x550
 usb\_set\_configuration+0x984/0x1770
 ? kernfs\_create\_link+0x175/0x230
 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
 ? driver\_allows\_async\_probing+0x120/0x120
 bus\_for\_each\_drv+0x123/0x1a0
 ? bus\_rescan\_devices+0x20/0x20
 ? lockdep\_hardirqs\_on\_prepare+0x273/0x3e0
 ? trace\_hardirqs\_on+0x1c/0x120
 \_\_device\_attach+0x207/0x330
 ? device\_bind\_driver+0xb0/0xb0
 ? kobject\_uevent\_env+0x230/0x12c0
 bus\_probe\_device+0x1a2/0x260
 device\_add+0xa61/0x1ce0
 ? \_\_fw\_devlink\_link\_to\_suppliers+0x550/0x550
 usb\_new\_device.cold+0x463/0xf66
 ? hub\_disconnect+0x400/0x400
 ? \_raw\_spin\_unlock\_irq+0x24/0x30
 hub\_event+0x10d5/0x3330
 ? hub\_port\_debounce+0x280/0x280
 ? \_\_lock\_acquire+0x1671/0x5790
 ? wq\_calc\_node\_cpumask+0x170/0x2a0
 ? lock\_release+0x640/0x640
 ? rcu\_read\_lock\_sched\_held+0xa1/0xd0
 ? rcu\_read\_lock\_bh\_held+0xb0/0xb0
 ? lockdep\_hardirqs\_on\_prepare+0x273/0x3e0
 process\_one\_work+0x873/0x13e0
 ? lock\_release+0x640/0x640
 ? pwq\_dec\_nr\_in\_flight+0x320/0x320
 ? rwlock\_bug.part.0+0x90/0x90
 worker\_thread+0x8b/0xd10
 ? \_\_kthread\_parkme+0xd9/0x1d0
 ? pr
---truncated---

## Affected and fixed versions

- Linux: \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 1db036d13e10809943c2dce553e2fa7fc9c6cd80; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< bc45aa1911bf699b9905f12414e3c1879d6b784f; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 4c8fc44c44b97854623c56363c359f711fc0b887; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 9d2f70fa2c7cc6c73a420ff15682454782d3d6f6; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 5b06a8a25eba07628313aa3c5496522eff97be53; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 87792567d9ed93fd336d2c3b8d7870f44e141e6d; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 0b12d2aa264bac35bff9b5399bb162262b2b8949; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 579c9b9838e8a73f6e93ddece07972c241514dcc; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< ffb589963df103caaf062081a32db0b9e1798660; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 81d17f6f3331f03c8eafdacea68ab773426c1e3c (cvelist)
- Linux: 4.5 (cvelist)

## Mitigation

- Upgrade Linux to 81d17f6f3331f03c8eafdacea68ab773426c1e3c 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-50551. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50551.md
Affected: Linux >= 46d703a775394e4724509ff55cdda41d228c028c, < 1db036d13e10809943c2dce553e2fa7fc9c6cd80; >= 46d703a775394e4724509ff55cdda41d228c028c, < bc45aa1911bf699b9905f12414e3c1879d6b784f; >= 46d703a775394e4724509ff55cdda41d228c028c, < 4c8fc44c44b97854623c56363c359f711fc0b887; >= 46d703a775394e4724509ff…
Fixed in: Linux 1db036d13e10809943c2dce553e2fa7fc9c6cd80, Linux 4c8fc44c44b97854623c56363c359f711fc0b887, Linux 9d2f70fa2c7cc6c73a420ff15682454782d3d6f6, Linux 5b06a8a25eba07628313aa3c5496522eff97be53, Linux 87792567d9ed93fd336d2c3b8d7870f44e141e6d, Linux 0b12d2aa264bac35bff9b5399bb162262b2b8949, Linux 579c9…

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-50551 being exploited?

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

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

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

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

Linux \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 1db036d13e10809943c2dce553e2fa7fc9c6cd80; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< bc45aa1911bf699b9905f12414e3c1879d6b784f; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 4c8fc44c44b97854623c56363c359f711fc0b887; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 9d2f70fa2c7cc6c73a420ff15682454782d3d6f6; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 5b06a8a25eba07628313aa3c5496522eff97be53; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 87792567d9ed93fd336d2c3b8d7870f44e141e6d; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 0b12d2aa264bac35bff9b5399bb162262b2b8949; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 579c9b9838e8a73f6e93ddece07972c241514dcc; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< ffb589963df103caaf062081a32db0b9e1798660; \>= 46d703a775394e4724509ff55cdda41d228c028c, \< 81d17f6f3331f03c8eafdacea68ab773426c1e3c; Linux 4.5.

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

Yes. Fixed in Linux 1db036d13e10809943c2dce553e2fa7fc9c6cd80, Linux 4c8fc44c44b97854623c56363c359f711fc0b887, Linux 9d2f70fa2c7cc6c73a420ff15682454782d3d6f6, Linux 5b06a8a25eba07628313aa3c5496522eff97be53, Linux 87792567d9ed93fd336d2c3b8d7870f44e141e6d, Linux 0b12d2aa264bac35bff9b5399bb162262b2b8949, Linux 579c9b9838e8a73f6e93ddece07972c241514dcc, Linux 81d17f6f3331f03c8eafdacea68ab773426c1e3c. Upgrade Linux to 81d17f6f3331f03c8eafdacea68ab773426c1e3c or later.

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

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/1db036d13e10809943c2dce553e2fa7fc9c6cd80>
- patch: <https://git.kernel.org/stable/c/bc45aa1911bf699b9905f12414e3c1879d6b784f>
- patch: <https://git.kernel.org/stable/c/4c8fc44c44b97854623c56363c359f711fc0b887>
- patch: <https://git.kernel.org/stable/c/9d2f70fa2c7cc6c73a420ff15682454782d3d6f6>
- patch: <https://git.kernel.org/stable/c/5b06a8a25eba07628313aa3c5496522eff97be53>
- patch: <https://git.kernel.org/stable/c/87792567d9ed93fd336d2c3b8d7870f44e141e6d>
- patch: <https://git.kernel.org/stable/c/0b12d2aa264bac35bff9b5399bb162262b2b8949>
- patch: <https://git.kernel.org/stable/c/579c9b9838e8a73f6e93ddece07972c241514dcc>
- patch: <https://git.kernel.org/stable/c/ffb589963df103caaf062081a32db0b9e1798660>
- patch: <https://git.kernel.org/stable/c/81d17f6f3331f03c8eafdacea68ab773426c1e3c>

## 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-50551>

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