{"id":"CVE-2026-64242","aliases":["CVE-2026-64242"],"related":[],"kind":"vulnerability","state":"published","title":"usb: gadget: net2280: Fix double free in probe error path","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nusb: gadget: net2280: Corrección de doble liberación en la ruta de error de sondeo\n\nusb_initialize_gadget() instala gadget_release() como la función de devolución de llamada de liberación para el dispositivo gadget incrustado. La instancia de la estructura net2280 es, por lo tanto, liberada a través de gadget_release() cuando se elimina la última referencia del dispositivo gadget.\n\nLa ruta de error de sondeo llama a net2280_remove(), que desmantela el dispositivo parcialmente inicializado y elimina la referencia del gadget con usb_put_gadget(). Llamar a kfree(dev) después puede liberar el mismo objeto de nuevo.\n\nEliminar la llamada explícita a kfree() y dejar que la función de devolución de llamada de liberación del dispositivo gadget maneje la liberación final. Este problema fue encontrado por una herramienta de análisis estático que estoy desarrollando.","source":"nvd"}],"published":"2026-07-24T15:27:44.730Z","modified":"2026-11-08T16:10:00.183Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"f770fbec4165b1acfabdeadb01ad6008d2c537b5","fixed":"71b3391dc81655ff058492f8e9d013b2c6e5747b","status":"affected"},{"type":"git","introduced":"f770fbec4165b1acfabdeadb01ad6008d2c537b5","fixed":"550fa4d071a8c8e53072900869d37ae6abf4999d","status":"affected"},{"type":"git","introduced":"f770fbec4165b1acfabdeadb01ad6008d2c537b5","fixed":"c5b9fdb1e8ddf50bc6272927edb118679f170350","status":"affected"},{"type":"git","introduced":"f770fbec4165b1acfabdeadb01ad6008d2c537b5","fixed":"085652fda7f38040d1a2c42d72614f418feb843f","status":"affected"},{"type":"git","introduced":"f770fbec4165b1acfabdeadb01ad6008d2c537b5","fixed":"48f89ead20e48d447ad29fa937b43b9fa981cf28","status":"affected"},{"type":"git","introduced":"f770fbec4165b1acfabdeadb01ad6008d2c537b5","fixed":"e6f8be12f0307145b9a6010f044925952b37de8b","status":"affected"},{"type":"git","introduced":"f770fbec4165b1acfabdeadb01ad6008d2c537b5","fixed":"db2b72e83a0208ae2b3b270bf91662b1c6849a9b","status":"affected"},{"type":"git","introduced":"f770fbec4165b1acfabdeadb01ad6008d2c537b5","fixed":"c8547c74988e0b5f4cbb1b895e2a57aae084f070","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.259","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.210","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.176","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.143","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.93","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.35","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.12","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.10","fixed":"5.10.259"},{"status":"affected","introduced":"5.11","fixed":"5.15.210"},{"status":"affected","introduced":"5.16","fixed":"6.1.176"},{"status":"affected","introduced":"6.2","fixed":"6.6.143"},{"status":"affected","introduced":"6.7","fixed":"6.12.93"},{"status":"affected","introduced":"6.13","fixed":"6.18.35"},{"status":"affected","introduced":"6.19","fixed":"7.0.12"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/71b3391dc81655ff058492f8e9d013b2c6e5747b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/550fa4d071a8c8e53072900869d37ae6abf4999d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5b9fdb1e8ddf50bc6272927edb118679f170350","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/085652fda7f38040d1a2c42d72614f418feb843f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/48f89ead20e48d447ad29fa937b43b9fa981cf28","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e6f8be12f0307145b9a6010f044925952b37de8b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/db2b72e83a0208ae2b3b270bf91662b1c6849a9b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c8547c74988e0b5f4cbb1b895e2a57aae084f070","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64242","url":"https://www.cve.org/CVERecord?id=CVE-2026-64242","licence":"CVE Terms of Use","modified":"2026-07-24T15:27:44.730Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64242","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64242","licence":"Public domain","modified":"2026-11-08T16:10:00.183Z"}],"updatedAt":"2026-11-25T22:59:30.014Z","epss":{"score":0.00121,"percentile":0.02081,"date":"2026-12-01T12:00:22.000Z"}}