CVE-2026-138892
publishedUSB: gadgetfs: do not WARN about excessively large memory allocations
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb3c466ce512923298ae8c0121d3e9f397a3f1210 to < 7e1b42e973d50f22211ceb3fea29a57709f9ce55 · b3c466ce512923298ae8c0121d3e9f397a3f1210 to < 891f0110c4673802cf5b2923dfe252f53e60adeb · b3c466ce512923298ae8c0121d3e9f397a3f1210 to < abdcc0419e9d1f8d448095f685c82e49b6712fe6 · b3c466ce512923298ae8c0121d3e9f397a3f1210 to < 50e5ee542ce5af4887d9a02ea5a2725b2f56985a · b3c466ce512923298ae8c0121d3e9f397a3f1210 to < 04b4bf0d8fe3431ac64629e35f6bfe294bb37160 · b3c466ce512923298ae8c0121d3e9f397a3f1210 to < afc4b63805254c0c1ae515e69383567c8b57d6ac · b3c466ce512923298ae8c0121d3e9f397a3f1210 to < 1e482527aeb0cb45c923248961b82513801b64d4 · b3c466ce512923298ae8c0121d3e9f397a3f1210 to < a156148976eac47bee7210097afbb609cafe88b6 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.31 (affected) · 0 to < 2.6.31 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: USB: gadgetfs: do not WARN about excessively large memory allocations GadgetFS passes an excessively large user input len to kmalloc and kmalloc gives a WARN (see below for details). Suppress it by passing __GFP_NOWARN to kmalloc used by both ep_write_iter() and ep_read_iter(). Follow the same method as commit 4f2629ea67e72 ("USB: usbfs: Don't WARN about excessively large memory allocations"). kmalloc is used to allocate physically contiguous memory for kernel allocations. For requests larger than KMALLOC_MAX_CACHE_SIZE, kmalloc uses the page allocator and can only support up to KMALLOC_MAX_SIZE. For request sizes bigger than KMALLOC_MAX_SIZE, the page allocator can emit a WARN because kmalloc allocates an order greater than MAX_PAGE_ORDER.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b3c466ce512923298ae8c0121d3e9f397a3f1210 to < 7e1b42e973d50f22211ceb3fea29a57709f9ce55 (affected · git)b3c466ce512923298ae8c0121d3e9f397a3f1210 to < 891f0110c4673802cf5b2923dfe252f53e60adeb (affected · git)b3c466ce512923298ae8c0121d3e9f397a3f1210 to < abdcc0419e9d1f8d448095f685c82e49b6712fe6 (affected · git)b3c466ce512923298ae8c0121d3e9f397a3f1210 to < 50e5ee542ce5af4887d9a02ea5a2725b2f56985a (affected · git)b3c466ce512923298ae8c0121d3e9f397a3f1210 to < 04b4bf0d8fe3431ac64629e35f6bfe294bb37160 (affected · git)b3c466ce512923298ae8c0121d3e9f397a3f1210 to < afc4b63805254c0c1ae515e69383567c8b57d6ac (affected · git)b3c466ce512923298ae8c0121d3e9f397a3f1210 to < 1e482527aeb0cb45c923248961b82513801b64d4 (affected · git)b3c466ce512923298ae8c0121d3e9f397a3f1210 to < a156148976eac47bee7210097afbb609cafe88b6 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.31 (affected)0 to < 2.6.31 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/04b4bf0d8fe3431ac64629e35f6bfe294bb37160
- https://git.kernel.org/stable/c/1e482527aeb0cb45c923248961b82513801b64d4
- https://git.kernel.org/stable/c/50e5ee542ce5af4887d9a02ea5a2725b2f56985a
- https://git.kernel.org/stable/c/7e1b42e973d50f22211ceb3fea29a57709f9ce55
- https://git.kernel.org/stable/c/891f0110c4673802cf5b2923dfe252f53e60adeb
- https://git.kernel.org/stable/c/a156148976eac47bee7210097afbb609cafe88b6
- https://git.kernel.org/stable/c/abdcc0419e9d1f8d448095f685c82e49b6712fe6
- https://git.kernel.org/stable/c/afc4b63805254c0c1ae515e69383567c8b57d6ac
Provider assertions
1Linux · cna
USB: gadgetfs: do not WARN about excessively large memory allocations
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6bff4f7d9d0f475fa625fc848d5ab99056575f651fa34e28c01ebfcb0ff82d14
- Ingested
- 30 Nov 2026, 13:30:06 UTC
- Source record
- Official CVE record