# CVE-2021-46941: usb: dwc3: core: Do core softreset when switch mode

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 8, 2026-11-26)
- **Published:** 2024-02-27T18:40:28.664Z
- **Modified:** 2026-06-17T04:15:55.713Z

## Who should check

- Anyone running Linux \>= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, \< fce7bbcd07d59ac30dba8ce225316b3b4c1c7b50; \>= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, \< 800f58217626c8b147aa40660e572ed8a0d56e3b; \>= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, \< 1c10fd60c8595ea7ff7e29d3cf1fa88069941da3; \>= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, \< f88359e1588b85cf0e8209ab7d6620085f3441d9
- Anyone running Linux 4.12

## 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

- Linux: \>= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, \< fce7bbcd07d59ac30dba8ce225316b3b4c1c7b50; \>= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, \< 800f58217626c8b147aa40660e572ed8a0d56e3b; \>= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, \< 1c10fd60c8595ea7ff7e29d3cf1fa88069941da3; \>= 41ce1456e1dbbc7355d0fcc10cf7c337c13def24, \< f88359e1588b85cf0e8209ab7d6620085f3441d9 (cvelist)
- Linux: 4.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/fce7bbcd07d59ac30dba8ce225316b3b4c1c7b50>
- patch: <https://git.kernel.org/stable/c/800f58217626c8b147aa40660e572ed8a0d56e3b>
- patch: <https://git.kernel.org/stable/c/1c10fd60c8595ea7ff7e29d3cf1fa88069941da3>
- patch: <https://git.kernel.org/stable/c/f88359e1588b85cf0e8209ab7d6620085f3441d9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-46941>

HTML: <https://flawdb.com/CVE-2021-46941> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-46941>
