CVE-2021-46941usb: dwc3: core: Do core softreset when switch mode
- 5.5MediumCVSS base score
- 0.22%Exploitation in 30 daysEPSS · top 87% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: core: Do core softreset when switch mode According to the programming guide, to switch mode for DRD controller, the driver needs to do the following. To switch from device to host: 1. Reset controller with GCTL.CoreSoftReset 2. Set GCTL.PrtCapDir(host mode) 3. Reset the host with USBCMD.HCRESET 4. Then follow up with the initializing host registers sequence To switch from host to device: 1. Reset controller with GCTL.CoreSoftReset 2. Set GCTL.PrtCapDir(device mode) 3. Reset the device with DCTL.CSftRst 4. Then follow up with the initializing registers sequence Currently we're missing step 1) to do GCTL.CoreSoftReset and step 3) of switching from host to device. John Stult reported a lockup issue seen with HiKey960 platform without these steps[1]. Similar issue is observed with Ferry's testing platform[2]. So, apply the required steps along with some fixes to Yu Chen's and John Stultz's version. The main fixes to their versions are the missing wait for clocks synchronization before clearing GCTL.CoreSoftReset and only apply DCTL.CSftRst when switching from host to device. [1] https://lore.kernel.org/linux-usb/[email protected]/ [2] https://lore.kernel.org/linux-usb/[email protected]/
Timeline
ID reserved
By Linux
- 2 days later
· 2 days later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.22% · top 87% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected 41ce1456e1dbbc7355d0fcc10cf7c337c13def24 – < fce7bbcd07d59ac30dba8ce225316b3b4c1c7b50
- affected 41ce1456e1dbbc7355d0fcc10cf7c337c13def24 – < 800f58217626c8b147aa40660e572ed8a0d56e3b
- affected 41ce1456e1dbbc7355d0fcc10cf7c337c13def24 – < 1c10fd60c8595ea7ff7e29d3cf1fa88069941da3
- affected 41ce1456e1dbbc7355d0fcc10cf7c337c13def24 – < f88359e1588b85cf0e8209ab7d6620085f3441d9
- affected 4.12
- unaffected < 4.12
- unaffected 5.10.36 – ≤ 5.10.*
- unaffected 5.11.20 – ≤ 5.11.*
- unaffected 5.12.3 – ≤ 5.12.*
- unaffected 5.13 – ≤ *
References
References4
- https://git.kernel.org/stable/c/fce7bbcd07d59ac30dba8ce225316b3b4c1c7b50 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/800f58217626c8b147aa40660e572ed8a0d56e3b (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/1c10fd60c8595ea7ff7e29d3cf1fa88069941da3 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/f88359e1588b85cf0e8209ab7d6620085f3441d9 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-33589 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-46941)Record last updated .