Linux Kernel Memory Leak Vulnerability in USB Gadget Function EEM

Vulnerability

A memory leak vulnerability has been identified in the Linux kernel's USB gadget function, specifically in the echo Ethernet emulation model (f_eem). The issue arises because the code fails to properly manage errors when queuing USB endpoint requests, which can lead to unfreed memory. This vulnerability affects the Linux kernel stable tree.

Impact

The vulnerability can cause a memory leak, where allocated memory is not properly released, potentially leading to increased memory usage and degradation of system performance over time.

Reproduction

The vulnerability can be reproduced by triggering a failure in the usb_ep_queue function within the eem_unwrap function of the f_eem USB gadget. This can be done by simulating a condition where the endpoint queue cannot accept a request, such as by overloading the USB endpoint or introducing an error condition that the function does not handle properly. The failure can be observed through kmemleak, which will report unreferenced objects that were allocated but not freed, indicating a memory leak.

Remediation

Users can apply the latest patches available in the Linux kernel stable tree to address this vulnerability. The patch improves error handling in the eem_unwrap function to ensure that all allocated resources are freed when usb_ep_queue fails.

Added: Dec 16, 2025, 6:34 PM
Updated: Dec 16, 2025, 6:34 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
5.7
remediation
7.7
relevance
1.4
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.