# CVE-2026-138892: USB: gadgetfs: do not WARN about excessively large memory allocations

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-11-30T13:25:57.605Z
- Modified: 2026-11-30T14:17:46.913Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from b3c466ce512923298ae8c0121d3e9f397a3f1210 before 7e1b42e973d50f22211ceb3fea29a57709f9ce55; from b3c466ce512923298ae8c0121d3e9f397a3f1210 before 891f0110c4673802cf5b2923dfe252f53e60adeb; from b3c466ce512923298ae8c0121d3e9f397a3f1210 before abdcc0419e9d1f8d448095f685c82e49b6712fe6; from b3c466ce512923298ae8c0121d3e9f397a3f1210 before 50e5ee542ce5af4887d9a02ea5a2725b2f56985a; from b3c466ce512923298ae8c0121d3e9f397a3f1210 before 04b4bf0d8fe3431ac64629e35f6bfe294bb37160; from b3c466ce512923298ae8c0121d3e9f397a3f1210 before afc4b63805254c0c1ae515e69383567c8b57d6ac; from b3c466ce512923298ae8c0121d3e9f397a3f1210 before 1e482527aeb0cb45c923248961b82513801b64d4; from b3c466ce512923298ae8c0121d3e9f397a3f1210 before a156148976eac47bee7210097afbb609cafe88b6; 2.6.31 (not affected: before 2.6.31; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/7e1b42e973d50f22211ceb3fea29a57709f9ce55>
- <https://git.kernel.org/stable/c/891f0110c4673802cf5b2923dfe252f53e60adeb>
- <https://git.kernel.org/stable/c/abdcc0419e9d1f8d448095f685c82e49b6712fe6>
- <https://git.kernel.org/stable/c/50e5ee542ce5af4887d9a02ea5a2725b2f56985a>
- <https://git.kernel.org/stable/c/04b4bf0d8fe3431ac64629e35f6bfe294bb37160>
- <https://git.kernel.org/stable/c/afc4b63805254c0c1ae515e69383567c8b57d6ac>
- <https://git.kernel.org/stable/c/1e482527aeb0cb45c923248961b82513801b64d4>
- <https://git.kernel.org/stable/c/a156148976eac47bee7210097afbb609cafe88b6>

## Sources

- CVE List: [CVE-2026-138892](https://www.cve.org/CVERecord?id=CVE-2026-138892), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138892](https://nvd.nist.gov/vuln/detail/CVE-2026-138892), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138892 · Whole record: https://cve.day/CVE-2026-138892.json · Rebuilt by cve.day 2026-11-30T14:32:43.359Z
