# CVE-2021-47170: USB: usbfs: Don't WARN about excessively large memory allocations

> 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.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-770
- **Published:** 2024-03-25T09:16:22.313Z
- **Modified:** 2026-06-17T04:16:49.400Z

## Who should check

- Anyone running Linux \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 2ab21d6e1411999b5fb43434f421f00bf50002eb; \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 2c835fede13e03f2743a333e4370b5ed2db91e83; \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 8d83f109e920d2776991fa142bb904d985dca2ed; \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 9f7cb3f01a10d9064cf13b3d26fb7e7a5827d098; \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de
- Anyone running Linux 3.3

## Description

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

USB: usbfs: Don't WARN about excessively large memory allocations

Syzbot found that the kernel generates a WARNing if the user tries to
submit a bulk transfer through usbfs with a buffer that is way too
large.  This isn't a bug in the kernel; it's merely an invalid request
from the user and the usbfs code does handle it correctly.

In theory the same thing can happen with async transfers, or with the
packet descriptor table for isochronous transfers.

To prevent the MM subsystem from complaining about these bad
allocation requests, add the \_\_GFP\_NOWARN flag to the kmalloc calls
for these buffers.

## Affected and fixed versions

- Linux: \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 2ab21d6e1411999b5fb43434f421f00bf50002eb; \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 2c835fede13e03f2743a333e4370b5ed2db91e83; \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 8d83f109e920d2776991fa142bb904d985dca2ed; \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 9f7cb3f01a10d9064cf13b3d26fb7e7a5827d098; \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de (cvelist)
- Linux: 3.3 (cvelist)

## Mitigation

- Upgrade Linux to 4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47170.md
Affected: Linux >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 2ab21d6e1411999b5fb43434f421f00bf50002eb; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 2c835fede13e03f2743a333e4370b5ed2db91e83; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 8d83f109e920d2776991fa142bb904d985dca2ed; >= add1aaeabe6b08ed26381a2…
Fixed in: Linux 2ab21d6e1411999b5fb43434f421f00bf50002eb, Linux 2c835fede13e03f2743a333e4370b5ed2db91e83, Linux 8d83f109e920d2776991fa142bb904d985dca2ed, Linux 9f7cb3f01a10d9064cf13b3d26fb7e7a5827d098, Linux 4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de

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

There is no confirmed exploitation: CVE-2021-47170 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-2021-47170?

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

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

Linux \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 2ab21d6e1411999b5fb43434f421f00bf50002eb; \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 2c835fede13e03f2743a333e4370b5ed2db91e83; \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 8d83f109e920d2776991fa142bb904d985dca2ed; \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 9f7cb3f01a10d9064cf13b3d26fb7e7a5827d098; \>= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, \< 4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de; Linux 3.3.

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

Yes. Fixed in Linux 2ab21d6e1411999b5fb43434f421f00bf50002eb, Linux 2c835fede13e03f2743a333e4370b5ed2db91e83, Linux 8d83f109e920d2776991fa142bb904d985dca2ed, Linux 9f7cb3f01a10d9064cf13b3d26fb7e7a5827d098, Linux 4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de. Upgrade Linux to 4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de or later.

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

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/2ab21d6e1411999b5fb43434f421f00bf50002eb>
- patch: <https://git.kernel.org/stable/c/2c835fede13e03f2743a333e4370b5ed2db91e83>
- patch: <https://git.kernel.org/stable/c/8d83f109e920d2776991fa142bb904d985dca2ed>
- patch: <https://git.kernel.org/stable/c/9f7cb3f01a10d9064cf13b3d26fb7e7a5827d098>
- patch: <https://git.kernel.org/stable/c/4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de>

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

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