Back to overview

CVE-2026-64242

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.

Metadata

CVE ID
CVE-2026-64242
State
PUBLISHED
Assigner
Linux
Reserved
2026-07-19 15:36 UTC
Published
2026-07-24 15:27 UTC
Last updated
2026-07-24 15:27 UTC
Vendor / Product
Linux / Linux
Sources
cve.org  ·  NVD

Severity & Metrics

No CVSS data available.

Affected products (2)
VendorProductPlatformVersions
Linux Linux f770fbec4165b1acfabdeadb01ad6008d2c537b5 < 71b3391dc81655ff058492f8e9d013b2c6e5747b, f770fbec4165b1acfabdeadb01ad6008d2c537b5 < 550fa4d071a8c8e53072900869d37ae6abf4999d, f770fbec4165b1acfabdeadb01ad6008d2c537b5 < c5b9fdb1e8ddf50bc6272927edb118679f170350, f770fbec4165b1acfabdeadb01ad6008d2c537b5 < 085652fda7f38040d1a2c42d72614f418feb843f …
Linux Linux 5.10, 0 < 5.10, 5.10.259 ≤ 5.10.*, 5.15.210 ≤ 5.15.* …
Back to overview