# CVE-2026-64242: usb: gadget: net2280: Fix double free in probe error path

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-07-24T15:27:44.730Z
- Modified: 2026-11-08T16:10:00.183Z
- Weaknesses: CWE-415
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from f770fbec4165b1acfabdeadb01ad6008d2c537b5 before 71b3391dc81655ff058492f8e9d013b2c6e5747b; from f770fbec4165b1acfabdeadb01ad6008d2c537b5 before 550fa4d071a8c8e53072900869d37ae6abf4999d; from f770fbec4165b1acfabdeadb01ad6008d2c537b5 before c5b9fdb1e8ddf50bc6272927edb118679f170350; from f770fbec4165b1acfabdeadb01ad6008d2c537b5 before 085652fda7f38040d1a2c42d72614f418feb843f; from f770fbec4165b1acfabdeadb01ad6008d2c537b5 before 48f89ead20e48d447ad29fa937b43b9fa981cf28; from f770fbec4165b1acfabdeadb01ad6008d2c537b5 before e6f8be12f0307145b9a6010f044925952b37de8b; from f770fbec4165b1acfabdeadb01ad6008d2c537b5 before db2b72e83a0208ae2b3b270bf91662b1c6849a9b; from f770fbec4165b1acfabdeadb01ad6008d2c537b5 before c8547c74988e0b5f4cbb1b895e2a57aae084f070; 5.10 (not affected: before 5.10; from 5.10.259 up to 5.10.*; from 5.15.210 up to 5.15.*; from 6.1.176 up to 6.1.*; from 6.6.143 up to 6.6.*; from 6.12.93 up to 6.12.*; from 6.18.35 up to 6.18.*; from 7.0.12 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 5.10 before 5.10.259; from 5.11 before 5.15.210; from 5.16 before 6.1.176; from 6.2 before 6.6.143; from 6.7 before 6.12.93; from 6.13 before 6.18.35; from 6.19 before 7.0.12; 7.1

## References

- <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)

## Sources

- CVE List: [CVE-2026-64242](https://www.cve.org/CVERecord?id=CVE-2026-64242), CVE Terms of Use, modified 2026-07-24
- NVD: [CVE-2026-64242](https://nvd.nist.gov/vuln/detail/CVE-2026-64242), Public domain, modified 2026-11-08

---

Page: https://cve.day/CVE-2026-64242 · Whole record: https://cve.day/CVE-2026-64242.json · Rebuilt by cve.day 2026-11-25T22:59:30.014Z
