CVE-2025-68289
usb: gadget: f_eem: Fix memory leak in eem_unwrap
Reported by linux · Published December 16, 2025
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_eem: Fix memory leak in eem_unwrap The existing code did not handle the failure case of usb_ep_queue in the command path, potentially leading to memory leaks. Improve error handling to free all allocated resources on usb_ep_queue failure. This patch continues to use goto logic for error handling, as the existing error handling is complex and not easily adaptable to auto-cleanup helpers. kmemleak results: unreferenced object 0xffffff895a512300 (size 240): backtrace: slab_post_alloc_hook+0xbc/0x3a4 kmem_cache_alloc+0x1b4/0x358 skb_clone+0x90/0xd8 eem_unwrap+0x1cc/0x36c unreferenced object 0xffffff8a157f4000 (size 256): backtrace: slab_post_alloc_hook+0xbc/0x3a4 __kmem_cache_alloc_node+0x1b4/0x2dc kmalloc_trace+0x48/0x140 dwc3_gadget_ep_alloc_request+0x58/0x11c usb_ep_alloc_request+0x40/0xe4 eem_unwrap+0x204/0x36c unreferenced object 0xffffff8aadbaac00 (size 128): backtrace: slab_post_alloc_hook+0xbc/0x3a4 __kmem_cache_alloc_node+0x1b4/0x2dc __kmalloc+0x64/0x1a8 eem_unwrap+0x218/0x36c unreferenced object 0xffffff89ccef3500 (size 64): backtrace: slab_post_alloc_hook+0xbc/0x3a4 __kmem_cache_alloc_node+0x1b4/0x2dc kmalloc_trace+0x48/0x140 eem_unwrap+0x238/0x36c
EPSS 0.22% · 12.6th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.18, 6.17.11, 6.12.61, 6.6.119, 6.1.159, 5.15.197, 5.10.247 |
| Linux | Linux | 41434488ca714ab15cb2a4d0378418d1be8052d2, 0ac07e476944a5e4c2b8b087dd167dec248c1bdf |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 3b545788505b2e2883aff13bdddeacaf88942a4f, 4249d6fbc10fd997abdf8a1ea49c0389a0edf706, 4249d6fbc10fd997abdf8a1ea49c0389a0edf706 |
| Linux | Linux | 5.14, 0, 5.10.247 |
| linux | linux_kernel | 5.10.50, 5.14, 5.14 |
| Linux | Linux | 3b545788505b2e2883aff13bdddeacaf88942a4f, 4249d6fbc10fd997abdf8a1ea49c0389a0edf706, 4249d6fbc10fd997abdf8a1ea49c0389a0edf706 |
Timeline
- Dec 16, 2025 CVE Published
- Dec 17, 2025 EPSS Score (30 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (174 in total, the first dated here)
- Mar 29, 2026 Security Advisory (181 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-68289
vulnetix vdb fixes CVE-2025-68289
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-68289/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart