7.8

CVE-2026-64242

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

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.
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
LinuxLinux Kernel Version >= 5.10 < 5.10.259
LinuxLinux Kernel Version >= 5.11 < 5.15.210
LinuxLinux Kernel Version >= 5.16 < 6.1.176
LinuxLinux Kernel Version >= 6.2 < 6.6.143
LinuxLinux Kernel Version >= 6.7 < 6.12.93
LinuxLinux Kernel Version >= 6.13 < 6.18.35
LinuxLinux Kernel Version >= 6.19 < 7.0.12
LinuxLinux Kernel Version7.1 Updaterc1
LinuxLinux Kernel Version7.1 Updaterc2
LinuxLinux Kernel Version7.1 Updaterc3
LinuxLinux Kernel Version7.1 Updaterc4
LinuxLinux Kernel Version7.1 Updaterc5
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.12% 0.022
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
NIST 7.8 1.8 5.9
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-415 Double Free

The product calls free() twice on the same memory address.

https://git.kernel.org/stable/c/71b3391dc81655ff058492f8e9d013b2c6e5747b
Patch
https://git.kernel.org/stable/c/550fa4d071a8c8e53072900869d37ae6abf4999d
Patch
https://git.kernel.org/stable/c/c5b9fdb1e8ddf50bc6272927edb118679f170350
Patch
https://git.kernel.org/stable/c/085652fda7f38040d1a2c42d72614f418feb843f
Patch
https://git.kernel.org/stable/c/48f89ead20e48d447ad29fa937b43b9fa981cf28
Patch
https://git.kernel.org/stable/c/e6f8be12f0307145b9a6010f044925952b37de8b
Patch
https://git.kernel.org/stable/c/db2b72e83a0208ae2b3b270bf91662b1c6849a9b
Patch
https://git.kernel.org/stable/c/c8547c74988e0b5f4cbb1b895e2a57aae084f070
Patch