Bug 2407340 (CVE-2025-40093) - CVE-2025-40093 kernel: usb: gadget: f_ecm: Refactor bind path to use __free()
Summary: CVE-2025-40093 kernel: usb: gadget: f_ecm: Refactor bind path to use __free()
Keywords:
Status: NEW
Alias: CVE-2025-40093
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-30 10:02 UTC by OSIDB Bzimport
Modified: 2025-10-30 16:33 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-10-30 10:02:31 UTC
In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: f_ecm: Refactor bind path to use __free()

After an bind/unbind cycle, the ecm->notify_req is left stale. If a
subsequent bind fails, the unified error label attempts to free this
stale request, leading to a NULL pointer dereference when accessing
ep->ops->free_request.

Refactor the error handling in the bind path to use the __free()
automatic cleanup mechanism.


Note You need to log in before you can comment on or make changes to this bug.