CVE-2026-64242: usb: gadget: net2280: Fix double free in probe error path
High 7.8 EPSS 0.1% Linux kernel
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.
- CVE-2026-64242CVE identifier
- 7.8CVSS 3.1 base score (high)
- 0.1%EPSS: chance of exploitation in the next 30 days (higher than 2% of CVEs)
- 2026-07-24published
What do these terms mean? CVE · CVSS score · exploited (KEV) · EPSS · backported fix · all terms
What to do now
- Check whether you run Linux kernel and which version (commands below).
- Install the fixed version for your system: see “Patch it” below.
- Reboot into the new kernel (uname -r to confirm); live patching (kpatch, Ubuntu Livepatch, SUSE kGraft/klp) can defer the reboot for some CVEs
Affected and fixed versions
Affected:
- Linux Linux f770fbec4165b1acfabdeadb01ad6008d2c537b5 to before 71b3391dc81655ff058492f8e9d013b2c6e5747b
- Linux Linux f770fbec4165b1acfabdeadb01ad6008d2c537b5 to before 550fa4d071a8c8e53072900869d37ae6abf4999d
- Linux Linux f770fbec4165b1acfabdeadb01ad6008d2c537b5 to before c5b9fdb1e8ddf50bc6272927edb118679f170350
- Linux Linux f770fbec4165b1acfabdeadb01ad6008d2c537b5 to before 085652fda7f38040d1a2c42d72614f418feb843f
- Linux Linux f770fbec4165b1acfabdeadb01ad6008d2c537b5 to before 48f89ead20e48d447ad29fa937b43b9fa981cf28
- Linux Linux f770fbec4165b1acfabdeadb01ad6008d2c537b5 to before e6f8be12f0307145b9a6010f044925952b37de8b
- Linux Linux f770fbec4165b1acfabdeadb01ad6008d2c537b5 to before db2b72e83a0208ae2b3b270bf91662b1c6849a9b
- Linux Linux f770fbec4165b1acfabdeadb01ad6008d2c537b5 to before c8547c74988e0b5f4cbb1b895e2a57aae084f070
- Linux Linux 5.10
Patch it
Use the commands for your system. Distribution packages often keep an older version number with the fix backported, so compare with the fixed package versions in the table below, not only with the upstream version.
Debian
sudo apt update
sudo apt install --only-upgrade linux-image-amd64Ubuntu
sudo apt update
sudo apt install --only-upgrade linux-image-generic (or the installed flavour: linux-image-aws, -azure, -gcp, -virtual)RHEL, AlmaLinux, Rocky, Oracle
sudo dnf upgrade --refresh kernelFedora
sudo dnf upgrade --refresh kernelSUSE / openSUSE
sudo zypper refresh
sudo zypper update kernel-defaultAmazon Linux
sudo dnf upgrade --releasever=latest kernel kernel6.12Arch Linux
sudo pacman -SyuAlpine
apk update && apk upgrade linux-lts linux-virtFreeBSD
not LinuxGeneral update steps for every system are on the Linux and Unix & BSD pages; after updating, see which services to restart.
Fix status in Linux distributions
| Release | Package | Status | Fixed version / advisory |
|---|---|---|---|
| Debian 12 | linux | fixed | 6.1.176-1 |
| Debian 13 | linux | fixed | 6.12.94-1 |
| Debian testing | linux | fixed | 7.0.12-1 |
From the Debian security tracker, Ubuntu CVE tracker and Red Hat Security Data API, refreshed every few hours.
Sources
- https://git.kernel.org/stable/c/71b3391dc81655ff058492f8e9d013b2c6e5747b
- https://git.kernel.org/stable/c/550fa4d071a8c8e53072900869d37ae6abf4999d
- https://git.kernel.org/stable/c/c5b9fdb1e8ddf50bc6272927edb118679f170350
- https://git.kernel.org/stable/c/085652fda7f38040d1a2c42d72614f418feb843f
- https://git.kernel.org/stable/c/48f89ead20e48d447ad29fa937b43b9fa981cf28
- https://git.kernel.org/stable/c/e6f8be12f0307145b9a6010f044925952b37de8b
- https://git.kernel.org/stable/c/db2b72e83a0208ae2b3b270bf91662b1c6849a9b
- https://git.kernel.org/stable/c/c8547c74988e0b5f4cbb1b895e2a57aae084f070
- CVE-2026-64242 on CVE.org
- CVE-2026-64242 on NVD
Page generated automatically from official sources on 2026-11-03 18:05 UTC. Always confirm with your vendor's advisory.