Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.10, < 5.10.259 |
Related Weaknesses (CWE)
References
- https://git.kernel.org/stable/c/085652fda7f38040d1a2c42d72614f418feb843fPatch
- https://git.kernel.org/stable/c/48f89ead20e48d447ad29fa937b43b9fa981cf28Patch
- https://git.kernel.org/stable/c/550fa4d071a8c8e53072900869d37ae6abf4999dPatch
- https://git.kernel.org/stable/c/71b3391dc81655ff058492f8e9d013b2c6e5747bPatch
- https://git.kernel.org/stable/c/c5b9fdb1e8ddf50bc6272927edb118679f170350Patch
- https://git.kernel.org/stable/c/c8547c74988e0b5f4cbb1b895e2a57aae084f070Patch
- https://git.kernel.org/stable/c/db2b72e83a0208ae2b3b270bf91662b1c6849a9bPatch
- https://git.kernel.org/stable/c/e6f8be12f0307145b9a6010f044925952b37de8bPatch
FAQ
What is CVE-2026-64242?
CVE-2026-64242 is a vulnerability with a CVSS score of 7.8 (HIGH). 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 callbac...
How severe is CVE-2026-64242?
CVE-2026-64242 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-64242?
Check the references section above for vendor advisories and patch information. Affected products include: Linux Linux Kernel.