# CVE-2021-47347: wl1251: Fix possible buffer overflow in wl1251\_cmd\_scan

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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:** 1.04% (percentile 63, 2026-11-26)
- **CWE:** CWE-120
- **Published:** 2024-05-21T14:35:52.947Z
- **Modified:** 2026-08-05T08:47:22.692Z

## Who should check

- Anyone running Linux \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 57ad99ae3c6738ba87bad259bb57c641ca68ebf6; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< d3d8b9c9c7843dce31e284927d4c9904fd5a510a; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 0f6c0488368c9ac1aa685821916fadba32f5d1ef; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 115103f6e3f1c26c473766c16439c7c8b235529a; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< d71dddeb5380613f9ef199f3e7368fd78fb1a46e; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< c5e4a10d7bd5d4f419d8b9705dff60cf69b302a1; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 302e2ee34c5f7c5d805b7f835d9a6f2b43474e2a; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 40af3960a15339e8bbd3be50c3bc7b35e1a0b6ea; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< d10a87a3535cce2b890897914f5d0d83df669c63
- Anyone running Linux 2.6.31

## Description

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

wl1251: Fix possible buffer overflow in wl1251\_cmd\_scan

Function wl1251\_cmd\_scan calls memcpy without checking the length.
Harden by checking the length is within the maximum allowed size.

## Affected and fixed versions

- Linux: \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 57ad99ae3c6738ba87bad259bb57c641ca68ebf6; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< d3d8b9c9c7843dce31e284927d4c9904fd5a510a; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 0f6c0488368c9ac1aa685821916fadba32f5d1ef; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 115103f6e3f1c26c473766c16439c7c8b235529a; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< d71dddeb5380613f9ef199f3e7368fd78fb1a46e; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< c5e4a10d7bd5d4f419d8b9705dff60cf69b302a1; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 302e2ee34c5f7c5d805b7f835d9a6f2b43474e2a; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 40af3960a15339e8bbd3be50c3bc7b35e1a0b6ea; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< d10a87a3535cce2b890897914f5d0d83df669c63 (cvelist)
- Linux: 2.6.31 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47347.md
Affected: Linux >= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, < 57ad99ae3c6738ba87bad259bb57c641ca68ebf6; >= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, < d3d8b9c9c7843dce31e284927d4c9904fd5a510a; >= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, < 0f6c0488368c9ac1aa685821916fadba32f5d1ef; >= 2f01a1f58889fbfeb68b1bc…
Fixed in: Linux 57ad99ae3c6738ba87bad259bb57c641ca68ebf6, Linux 0f6c0488368c9ac1aa685821916fadba32f5d1ef, Linux 115103f6e3f1c26c473766c16439c7c8b235529a, Linux 302e2ee34c5f7c5d805b7f835d9a6f2b43474e2a, Linux 40af3960a15339e8bbd3be50c3bc7b35e1a0b6ea

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-2021-47347 being exploited?

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

### How serious is CVE-2021-47347?

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

### Which versions are affected by CVE-2021-47347?

Linux \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 57ad99ae3c6738ba87bad259bb57c641ca68ebf6; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< d3d8b9c9c7843dce31e284927d4c9904fd5a510a; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 0f6c0488368c9ac1aa685821916fadba32f5d1ef; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 115103f6e3f1c26c473766c16439c7c8b235529a; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< d71dddeb5380613f9ef199f3e7368fd78fb1a46e; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< c5e4a10d7bd5d4f419d8b9705dff60cf69b302a1; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 302e2ee34c5f7c5d805b7f835d9a6f2b43474e2a; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< 40af3960a15339e8bbd3be50c3bc7b35e1a0b6ea; \>= 2f01a1f58889fbfeb68b1bc1b52e4197f3333490, \< d10a87a3535cce2b890897914f5d0d83df669c63; Linux 2.6.31.

### Is there a fix for CVE-2021-47347?

Yes. Fixed in Linux 57ad99ae3c6738ba87bad259bb57c641ca68ebf6, Linux 0f6c0488368c9ac1aa685821916fadba32f5d1ef, Linux 115103f6e3f1c26c473766c16439c7c8b235529a, Linux 302e2ee34c5f7c5d805b7f835d9a6f2b43474e2a, Linux 40af3960a15339e8bbd3be50c3bc7b35e1a0b6ea. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-47347?

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/57ad99ae3c6738ba87bad259bb57c641ca68ebf6>
- patch: <https://git.kernel.org/stable/c/d3d8b9c9c7843dce31e284927d4c9904fd5a510a>
- patch: <https://git.kernel.org/stable/c/0f6c0488368c9ac1aa685821916fadba32f5d1ef>
- patch: <https://git.kernel.org/stable/c/115103f6e3f1c26c473766c16439c7c8b235529a>
- patch: <https://git.kernel.org/stable/c/d71dddeb5380613f9ef199f3e7368fd78fb1a46e>
- patch: <https://git.kernel.org/stable/c/c5e4a10d7bd5d4f419d8b9705dff60cf69b302a1>
- patch: <https://git.kernel.org/stable/c/302e2ee34c5f7c5d805b7f835d9a6f2b43474e2a>
- patch: <https://git.kernel.org/stable/c/40af3960a15339e8bbd3be50c3bc7b35e1a0b6ea>
- patch: <https://git.kernel.org/stable/c/d10a87a3535cce2b890897914f5d0d83df669c63>

## 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-2021-47347>

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