CVE-2026-138892

Source
https://cve.org/CVERecord?id=CVE-2026-138892
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138892.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138892
Downstream
Published
2026-11-30T13:25:57Z
Modified
2026-11-30T15:01:18Z
Summary
USB: gadgetfs: do not WARN about excessively large memory allocations
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138892.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b3c466ce512923298ae8c0121d3e9f397a3f1210
Fixed
7e1b42e973d50f22211ceb3fea29a57709f9ce55
Fixed
891f0110c4673802cf5b2923dfe252f53e60adeb
Fixed
abdcc0419e9d1f8d448095f685c82e49b6712fe6
Fixed
50e5ee542ce5af4887d9a02ea5a2725b2f56985a
Fixed
04b4bf0d8fe3431ac64629e35f6bfe294bb37160
Fixed
afc4b63805254c0c1ae515e69383567c8b57d6ac
Fixed
1e482527aeb0cb45c923248961b82513801b64d4
Fixed
a156148976eac47bee7210097afbb609cafe88b6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138892.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.31
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138892.json"