Not rated
CVE-2025-21838 usb: gadget: core: flush gadget workqueue after device removal
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.
Affected products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Linux 6.14 | earliest → < 6.14 | 6.14 |
| Linux 6.13 | earliest → < 6.13.4 | 6.13.4 |
| Linux 6.12 | earliest → < 6.12.16 | 6.12.16 |
| Linux 6.6 | earliest → < 6.6.80 | 6.6.80 |
| Linux 6.1 | earliest → < 6.1.130 | 6.1.130 |
| Linux | 3.12 | No fix stated |
| SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | Versions not published |
Other CVEs of Linux
The 18286 CVEs of Linux →
CVE-2026-100082
xen-blkback: Avoid UAF when reading I/O statistics
Not rated
CVE-2026-100081
xen-netback: defer xenvif_mcast_addr_list_free()
Not rated
CVE-2026-100080
xen-netback: Fix UAF when reading statistics data
Not rated
CVE-2026-99270
tcp: Fix potential UAF in reqsk_timer_handler().
8.1
High