0.0
NA
CVE-2026-64242
usb: gadget: net2280: Fix double free in probe error path
Description

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.

INFO

Published Date :

July 24, 2026, 4:16 p.m.

Last Modified :

July 24, 2026, 4:16 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-64242 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

Solution
Resolve double free by removing explicit kfree and relying on the gadget device release callback.
  • Remove explicit kfree in probe error path.
  • Allow gadget release callback to free the object.
  • Update the Linux kernel to include the fix.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-64242 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-64242 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-64242 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-64242 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jul. 24, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'f770fbec4165b1acfabdeadb01ad6008d2c537b5', 'lessThan': '71b3391dc81655ff058492f8e9d013b2c6e5747b', 'versionType': 'git'}, {'status': 'affected', 'version': 'f770fbec4165b1acfabdeadb01ad6008d2c537b5', 'lessThan': '550fa4d071a8c8e53072900869d37ae6abf4999d', 'versionType': 'git'}, {'status': 'affected', 'version': 'f770fbec4165b1acfabdeadb01ad6008d2c537b5', 'lessThan': 'c5b9fdb1e8ddf50bc6272927edb118679f170350', 'versionType': 'git'}, {'status': 'affected', 'version': 'f770fbec4165b1acfabdeadb01ad6008d2c537b5', 'lessThan': '085652fda7f38040d1a2c42d72614f418feb843f', 'versionType': 'git'}, {'status': 'affected', 'version': 'f770fbec4165b1acfabdeadb01ad6008d2c537b5', 'lessThan': '48f89ead20e48d447ad29fa937b43b9fa981cf28', 'versionType': 'git'}, {'status': 'affected', 'version': 'f770fbec4165b1acfabdeadb01ad6008d2c537b5', 'lessThan': 'e6f8be12f0307145b9a6010f044925952b37de8b', 'versionType': 'git'}, {'status': 'affected', 'version': 'f770fbec4165b1acfabdeadb01ad6008d2c537b5', 'lessThan': 'db2b72e83a0208ae2b3b270bf91662b1c6849a9b', 'versionType': 'git'}, {'status': 'affected', 'version': 'f770fbec4165b1acfabdeadb01ad6008d2c537b5', 'lessThan': 'c8547c74988e0b5f4cbb1b895e2a57aae084f070', 'versionType': 'git'}], 'programFiles': ['drivers/usb/gadget/udc/net2280.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.10'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.10', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.259', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.210', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.176', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.143', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.93', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.35', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.12', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/usb/gadget/udc/net2280.c'], 'defaultStatus': 'affected'}]
    Added Description 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.
    Added Reference https://git.kernel.org/stable/c/085652fda7f38040d1a2c42d72614f418feb843f
    Added Reference https://git.kernel.org/stable/c/48f89ead20e48d447ad29fa937b43b9fa981cf28
    Added Reference https://git.kernel.org/stable/c/550fa4d071a8c8e53072900869d37ae6abf4999d
    Added Reference https://git.kernel.org/stable/c/71b3391dc81655ff058492f8e9d013b2c6e5747b
    Added Reference https://git.kernel.org/stable/c/c5b9fdb1e8ddf50bc6272927edb118679f170350
    Added Reference https://git.kernel.org/stable/c/c8547c74988e0b5f4cbb1b895e2a57aae084f070
    Added Reference https://git.kernel.org/stable/c/db2b72e83a0208ae2b3b270bf91662b1c6849a9b
    Added Reference https://git.kernel.org/stable/c/e6f8be12f0307145b9a6010f044925952b37de8b
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.