Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于设备移除后未刷新gadget工作队列。

AI Predicted 5.5 Difficulty: Hard EPSS 0.21% · P10

Affected Version Matrix 12

VendorProduct Version RangeStatus
Linux Linux 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15< e3bc1a9a67ce33a2e761e6e7b7c2afc6cb9b7266 affected
5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15< 859cb45aefa6de823b2fa7f229fe6d9562c9f3b7 affected
5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15< f894448f3904d7ad66fecef8f01fe0172629e091 affected
5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15< 97695b5a1b5467a4f91194db12160f56da445dfe affected
5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15< 399a45e5237ca14037120b1b895bd38a3b4492ea affected
3.12 affected
< 3.12 unaffected
6.1.130≤ 6.1.* unaffected
… +4 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-21838

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
usb: gadget: core: flush gadget workqueue after device removal
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于设备移除后未刷新gadget工作队列。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15 ~ e3bc1a9a67ce33a2e761e6e7b7c2afc6cb9b7266 -
Linux Linux 3.12 -

II. Public POCs for CVE-2025-21838

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-21838

请登录查看更多情报信息。

Patches & Fixes for CVE-2025-21838 (5)

Same Patch Batch · Linux · 2025-03-07 · 8 CVEs total

CVE-2025-21836 7.8 HIGH io_uring/kbuf: reallocate buf lists on upgrade
CVE-2025-21842 7.8 HIGH amdkfd: properly free gang_ctx_bo when failed to init user queue
CVE-2025-21839 7.3 HIGH KVM: x86: Load DR6 with guest value only before entering .vcpu_run() loop
CVE-2025-21835 usb: gadget: f_midi: fix MIDI Streaming descriptor lengths
CVE-2025-21840 thermal/netlink: Prevent userspace segmentation fault by adjusting UAPI header
CVE-2025-21841 cpufreq/amd-pstate: Fix cpufreq_policy ref counting
CVE-2025-21843 drm/panthor: avoid garbage value in panthor_ioctl_dev_query()

IV. Related Vulnerabilities