{"id":"CVE-2026-138892","aliases":["CVE-2026-138892"],"related":[],"kind":"vulnerability","state":"published","title":"USB: gadgetfs: do not WARN about excessively large memory allocations","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nUSB: gadgetfs: do not WARN about excessively large memory allocations\n\nGadgetFS passes an excessively large user input len to kmalloc and kmalloc\ngives a WARN (see below for details).  Suppress it by passing __GFP_NOWARN\nto kmalloc used by both ep_write_iter() and ep_read_iter().  Follow the\nsame method as commit 4f2629ea67e72 (\"USB: usbfs: Don't WARN about\nexcessively large memory allocations\").\n\nkmalloc is used to allocate physically contiguous memory for kernel\nallocations.  For requests larger than KMALLOC_MAX_CACHE_SIZE, kmalloc\nuses the page allocator and can only support up to KMALLOC_MAX_SIZE.  For\nrequest sizes bigger than KMALLOC_MAX_SIZE, the page allocator can emit a\nWARN because kmalloc allocates an order greater than MAX_PAGE_ORDER.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nUSB: gadgetfs: do not WARN about excessively large memory allocations\n\nGadgetFS passes an excessively large user input len to kmalloc and kmalloc\ngives a WARN (see below for details).  Suppress it by passing __GFP_NOWARN\nto kmalloc used by both ep_write_iter() and ep_read_iter().  Follow the\nsame method as commit 4f2629ea67e72 (\"USB: usbfs: Don't WARN about\nexcessively large memory allocations\").\n\nkmalloc is used to allocate physically contiguous memory for kernel\nallocations.  For requests larger than KMALLOC_MAX_CACHE_SIZE, kmalloc\nuses the page allocator and can only support up to KMALLOC_MAX_SIZE.  For\nrequest sizes bigger than KMALLOC_MAX_SIZE, the page allocator can emit a\nWARN because kmalloc allocates an order greater than MAX_PAGE_ORDER.","source":"cvelist"}],"published":"2026-11-30T13:25:57.605Z","modified":"2026-11-30T14:17:46.913Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b3c466ce512923298ae8c0121d3e9f397a3f1210","fixed":"7e1b42e973d50f22211ceb3fea29a57709f9ce55","status":"affected"},{"type":"git","introduced":"b3c466ce512923298ae8c0121d3e9f397a3f1210","fixed":"891f0110c4673802cf5b2923dfe252f53e60adeb","status":"affected"},{"type":"git","introduced":"b3c466ce512923298ae8c0121d3e9f397a3f1210","fixed":"abdcc0419e9d1f8d448095f685c82e49b6712fe6","status":"affected"},{"type":"git","introduced":"b3c466ce512923298ae8c0121d3e9f397a3f1210","fixed":"50e5ee542ce5af4887d9a02ea5a2725b2f56985a","status":"affected"},{"type":"git","introduced":"b3c466ce512923298ae8c0121d3e9f397a3f1210","fixed":"04b4bf0d8fe3431ac64629e35f6bfe294bb37160","status":"affected"},{"type":"git","introduced":"b3c466ce512923298ae8c0121d3e9f397a3f1210","fixed":"afc4b63805254c0c1ae515e69383567c8b57d6ac","status":"affected"},{"type":"git","introduced":"b3c466ce512923298ae8c0121d3e9f397a3f1210","fixed":"1e482527aeb0cb45c923248961b82513801b64d4","status":"affected"},{"type":"git","introduced":"b3c466ce512923298ae8c0121d3e9f397a3f1210","fixed":"a156148976eac47bee7210097afbb609cafe88b6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.31","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.31","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7e1b42e973d50f22211ceb3fea29a57709f9ce55","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/891f0110c4673802cf5b2923dfe252f53e60adeb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/abdcc0419e9d1f8d448095f685c82e49b6712fe6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/50e5ee542ce5af4887d9a02ea5a2725b2f56985a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/04b4bf0d8fe3431ac64629e35f6bfe294bb37160","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/afc4b63805254c0c1ae515e69383567c8b57d6ac","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1e482527aeb0cb45c923248961b82513801b64d4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a156148976eac47bee7210097afbb609cafe88b6","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138892","url":"https://www.cve.org/CVERecord?id=CVE-2026-138892","licence":"CVE Terms of Use","modified":"2026-11-30T13:25:57.605Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138892","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138892","licence":"Public domain","modified":"2026-11-30T14:17:46.913Z"}],"updatedAt":"2026-11-30T14:32:43.359Z","epss":{"score":0.0022,"percentile":0.13413,"date":"2026-12-01T12:00:22.000Z"}}