CVE-2026-64242

ANALYSIS PENDING

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

Title source: cna
STIX 2.1

Description

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.

Details

Status published
Products (25)
linux/Kernel 5.10.0 - 5.10.259linux
linux/Kernel 5.11.0 - 5.15.210linux
linux/Kernel 5.16.0 - 6.1.176linux
linux/Kernel 6.13.0 - 6.18.35linux
linux/Kernel 6.19.0 - 7.0.12linux
linux/Kernel 6.2.0 - 6.6.143linux
linux/Kernel 6.7.0 - 6.12.93linux
Linux/Linux < 5.10
Linux/Linux 5.10
Linux/Linux 5.10.259 - 5.10.*
... and 15 more
Published Jul 24, 2026
Tracked Since Jul 24, 2026