CVE-2025-21838
usb: gadget: core: flush gadget workqueue after device removal
Check your servers for CVE-2025-21838
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-2025-21838 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: core: flush gadget workqueue after device removal
device_del() can lead to new work being scheduled in gadget->work workqueue. This is observed, for example, with the dwc3 driver with the following call stack: device_del() gadget_unbind_driver() usb_gadget_disconnect_locked() dwc3_gadget_pullup() dwc3_gadget_soft_disconnect() usb_gadget_set_state() schedule_work(&gadget->work)
Move flush_work() after device_del() to ensure the workqueue is cleaned up.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.6% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15, before e3bc1a9a67ce33a2e761e6e7b7c2afc6cb9b7266 affected from 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15, before 859cb45aefa6de823b2fa7f229fe6d9562c9f3b7 affected from 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15, before f894448f3904d7ad66fecef8f01fe0172629e091 affected from 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15, before 97695b5a1b5467a4f91194db12160f56da445dfe affected from 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15, before 399a45e5237ca14037120b1b895bd38a3b4492ea
Other versions: unaffected
|
| Linux |
affected 3.12 unaffected before 3.12 unaffected from 6.1.130 up to and including 6.1.* unaffected from 6.6.80 up to and including 6.6.* unaffected from 6.12.16 up to and including 6.12.* unaffected from 6.13.4 up to and including 6.13.* unaffected 6.14 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-2025-21838 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21838
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-2025-21838
trivy image --scanners vuln IMAGE | grep CVE-2025-21838
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/e3bc1a9a67ce33a2e761e6e7b7c2afc6cb9b7266 git.kernel.org
- https://git.kernel.org/stable/c/859cb45aefa6de823b2fa7f229fe6d9562c9f3b7 git.kernel.org
- https://git.kernel.org/stable/c/f894448f3904d7ad66fecef8f01fe0172629e091 git.kernel.org
- https://git.kernel.org/stable/c/97695b5a1b5467a4f91194db12160f56da445dfe git.kernel.org
- https://git.kernel.org/stable/c/399a45e5237ca14037120b1b895bd38a3b4492ea git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html cert-portal.siemens.com
Source: the record CVE-2025-21838 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse