Kernel panic via dangling DWC3 gadget pointer
Published May 21, 2024 · Updated May 11, 2026
A denial-of-service flaw in the DWC3 gadget code in Linux allows local users to trigger a kernel panic through USB role changes. After a failed FunctionFS gadget rebind, dwc3_gadget_exit() dereferences a dangling dwc->gadget pointer and frees unmapped DMA memory. The trigger requires a DWC3 dual-role controller, a ConfigFS FunctionFS gadget, a stopped FunctionFS application, and repeated peripheral-to-host mode switching.
Summary
What happened
A denial-of-service flaw in the DWC3 gadget code in Linux allows local users to trigger a kernel panic through USB role changes. After a failed FunctionFS gadget rebind, dwc3_gadget_exit() dereferences a dangling dwc->gadget pointer and frees unmapped DMA memory. The trigger requires a DWC3 dual-role controller, a ConfigFS FunctionFS gadget, a stopped FunctionFS application, and repeated peripheral-to-host mode switching.
The record
- CVE
- CVE-2021-47272
- Published
- May 21, 2024
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 21, 2024CVE publishedPublication date reported by the CVE source.
- May 11, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.10
- Affected versionversion=e81a7018d93a7de31a3f121c9a7eecd0a5ec58b0 <03715ea2e3dbbc56947137ce3b4ac18a726b2f87
- Affected versionversion=e81a7018d93a7de31a3f121c9a7eecd0a5ec58b0 <4aad390363d2b9b3e92428dd34d27bb7ea8f1ee8
- Affected versionversion=e81a7018d93a7de31a3f121c9a7eecd0a5ec58b0 <851dee5a5da56564a70290713aee665403bb0b24
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo