CVE-2026-138892
USB: gadgetfs: do not WARN about excessively large memory allocations
Check your servers for CVE-2026-138892
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138892 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from b3c466ce512923298ae8c0121d3e9f397a3f1210, before 7e1b42e973d50f22211ceb3fea29a57709f9ce55 affected from b3c466ce512923298ae8c0121d3e9f397a3f1210, before 891f0110c4673802cf5b2923dfe252f53e60adeb affected from b3c466ce512923298ae8c0121d3e9f397a3f1210, before abdcc0419e9d1f8d448095f685c82e49b6712fe6 affected from b3c466ce512923298ae8c0121d3e9f397a3f1210, before 50e5ee542ce5af4887d9a02ea5a2725b2f56985a affected from b3c466ce512923298ae8c0121d3e9f397a3f1210, before 04b4bf0d8fe3431ac64629e35f6bfe294bb37160 affected from b3c466ce512923298ae8c0121d3e9f397a3f1210, before afc4b63805254c0c1ae515e69383567c8b57d6ac affected from b3c466ce512923298ae8c0121d3e9f397a3f1210, before 1e482527aeb0cb45c923248961b82513801b64d4 affected from b3c466ce512923298ae8c0121d3e9f397a3f1210, before a156148976eac47bee7210097afbb609cafe88b6
Other versions: unaffected
|
| Linux |
affected 2.6.31 unaffected before 2.6.31 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.63 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-138892 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138892
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-138892
trivy image --scanners vuln IMAGE | grep CVE-2026-138892
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/7e1b42e973d50f22211ceb3fea29a57709f9ce55 git.kernel.org
- https://git.kernel.org/stable/c/891f0110c4673802cf5b2923dfe252f53e60adeb git.kernel.org
- https://git.kernel.org/stable/c/abdcc0419e9d1f8d448095f685c82e49b6712fe6 git.kernel.org
- https://git.kernel.org/stable/c/50e5ee542ce5af4887d9a02ea5a2725b2f56985a git.kernel.org
- https://git.kernel.org/stable/c/04b4bf0d8fe3431ac64629e35f6bfe294bb37160 git.kernel.org
- https://git.kernel.org/stable/c/afc4b63805254c0c1ae515e69383567c8b57d6ac git.kernel.org
- https://git.kernel.org/stable/c/1e482527aeb0cb45c923248961b82513801b64d4 git.kernel.org
- https://git.kernel.org/stable/c/a156148976eac47bee7210097afbb609cafe88b6 git.kernel.org
Source: the record CVE-2026-138892 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse