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

Summary

CVECVE-2026-64242
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-07-24 16:16:53 UTC
Updated2026-07-24 16:16:53 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected f770fbec4165b1acfabdeadb01ad6008d2c537b5 71b3391dc81655ff058492f8e9d013b2c6e5747b git Not specified
CNA Linux Linux affected f770fbec4165b1acfabdeadb01ad6008d2c537b5 550fa4d071a8c8e53072900869d37ae6abf4999d git Not specified
CNA Linux Linux affected f770fbec4165b1acfabdeadb01ad6008d2c537b5 c5b9fdb1e8ddf50bc6272927edb118679f170350 git Not specified
CNA Linux Linux affected f770fbec4165b1acfabdeadb01ad6008d2c537b5 085652fda7f38040d1a2c42d72614f418feb843f git Not specified
CNA Linux Linux affected f770fbec4165b1acfabdeadb01ad6008d2c537b5 48f89ead20e48d447ad29fa937b43b9fa981cf28 git Not specified
CNA Linux Linux affected f770fbec4165b1acfabdeadb01ad6008d2c537b5 e6f8be12f0307145b9a6010f044925952b37de8b git Not specified
CNA Linux Linux affected f770fbec4165b1acfabdeadb01ad6008d2c537b5 db2b72e83a0208ae2b3b270bf91662b1c6849a9b git Not specified
CNA Linux Linux affected f770fbec4165b1acfabdeadb01ad6008d2c537b5 c8547c74988e0b5f4cbb1b895e2a57aae084f070 git Not specified
CNA Linux Linux affected 5.10 Not specified
CNA Linux Linux unaffected 5.10 semver Not specified
CNA Linux Linux unaffected 5.10.259 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.210 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.176 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.143 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.93 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.35 6.18.* semver Not specified
CNA Linux Linux unaffected 7.0.12 7.0.* semver Not specified
CNA Linux Linux unaffected 7.1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/db2b72e83a0208ae2b3b270bf91662b1c6849a9b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c5b9fdb1e8ddf50bc6272927edb118679f170350 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e6f8be12f0307145b9a6010f044925952b37de8b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c8547c74988e0b5f4cbb1b895e2a57aae084f070 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/550fa4d071a8c8e53072900869d37ae6abf4999d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/71b3391dc81655ff058492f8e9d013b2c6e5747b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/48f89ead20e48d447ad29fa937b43b9fa981cf28 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/085652fda7f38040d1a2c42d72614f418feb843f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report