Bug 2506815 (CVE-2026-64242) - CVE-2026-64242 kernel: usb: gadget: net2280: Fix double free in probe error path
Summary: CVE-2026-64242 kernel: usb: gadget: net2280: Fix double free in probe error path
Keywords:
Status: NEW
Alias: CVE-2026-64242
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-24 16:05 UTC by OSIDB Bzimport
Modified: 2026-07-28 12:03 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-24 16:05:23 UTC
In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: net2280: Fix double free in probe error path

usb_initialize_gadget() installs gadget_release() as the release
callback for the embedded gadget device.  The struct net2280 instance is
therefore released through gadget_release() when the gadget device's last
reference is dropped.

The probe error path calls net2280_remove(), which tears down the
partially initialized device and drops the gadget reference with
usb_put_gadget().  Calling kfree(dev) afterwards can free the same object
again.

Drop the explicit kfree() and let the gadget device release callback
handle the final free.  This issue was found by a static analysis tool
I am developing.

Comment 1 Mauro Matteo Cascella 2026-07-28 11:57:08 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026072442-CVE-2026-64242-29e0@gregkh/T


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