Bug 2586223 (CVE-2026-138892) - CVE-2026-138892 kernel: kernel: Denial of Service via oversized memory allocations in GadgetFS
Summary: CVE-2026-138892 kernel: kernel: Denial of Service via oversized memory alloca...
Keywords:
Status: NEW
Alias: CVE-2026-138892
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 13:36 UTC by OSIDB Bzimport
Modified: 2026-11-30 16:51 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-30 13:36:06 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.