5.5

CVE-2025-21838: usb: gadget: core: flush gadget workqueue after device removal

Modified
AliasesUBUNTU-CVE-2025-21838DEBIAN-CVE-2025-21838
Published 07-03-2025Last modified 15-10-2026

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.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.21%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 20 · Related 17

Timeline

  1. 07-03-2025
    PublishedVulnerability first disclosed.
  2. 15-10-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

Version check

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

References

20 links
Show all 20 references