Kernel panic via premature gadget structure free
Published Feb 28, 2024 · Updated May 11, 2026
Use-after-free in the DWC3 USB gadget driver in Linux 5.10, 5.11, and 5.12 allows local users to crash the kernel during teardown. dwc3_gadget_release() frees dwc->gadget before dwc3_gadget_free_endpoints() removes endpoint list nodes, leaving dangling pointers for list_del(). Reaching the faulty path requires DWC3 gadget teardown during driver unbind or shutdown; the reported consequence is a kernel panic.
Summary
What happened
Use-after-free in the DWC3 USB gadget driver in Linux 5.10, 5.11, and 5.12 allows local users to crash the kernel during teardown. dwc3_gadget_release() frees dwc->gadget before dwc3_gadget_free_endpoints() removes endpoint list nodes, leaving dangling pointers for list_del(). Reaching the faulty path requires DWC3 gadget teardown during driver unbind or shutdown; the reported consequence is a kernel panic.
The record
- CVE
- CVE-2021-46986
- Published
- Feb 28, 2024
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Feb 28, 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 <1ea775021282d90e1d08d696b7ab54aa75d688e5
- Affected versionversion=e81a7018d93a7de31a3f121c9a7eecd0a5ec58b0 <b4b8e9601d7ee8806d2687f081a42485d27674a1
- Affected versionversion=e81a7018d93a7de31a3f121c9a7eecd0a5ec58b0 <bb9c74a5bd1462499fe5ccb1e3c5ac40dcfa9139
- Affected versionversion=e81a7018d93a7de31a3f121c9a7eecd0a5ec58b0 <bc0cdd72493236fb72b390ad38ce581e353c143c
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