CVE-2025-68289: usb: gadget: f_eem: Fix memory leak in eem_unwrap

Published Dec 16, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: feem: Fix memory leak in eemunwrap

The existing code did not handle the failure case of usbepqueue in the command path, potentially leading to memory leaks.

Improve error handling to free all allocated resources on usbepqueue 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: slabpostallochook+0xbc/0x3a4 kmemcachealloc+0x1b4/0x358 skbclone+0x90/0xd8 eemunwrap+0x1cc/0x36c unreferenced object 0xffffff8a157f4000 (size 256): backtrace: slabpostallochook+0xbc/0x3a4 kmemcacheallocnode+0x1b4/0x2dc kmalloctrace+0x48/0x140 dwc3gadgetepallocrequest+0x58/0x11c usbepallocrequest+0x40/0xe4 eemunwrap+0x204/0x36c unreferenced object 0xffffff8aadbaac00 (size 128): backtrace: slabpostallochook+0xbc/0x3a4 kmemcacheallocnode+0x1b4/0x2dc kmalloc+0x64/0x1a8 eemunwrap+0x218/0x36c unreferenced object 0xffffff89ccef3500 (size 64): backtrace: slabpostallochook+0xbc/0x3a4 kmemcacheallocnode+0x1b4/0x2dc kmalloctrace+0x48/0x140 eemunwrap+0x238/0x36c

Affected Software

2 affected componentsFixes available
linux/kernel
Microsoft azl3 kernel 6.6.117.1-1

Event History

Dec 16, 2025
CVE Published
via MITRE·03:06 PM
Data Sourced
via MITRE·03:06 PM
Description
Data Sourced
via NVD·04:16 PM
Description
Dec 18, 2025
Data Sourced
via Microsoft·01:04 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-68289?

CVE-2025-68289 has a moderate severity level due to its potential for memory leaks in the Linux kernel.

2

How do I fix CVE-2025-68289?

To fix CVE-2025-68289, ensure that you update to the patched version of the Linux kernel where the memory leak issue is resolved.

3

What causes the vulnerability CVE-2025-68289?

CVE-2025-68289 is caused by improper error handling in the usb_ep_queue function, which can lead to memory leaks.

4

What versions of the Linux kernel are affected by CVE-2025-68289?

CVE-2025-68289 affects certain versions of the Linux kernel prior to the fix being applied in the latest kernel updates.

5

Are there any workarounds for CVE-2025-68289 before applying a patch?

There are no recommended workarounds for CVE-2025-68289; the best approach is to apply the necessary kernel updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203