CVE-2021-46941
usb: dwc3: core: Do core softreset when switch mode
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < fce7bbcd07d59ac30dba8ce225316b3b4c1c7b50; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < 800f58217626c8b147aa40660e572ed8a0d56e3b; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < 1c10fd60c8595ea7ff7e29d3cf1fa88069941da3; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < f88359e1588b85cf0e8209ab7d6620085f3441d9
- Anyone running Linux 4.12
Vulnerability facts
- Affected
- Linux >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < fce7bbcd07d59ac30dba8ce225316b3b4c1c7b50; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < 800f58217626c8b147aa40660e572ed8a0d56e3b; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < 1c10fd60c8595ea7ff7e29d3cf1fa88069941da3; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < f88359e1588b85cf0e8209ab7d6620085f3441d9; Linux 4.12
- Fixed in
- Linux 800f58217626c8b147aa40660e572ed8a0d56e3b, Linux 1c10fd60c8595ea7ff7e29d3cf1fa88069941da3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- Modified
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/20210108015115.27920-1-john.stultz@linaro.org/ [2] https://lore.kernel.org/linux-usb/0ba7a6ba-e6a7-9cd4-0695-64fc927e01f1@gmail.com/
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < fce7bbcd07d59ac30dba8ce225316b3b4c1c7b50; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < 800f58217626c8b147aa40660e572ed8a0d56e3b; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < 1c10fd60c8595ea7ff7e29d3cf1fa88069941da3; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < f88359e1588b85cf0e8209ab7d6620085f3441d9 | — | cvelist |
| Linux | 4.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-46941. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-46941.md Affected: Linux >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < fce7bbcd07d59ac30dba8ce225316b3b4c1c7b50; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < 800f58217626c8b147aa40660e572ed8a0d56e3b; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < 1c10fd60c8595ea7ff7e29d3cf1fa88069941da3; >= 41ce1456e1dbbc7355d0fcc… Fixed in: Linux 800f58217626c8b147aa40660e572ed8a0d56e3b, Linux 1c10fd60c8595ea7ff7e29d3cf1fa88069941da3 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2021-46941 being exploited?
There is no confirmed exploitation: CVE-2021-46941 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-46941?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2021-46941?
Linux >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < fce7bbcd07d59ac30dba8ce225316b3b4c1c7b50; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < 800f58217626c8b147aa40660e572ed8a0d56e3b; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < 1c10fd60c8595ea7ff7e29d3cf1fa88069941da3; >= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, < f88359e1588b85cf0e8209ab7d6620085f3441d9; Linux 4.12.
Is there a fix for CVE-2021-46941?
Yes. Fixed in Linux 800f58217626c8b147aa40660e572ed8a0d56e3b, Linux 1c10fd60c8595ea7ff7e29d3cf1fa88069941da3. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2021-46941?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.