CVE-2026-64242

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*

History

08 Nov 2026, 16:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: usb: gadget: net2280: Corrección de doble liberación en la ruta de error de sondeo usb_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. La 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. Eliminar 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.

13 Aug 2026, 17:22

Type Values Removed Values Added
CPE cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
CWE CWE-415
First Time Linux linux Kernel
Linux
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.8
References () https://git.kernel.org/stable/c/085652fda7f38040d1a2c42d72614f418feb843f - () https://git.kernel.org/stable/c/085652fda7f38040d1a2c42d72614f418feb843f - Patch
References () https://git.kernel.org/stable/c/48f89ead20e48d447ad29fa937b43b9fa981cf28 - () https://git.kernel.org/stable/c/48f89ead20e48d447ad29fa937b43b9fa981cf28 - Patch
References () https://git.kernel.org/stable/c/550fa4d071a8c8e53072900869d37ae6abf4999d - () https://git.kernel.org/stable/c/550fa4d071a8c8e53072900869d37ae6abf4999d - Patch
References () https://git.kernel.org/stable/c/71b3391dc81655ff058492f8e9d013b2c6e5747b - () https://git.kernel.org/stable/c/71b3391dc81655ff058492f8e9d013b2c6e5747b - Patch
References () https://git.kernel.org/stable/c/c5b9fdb1e8ddf50bc6272927edb118679f170350 - () https://git.kernel.org/stable/c/c5b9fdb1e8ddf50bc6272927edb118679f170350 - Patch
References () https://git.kernel.org/stable/c/c8547c74988e0b5f4cbb1b895e2a57aae084f070 - () https://git.kernel.org/stable/c/c8547c74988e0b5f4cbb1b895e2a57aae084f070 - Patch
References () https://git.kernel.org/stable/c/db2b72e83a0208ae2b3b270bf91662b1c6849a9b - () https://git.kernel.org/stable/c/db2b72e83a0208ae2b3b270bf91662b1c6849a9b - Patch
References () https://git.kernel.org/stable/c/e6f8be12f0307145b9a6010f044925952b37de8b - () https://git.kernel.org/stable/c/e6f8be12f0307145b9a6010f044925952b37de8b - Patch

24 Jul 2026, 16:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-24 16:16

Updated : 2026-11-08 16:10


NVD link : CVE-2026-64242

Mitre link : CVE-2026-64242

CVE.ORG link : CVE-2026-64242


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-415

Double Free