CVE-2025-21838

CVE-2025-21838

Medium · published March 7, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
10.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00208 · 10.3th percentile
Published
2025-03-07T14:15Z
Affected products (6)
ProductVersionsFixed in
linux/linux_kernel≥ 3.12, < 6.1.1306.1.130
linux/linux_kernel≥ 6.2, < 6.6.806.6.80
linux/linux_kernel≥ 6.7, < 6.12.166.12.16
linux/linux_kernel≥ 6.13, < 6.13.46.13.4
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (7)
EPSS history
Timeline
  • 07 MAR 09:09Z
    usb: gadget: core: flush gadget workqueue after device removal
    cvelistv5