# CVE-2023-53582: wifi: brcmfmac: ensure CLM version is null-terminated to prevent stack-out-of-bounds

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; 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.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-10-04T15:43:58.493Z
- **Modified:** 2026-11-05T21:17:26.937Z

## Who should check

- Anyone running Linux \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< 3b173b4ad9c001a555f44adc7836d6fe3afbe9ec; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< 423a1297ea72bbddf64dbb0957f2879c0f2aa5d0; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< 0ca2efea4f11c6255061e852ac188264c469c197; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< a0f0ce1c8ab9fe90618dc394e3d1568b5a9ac154; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< ecb980dc79709c02f579a9c03cb92ccec189ab38; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< c02f733024d70105f22de8dd0a1252a0350cd516; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< 660145d708be52f946a82e5b633c020f58f996de
- Anyone running Linux 4.15

## Description

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

wifi: brcmfmac: ensure CLM version is null-terminated to prevent stack-out-of-bounds

Fix a stack-out-of-bounds read in brcmfmac that occurs
when 'buf' that is not null-terminated is passed as an argument of
strreplace() in brcmf\_c\_preinit\_dcmds(). This buffer is filled with
a CLM version string by memcpy() in brcmf\_fil\_iovar\_data\_get().
Ensure buf is null-terminated.

Found by a modified version of syzkaller.

