usb: gadget: f_eem: Fix memory leak in eem_unwrap
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
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
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.10.50 to before 5.10.247; 4.4.276 to before 4.5; 4.9.276 to before 4.10; 4.14.240 to before 4.15; 4.19.198 to before 4.20; 5.4.132 to before 5.5; 5.12.17 to before 5.13; 5.13.2 to before 5.14 | 5.10.247, 4.5, 4.10, 4.15, 4.20, 5.5, 5.13, 5.14 | Patch available | CNA |
| Linux | Linux | 5.14 and later | 5.10.247, 5.15.197, 6.1.159, 6.6.119, 6.12.61, 6.17.11, 6.18 | Patch available | CNA |
- Linux VendorLinux Affected 5.10.50 to before 5.10.247; 4.4.276 to before 4.5; 4.9.276 to before 4.10; 4.14.240 to before 4.15; 4.19.198 to before 4.20; 5.4.132 to before 5.5; 5.12.17 to before 5.13; 5.13.2 to before 5.14 Fixed in 5.10.247, 4.5, 4.10, 4.15, 4.20, 5.5, 5.13, 5.14 Patch available CNA
- Linux VendorLinux Affected 5.14 and later Fixed in 5.10.247, 5.15.197, 6.1.159, 6.6.119, 6.12.61, 6.17.11, 6.18 Patch available CNA
Remediation
- Fix · CNA Linux (Linux) Fixed in 5.10.247, 4.5, 4.10, 4.15, 4.20, 5.5, 5.13, 5.14
- Fix · CNA Linux (Linux) Fixed in 5.10.247, 5.15.197, 6.1.159, 6.6.119, 6.12.61, 6.17.11, 6.18
Vendor assessments
Red Hat
Not affected: 5 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2025-68289
- 2026-10-03 Alias added: GHSA-q5w7-j8ph-9r7q
References
Other 7
- https://git.kernel.org/stable/c/a9985a88b2fc29fbe1657fe8518908e261d6889c
- https://git.kernel.org/stable/c/5a1628283cd9dccf1e44acfb74e77504f4dc7472
- https://git.kernel.org/stable/c/0ac07e476944a5e4c2b8b087dd167dec248c1bdf
- https://git.kernel.org/stable/c/41434488ca714ab15cb2a4d0378418d1be8052d2
- https://git.kernel.org/stable/c/e72c963177c708a167a7e17ed6c76320815157cf
- https://git.kernel.org/stable/c/0dea2e0069a7e9aa034696f8065945b7be6dd6b7
- https://git.kernel.org/stable/c/e4f5ce990818d37930cd9fb0be29eee0553c59d9
More Linux vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Incorrect authorization in Ubuntu linux kernel KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2025-68289 · CVE Program
- CVE-2025-68289 · NVD
- FIRST EPSS
- GHSA-q5w7-j8ph-9r7q · GitHub Advisory Database · CC BY 4.0
- CVE-2025-68289 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences