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

Published Nov 30, 2026
·
Updated

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 GFPNOWARN to kmalloc used by both epwriteiter() and epreaditer(). 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 KMALLOCMAXCACHESIZE, kmalloc uses the page allocator and can only support up to KMALLOCMAXSIZE. For request sizes bigger than KMALLOCMAXSIZE, the page allocator can emit a WARN because kmalloc allocates an order greater than MAXPAGEORDER.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Pass __GFP_NOWARN to the kmalloc calls used by GadgetFS ep_write_iter() and ep_read_iter() to suppress warnings for excessively large allocations.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203