\[   33.004414\]\[ T1896\] brcmfmac: brcmf\_c\_process\_clm\_blob: no clm\_blob available (err=-2), device may have limited channels available
\[   33.013486\]\[ T1896\] brcmfmac: brcmf\_c\_preinit\_dcmds: Firmware: BCM43236/3 wl0: Nov 30 2011 17:33:42 version 5.90.188.22
\[   33.021554\]\[ T1896\] ==================================================================
\[   33.022379\]\[ T1896\] BUG: KASAN: stack-out-of-bounds in strreplace+0xf2/0x110
\[   33.023122\]\[ T1896\] Read of size 1 at addr ffffc90001d6efc8 by task kworker/0:2/1896
\[   33.023852\]\[ T1896\]
\[   33.024096\]\[ T1896\] CPU: 0 PID: 1896 Comm: kworker/0:2 Tainted: G           O      5.14.0+ \#132
\[   33.024927\]\[ T1896\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.1-0-ga5cab58e9a3f-prebuilt.qemu.org 04/01/2014
\[   33.026065\]\[ T1896\] Workqueue: usb\_hub\_wq hub\_event
\[   33.026581\]\[ T1896\] Call Trace:
\[   33.026896\]\[ T1896\]  dump\_stack\_lvl+0x57/0x7d
\[   33.027372\]\[ T1896\]  print\_address\_description.constprop.0.cold+0xf/0x334
\[   33.028037\]\[ T1896\]  ? strreplace+0xf2/0x110
\[   33.028403\]\[ T1896\]  ? strreplace+0xf2/0x110
\[   33.028807\]\[ T1896\]  kasan\_report.cold+0x83/0xdf
\[   33.029283\]\[ T1896\]  ? strreplace+0xf2/0x110
\[   33.029666\]\[ T1896\]  strreplace+0xf2/0x110
\[   33.029966\]\[ T1896\]  brcmf\_c\_preinit\_dcmds+0xab1/0xc40
\[   33.030351\]\[ T1896\]  ? brcmf\_c\_set\_joinpref\_default+0x100/0x100
\[   33.030787\]\[ T1896\]  ? rcu\_read\_lock\_sched\_held+0xa1/0xd0
\[   33.031223\]\[ T1896\]  ? rcu\_read\_lock\_bh\_held+0xb0/0xb0
\[   33.031661\]\[ T1896\]  ? lock\_acquire+0x19d/0x4e0
\[   33.032091\]\[ T1896\]  ? find\_held\_lock+0x2d/0x110
\[   33.032605\]\[ T1896\]  ? brcmf\_usb\_deq+0x1a7/0x260
\[   33.033087\]\[ T1896\]  ? brcmf\_usb\_rx\_fill\_all+0x5a/0xf0
\[   33.033582\]\[ T1896\]  brcmf\_attach+0x246/0xd40
\[   33.034022\]\[ T1896\]  ? wiphy\_new\_nm+0x1476/0x1d50
\[   33.034383\]\[ T1896\]  ? kmemdup+0x30/0x40
\[   33.034722\]\[ T1896\]  brcmf\_usb\_probe+0x12de/0x1690
\[   33.035223\]\[ T1896\]  ? brcmf\_usbdev\_qinit.constprop.0+0x470/0x470
\[   33.035833\]\[ T1896\]  usb\_probe\_interface+0x25f/0x710
\[   33.036315\]\[ T1896\]  really\_probe+0x1be/0xa90
\[   33.036656\]\[ T1896\]  \_\_driver\_probe\_device+0x2ab/0x460
\[   33.037026\]\[ T1896\]  ? usb\_match\_id.part.0+0x88/0xc0
\[   33.037383\]\[ T1896\]  driver\_probe\_device+0x49/0x120
\[   33.037790\]\[ T1896\]  \_\_device\_attach\_driver+0x18a/0x250
\[   33.038300\]\[ T1896\]  ? driver\_allows\_async\_probing+0x120/0x120
\[   33.038986\]\[ T1896\]  bus\_for\_each\_drv+0x123/0x1a0
\[   33.039906\]\[ T1896\]  ? bus\_rescan\_devices+0x20/0x20
\[   33.041412\]\[ T1896\]  ? lockdep\_hardirqs\_on\_prepare+0x273/0x3e0
\[   33.041861\]\[ T1896\]  ? trace\_hardirqs\_on+0x1c/0x120
\[   33.042330\]\[ T1896\]  \_\_device\_attach+0x207/0x330
\[   33.042664\]\[ T1896\]  ? device\_bind\_driver+0xb0/0xb0
\[   33.043026\]\[ T1896\]  ? kobject\_uevent\_env+0x230/0x12c0
\[   33.043515\]\[ T1896\]  bus\_probe\_device+0x1a2/0x260
\[   33.043914\]\[ T1896\]  device\_add+0xa61/0x1ce0
\[   33.044227\]\[ T1896\]  ? \_\_mutex\_unlock\_slowpath+0xe7/0x660
\[   33.044891\]\[ T1896\]  ? \_\_fw\_devlink\_link\_to\_suppliers+0x550/0x550
\[   33.045531\]\[ T1896\]  usb\_set\_configuration+0x984/0x1770
\[   33.046051\]\[ T1896\]  ? kernfs\_create\_link+0x175/0x230
\[   33.046548\]\[ T1896\]  usb\_generic\_driver\_probe+0x69/0x90
\[   33.046931\]\[ T1896\]  usb\_probe\_device+0x9c/0x220
\[   33.047434\]\[ T1896\]  really\_probe+0x1be/0xa90
\[   33.047760\]\[ T1896\]  \_\_driver\_probe\_device+0x2ab/0x460
\[   33.048134\]\[ T1896\]  driver\_probe\_device+0x49/0x120
\[   33.048516\]\[ T1896\]  \_\_device\_attach\_driver+0x18a/0x250
\[   33.048910\]\[ T1896\]  ? driver\_allows\_async\_probing+0x120/0x120
---truncated---

## Affected and fixed versions

- Linux: \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< 3b173b4ad9c001a555f44adc7836d6fe3afbe9ec; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< 423a1297ea72bbddf64dbb0957f2879c0f2aa5d0; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< 0ca2efea4f11c6255061e852ac188264c469c197; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< a0f0ce1c8ab9fe90618dc394e3d1568b5a9ac154; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< ecb980dc79709c02f579a9c03cb92ccec189ab38; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< c02f733024d70105f22de8dd0a1252a0350cd516; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< 660145d708be52f946a82e5b633c020f58f996de (cvelist)
- Linux: 4.15 (cvelist)

## Mitigation

- Upgrade Linux to 660145d708be52f946a82e5b633c020f58f996de or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53582.md
Affected: Linux >= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, < 3b173b4ad9c001a555f44adc7836d6fe3afbe9ec; >= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, < 423a1297ea72bbddf64dbb0957f2879c0f2aa5d0; >= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, < 0ca2efea4f11c6255061e852ac188264c469c197; >= fdd0bd88ceaecf729db103a…
Fixed in: Linux 3b173b4ad9c001a555f44adc7836d6fe3afbe9ec, Linux 423a1297ea72bbddf64dbb0957f2879c0f2aa5d0, Linux 0ca2efea4f11c6255061e852ac188264c469c197, Linux 660145d708be52f946a82e5b633c020f58f996de

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-2023-53582 being exploited?

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

### How serious is CVE-2023-53582?

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

### Which versions are affected by CVE-2023-53582?

Linux \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< 3b173b4ad9c001a555f44adc7836d6fe3afbe9ec; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< 423a1297ea72bbddf64dbb0957f2879c0f2aa5d0; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< 0ca2efea4f11c6255061e852ac188264c469c197; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< a0f0ce1c8ab9fe90618dc394e3d1568b5a9ac154; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< ecb980dc79709c02f579a9c03cb92ccec189ab38; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< c02f733024d70105f22de8dd0a1252a0350cd516; \>= fdd0bd88ceaecf729db103ac8836af5805dd2dc1, \< 660145d708be52f946a82e5b633c020f58f996de; Linux 4.15.

### Is there a fix for CVE-2023-53582?

Yes. Fixed in Linux 3b173b4ad9c001a555f44adc7836d6fe3afbe9ec, Linux 423a1297ea72bbddf64dbb0957f2879c0f2aa5d0, Linux 0ca2efea4f11c6255061e852ac188264c469c197, Linux 660145d708be52f946a82e5b633c020f58f996de. Upgrade Linux to 660145d708be52f946a82e5b633c020f58f996de or later.

### How do I check if I'm affected by CVE-2023-53582?

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/3b173b4ad9c001a555f44adc7836d6fe3afbe9ec>
- patch: <https://git.kernel.org/stable/c/423a1297ea72bbddf64dbb0957f2879c0f2aa5d0>
- patch: <https://git.kernel.org/stable/c/0ca2efea4f11c6255061e852ac188264c469c197>
- patch: <https://git.kernel.org/stable/c/a0f0ce1c8ab9fe90618dc394e3d1568b5a9ac154>
- patch: <https://git.kernel.org/stable/c/ecb980dc79709c02f579a9c03cb92ccec189ab38>
- patch: <https://git.kernel.org/stable/c/c02f733024d70105f22de8dd0a1252a0350cd516>
- patch: <https://git.kernel.org/stable/c/660145d708be52f946a82e5b633c020f58f996de>

## 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-2023-53582>

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