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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

EPSS 0.02% · P7
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
LinuxLinux 5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15 ~ e3bc1a9a67ce33a2e761e6e7b7c2afc6cb9b7266 -
LinuxLinux 3.12 -

II. Public POCs for CVE-2025-21838

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-21838

登录查看更多情报信息。

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

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-21838

No comments yet


Leave a comment