CVE-2026-64242
usb: gadget: net2280: Fix double free in probe error path
Check your servers for CVE-2026-64242
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-64242 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.12%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.08% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f770fbec4165b1acfabdeadb01ad6008d2c537b5, before 71b3391dc81655ff058492f8e9d013b2c6e5747b affected from f770fbec4165b1acfabdeadb01ad6008d2c537b5, before 550fa4d071a8c8e53072900869d37ae6abf4999d affected from f770fbec4165b1acfabdeadb01ad6008d2c537b5, before c5b9fdb1e8ddf50bc6272927edb118679f170350 affected from f770fbec4165b1acfabdeadb01ad6008d2c537b5, before 085652fda7f38040d1a2c42d72614f418feb843f affected from f770fbec4165b1acfabdeadb01ad6008d2c537b5, before 48f89ead20e48d447ad29fa937b43b9fa981cf28 affected from f770fbec4165b1acfabdeadb01ad6008d2c537b5, before e6f8be12f0307145b9a6010f044925952b37de8b affected from f770fbec4165b1acfabdeadb01ad6008d2c537b5, before db2b72e83a0208ae2b3b270bf91662b1c6849a9b affected from f770fbec4165b1acfabdeadb01ad6008d2c537b5, before c8547c74988e0b5f4cbb1b895e2a57aae084f070
Other versions: unaffected
|
| Linux |
affected 5.10 unaffected before 5.10 unaffected from 5.10.259 up to and including 5.10.* unaffected from 5.15.210 up to and including 5.15.* unaffected from 6.1.176 up to and including 6.1.* unaffected from 6.6.143 up to and including 6.6.* unaffected from 6.12.93 up to and including 6.12.* unaffected from 6.18.35 up to and including 6.18.* unaffected from 7.0.12 up to and including 7.0.* unaffected 7.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-64242 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-64242
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-64242
trivy image --scanners vuln IMAGE | grep CVE-2026-64242
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/71b3391dc81655ff058492f8e9d013b2c6e5747b git.kernel.org
- https://git.kernel.org/stable/c/550fa4d071a8c8e53072900869d37ae6abf4999d git.kernel.org
- https://git.kernel.org/stable/c/c5b9fdb1e8ddf50bc6272927edb118679f170350 git.kernel.org
- https://git.kernel.org/stable/c/085652fda7f38040d1a2c42d72614f418feb843f git.kernel.org
- https://git.kernel.org/stable/c/48f89ead20e48d447ad29fa937b43b9fa981cf28 git.kernel.org
- https://git.kernel.org/stable/c/e6f8be12f0307145b9a6010f044925952b37de8b git.kernel.org
- https://git.kernel.org/stable/c/db2b72e83a0208ae2b3b270bf91662b1c6849a9b git.kernel.org
- https://git.kernel.org/stable/c/c8547c74988e0b5f4cbb1b895e2a57aae084f070 git.kernel.org
Source: the record CVE-2026-64242 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse