CVE-2025-21838
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
07/03/2025
Last modified:
03/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
usb: gadget: core: flush gadget workqueue after device removal<br />
<br />
device_del() can lead to new work being scheduled in gadget->work<br />
workqueue. This is observed, for example, with the dwc3 driver with the<br />
following call stack:<br />
device_del()<br />
gadget_unbind_driver()<br />
usb_gadget_disconnect_locked()<br />
dwc3_gadget_pullup()<br />
dwc3_gadget_soft_disconnect()<br />
usb_gadget_set_state()<br />
schedule_work(&gadget->work)<br />
<br />
Move flush_work() after device_del() to ensure the workqueue is cleaned<br />
up.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 3.12 (including) | 6.1.130 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.6.80 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.12.16 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.13.4 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/399a45e5237ca14037120b1b895bd38a3b4492ea
- https://git.kernel.org/stable/c/859cb45aefa6de823b2fa7f229fe6d9562c9f3b7
- https://git.kernel.org/stable/c/97695b5a1b5467a4f91194db12160f56da445dfe
- https://git.kernel.org/stable/c/e3bc1a9a67ce33a2e761e6e7b7c2afc6cb9b7266
- https://git.kernel.org/stable/c/f894448f3904d7ad66fecef8f01fe0172629e091
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html



