CVE-2025-21838: usb: gadget: core: flush gadget workqueue after device removal
Vulnerability summary
CVE-2025-21838 is a medium (CVSS 5.5) vulnerability in linux. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 10.9% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 20 · Related 17Timeline
- 07-03-2025PublishedVulnerability first disclosed.
- 15-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.21%
Chance of exploitation in the next 30 days
Percentile
11%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.20% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu138 products
- linuxAll versions (No fix recorded) | < 6.8.0-78.78
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 6.8.0-1035.37
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15, < e3bc1a9a67ce33a2e761e6e7b7c2afc6cb9b7266 | ≥ 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15, < 859cb45aefa6de823b2fa7f229fe6d9562c9f3b7 | ≥ 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15, < f894448f3904d7ad66fecef8f01fe0172629e091 | ≥ 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15, < 97695b5a1b5467a4f91194db12160f56da445dfe | ≥ 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15, < 399a45e5237ca14037120b1b895bd38a3b4492ea | 3.12
- linux_kernel≥ 3.12, < 6.1.130 | ≥ 6.2, < 6.6.80 | ≥ 6.7, < 6.12.16 | ≥ 6.13, < 6.13.4 | 6.14:rc1 | 6.14:rc2
Debian1 product
- linux< 6.1.133-1 | < 6.12.16-1
3 vendors · 141 products