CVE-2021-47170
USB: usbfs: Don't WARN about excessively large memory allocations
Mitigation
- Upgrade Linux to 4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de or later.
Who should check
- Anyone running Linux >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 2ab21d6e1411999b5fb43434f421f00bf50002eb; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 2c835fede13e03f2743a333e4370b5ed2db91e83; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 8d83f109e920d2776991fa142bb904d985dca2ed; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 9f7cb3f01a10d9064cf13b3d26fb7e7a5827d098; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de
- Anyone running Linux 3.3
Vulnerability facts
- Affected
- Linux >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 2ab21d6e1411999b5fb43434f421f00bf50002eb; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 2c835fede13e03f2743a333e4370b5ed2db91e83; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 8d83f109e920d2776991fa142bb904d985dca2ed; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 9f7cb3f01a10d9064cf13b3d26fb7e7a5827d098; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de; Linux 3.3
- Fixed in
- Linux 2ab21d6e1411999b5fb43434f421f00bf50002eb, Linux 2c835fede13e03f2743a333e4370b5ed2db91e83, Linux 8d83f109e920d2776991fa142bb904d985dca2ed, Linux 9f7cb3f01a10d9064cf13b3d26fb7e7a5827d098, Linux 4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.24% chance of exploitation in 30 days (percentile 9, 2026-11-26)
- CWE
- CWE-770
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 2ab21d6e1411999b5fb43434f421f00bf50002eb; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 2c835fede13e03f2743a333e4370b5ed2db91e83; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 8d83f109e920d2776991fa142bb904d985dca2ed; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 9f7cb3f01a10d9064cf13b3d26fb7e7a5827d098; >= add1aaeabe6b08ed26381a2a06e505b2f09c3ba5, < 4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de | — | cvelist |
| Linux | 3.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/2ab21d6e1411999b5fb43434f421f00bf50002eb
- https://git.kernel.org/stable/c/2c835fede13e03f2743a333e4370b5ed2db91e83
- https://git.kernel.org/stable/c/8d83f109e920d2776991fa142bb904d985dca2ed
- https://git.kernel.org/stable/c/9f7cb3f01a10d9064cf13b3d26fb7e7a5827d098
- https://git.kernel.org/stable/c/4f2629ea67e7225c3fd292c7fe4f5b3c9d6392de
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.