CVE-2026-89739
usb: dwc3: gadget: Fix use-after-free in dwc3_gadget_free_endpoints due to race condition
Check your servers for CVE-2026-89739
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-89739 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: dwc3: gadget: Fix use-after-free in dwc3_gadget_free_endpoints due to race condition
In dwc3_gadget_init_endpoint, &dep->nostream_work is bound with dwc3_nostream_work, and dwc3_gadget_endpoint_stream_event can queue this delayed work on system_percpu_wq when a DEPEVT_STREAM_NOSTREAM event is received.
If we remove the gadget, dwc3_gadget_free_endpoints makes cleanup and the memory allocated for dep with kzalloc() is released by kfree(dep), while the delayed work mentioned above may still be pending or running. The sequence of operations that may lead to a UAF bug is as follows:
CPU0 CPU1
| dwc3_thread_interrupt | dwc3_endpoint_interrupt | dwc3_gadget_endpoint_stream_event | queue_delayed_work(system_percpu_wq, | &dep->nostream_work) dwc3_gadget_free_endpoints | dwc3_free_trb_pool(dep) | list_del(&dep->endpoint.ep_list) | dwc3_debugfs_remove_endpoint_dir(dep) | kfree(dep) | // dep is freed | | dwc3_nostream_work | // use dep (use-after-free)
Fix it by canceling the delayed work before kfree(dep) in dwc3_gadget_free_endpoints.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.6% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 5212f8f452b87318e735ca304728f6f8fb55ff7b, before 34b92575704f95802b60ff1c2a324a4b5c1f9fc4 affected from f41ffcd656615754741f190afca00ca3c4bde9f1, before 5f359265f616873edf32db418bd1513fdae3ddec affected from dcfe437492e27d54f3ac491aed024da760f5c43c, before 448e95c0f3eaa8d99f16ccae92ab94545f14413b affected from dcfe437492e27d54f3ac491aed024da760f5c43c, before 93e08b13a7a30e4e78556d993720e0bc36231ec7 affected from dcfe437492e27d54f3ac491aed024da760f5c43c, before 9c855832790cd488d87de1885974f4c37cfe7358 affected from 6.6.160, before 6.6.163
Other versions: unaffected
|
| Linux |
affected 6.14 unaffected before 6.14 unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.18.50 up to and including 6.18.* unaffected from 7.2.4 up to and including 7.2.* unaffected 7.3 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-89739 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-89739
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-89739
trivy image --scanners vuln IMAGE | grep CVE-2026-89739
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/34b92575704f95802b60ff1c2a324a4b5c1f9fc4 git.kernel.org
- https://git.kernel.org/stable/c/5f359265f616873edf32db418bd1513fdae3ddec git.kernel.org
- https://git.kernel.org/stable/c/448e95c0f3eaa8d99f16ccae92ab94545f14413b git.kernel.org
- https://git.kernel.org/stable/c/93e08b13a7a30e4e78556d993720e0bc36231ec7 git.kernel.org
- https://git.kernel.org/stable/c/9c855832790cd488d87de1885974f4c37cfe7358 git.kernel.org
Source: the record CVE-2026-89739 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