CVE-2026-64242

Source
https://cve.org/CVERecord?id=CVE-2026-64242
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64242.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64242
Downstream
Published
2026-07-24T15:27:44.730Z
Modified
2026-07-27T04:03:19.810291180Z
Summary
usb: gadget: net2280: Fix double free in probe error path
Details

In the Linux kernel, the following vulnerability has been resolved:

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

usbinitializegadget() installs gadgetrelease() as the release callback for the embedded gadget device. The struct net2280 instance is therefore released through gadgetrelease() when the gadget device's last reference is dropped.

The probe error path calls net2280remove(), which tears down the partially initialized device and drops the gadget reference with usbput_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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64242.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f770fbec4165b1acfabdeadb01ad6008d2c537b5
Fixed
71b3391dc81655ff058492f8e9d013b2c6e5747b
Fixed
550fa4d071a8c8e53072900869d37ae6abf4999d
Fixed
c5b9fdb1e8ddf50bc6272927edb118679f170350
Fixed
085652fda7f38040d1a2c42d72614f418feb843f
Fixed
48f89ead20e48d447ad29fa937b43b9fa981cf28
Fixed
e6f8be12f0307145b9a6010f044925952b37de8b
Fixed
db2b72e83a0208ae2b3b270bf91662b1c6849a9b
Fixed
c8547c74988e0b5f4cbb1b895e2a57aae084f070

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64242.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.10.0
Fixed
5.10.259
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.210
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.176
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.143
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.93
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.35
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.12

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64242.json"