CVE-2026-64242 is a vulnerability in Linux Kernel
Published on July 24, 2026
usb: gadget: net2280: Fix double free in probe error path
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.
Products Associated with CVE-2026-64242
Want to know whenever a new CVE is published for Linux Kernel? stack.watch will email you.
Affected Versions
Linux:- Version f770fbec4165b1acfabdeadb01ad6008d2c537b5 and below 71b3391dc81655ff058492f8e9d013b2c6e5747b is affected.
- Version f770fbec4165b1acfabdeadb01ad6008d2c537b5 and below 550fa4d071a8c8e53072900869d37ae6abf4999d is affected.
- Version f770fbec4165b1acfabdeadb01ad6008d2c537b5 and below c5b9fdb1e8ddf50bc6272927edb118679f170350 is affected.
- Version f770fbec4165b1acfabdeadb01ad6008d2c537b5 and below 085652fda7f38040d1a2c42d72614f418feb843f is affected.
- Version f770fbec4165b1acfabdeadb01ad6008d2c537b5 and below 48f89ead20e48d447ad29fa937b43b9fa981cf28 is affected.
- Version f770fbec4165b1acfabdeadb01ad6008d2c537b5 and below e6f8be12f0307145b9a6010f044925952b37de8b is affected.
- Version f770fbec4165b1acfabdeadb01ad6008d2c537b5 and below db2b72e83a0208ae2b3b270bf91662b1c6849a9b is affected.
- Version f770fbec4165b1acfabdeadb01ad6008d2c537b5 and below c8547c74988e0b5f4cbb1b895e2a57aae084f070 is affected.
- Version 5.10 is affected.
- Before 5.10 is unaffected.
- Version 5.10.259, <= 5.10.* is unaffected.
- Version 5.15.210, <= 5.15.* is unaffected.
- Version 6.1.176, <= 6.1.* is unaffected.
- Version 6.6.143, <= 6.6.* is unaffected.
- Version 6.12.93, <= 6.12.* is unaffected.
- Version 6.18.35, <= 6.18.* is unaffected.
- Version 7.0.12, <= 7.0.* is unaffected.
- Version 7.1, <= * is unaffected.