Bug 2407339 (CVE-2025-40095) - CVE-2025-40095 kernel: usb: gadget: f_rndis: Refactor bind path to use __free()
Summary: CVE-2025-40095 kernel: usb: gadget: f_rndis: Refactor bind path to use __free()
Keywords:
Status: NEW
Alias: CVE-2025-40095
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
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-11-26 13:29 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:23 UTC
In the Linux kernel, the following vulnerability has been resolved:

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

After an bind/unbind cycle, the rndis->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.