{"id":"CVE-2026-64242","published":"2026-07-24T15:27:44Z","modified":"2026-07-24T15:27:44Z","title":"usb: gadget: net2280: Fix double free in probe error path","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: net2280: Fix double free in probe error path\n\nusb_initialize_gadget() installs gadget_release() as the release\ncallback for the embedded gadget device.  The struct net2280 instance is\ntherefore released through gadget_release() when the gadget device's last\nreference is dropped.\n\nThe probe error path calls net2280_remove(), which tears down the\npartially initialized device and drops the gadget reference with\nusb_put_gadget().  Calling kfree(dev) afterwards can free the same object\nagain.\n\nDrop the explicit kfree() and let the gadget device release callback\nhandle the final free.  This issue was found by a static analysis tool\nI am developing.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00176,"percentile":0.04254,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/71b3391dc81655ff058492f8e9d013b2c6e5747b","tags":[]},{"url":"https://git.kernel.org/stable/c/550fa4d071a8c8e53072900869d37ae6abf4999d","tags":[]},{"url":"https://git.kernel.org/stable/c/c5b9fdb1e8ddf50bc6272927edb118679f170350","tags":[]},{"url":"https://git.kernel.org/stable/c/085652fda7f38040d1a2c42d72614f418feb843f","tags":[]},{"url":"https://git.kernel.org/stable/c/48f89ead20e48d447ad29fa937b43b9fa981cf28","tags":[]},{"url":"https://git.kernel.org/stable/c/e6f8be12f0307145b9a6010f044925952b37de8b","tags":[]},{"url":"https://git.kernel.org/stable/c/db2b72e83a0208ae2b3b270bf91662b1c6849a9b","tags":[]},{"url":"https://git.kernel.org/stable/c/c8547c74988e0b5f4cbb1b895e2a57aae084f070","tags":[]}],"priority":{"score":0.9,"factors":[{"name":"EPSS percentile","points":0.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f770fbec4165b1acfabdeadb01ad6008d2c537b5, < 71b3391dc81655ff058492f8e9d013b2c6e5747b",">= f770fbec4165b1acfabdeadb01ad6008d2c537b5, < 550fa4d071a8c8e53072900869d37ae6abf4999d",">= f770fbec4165b1acfabdeadb01ad6008d2c537b5, < c5b9fdb1e8ddf50bc6272927edb118679f170350",">= f770fbec4165b1acfabdeadb01ad6008d2c537b5, < 085652fda7f38040d1a2c42d72614f418feb843f",">= f770fbec4165b1acfabdeadb01ad6008d2c537b5, < 48f89ead20e48d447ad29fa937b43b9fa981cf28",">= f770fbec4165b1acfabdeadb01ad6008d2c537b5, < e6f8be12f0307145b9a6010f044925952b37de8b",">= f770fbec4165b1acfabdeadb01ad6008d2c537b5, < db2b72e83a0208ae2b3b270bf91662b1c6849a9b",">= f770fbec4165b1acfabdeadb01ad6008d2c537b5, < c8547c74988e0b5f4cbb1b895e2a57aae084f070"]},{"vendor":"Linux","product":"Linux","versions":["5.10"]}],"euvd":{"id":"EUVD-2026-48651","exploited":false,"provenance":"source"}}