# CVE-2024-36977: usb: dwc3: Wait unconditionally after issuing EndXfer command

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.33% (percentile 19, 2026-11-26)
- **Published:** 2024-06-18T19:27:58.319Z
- **Modified:** 2026-08-05T11:32:26.465Z

## Who should check

- Anyone running Linux \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< 341eb08dbca9eae05308c442fbfab1813a44c97a; \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< ec96bcf5f96a7a5c556b0e881ac3e5c3924d542c; \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< 4a387e032909c6dc2b479452c5bbe9a252057925; \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< 1ba145f05b5c8f0b1a947a0633b5edff5dd1f1c5; \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< 1d26ba0944d398f88aaf997bda3544646cf21945
- Anyone running Linux 6.1

## Description

In the Linux kernel, the following vulnerability has been resolved:

usb: dwc3: Wait unconditionally after issuing EndXfer command

Currently all controller IP/revisions except DWC3\_usb3 \>= 310a
wait 1ms unconditionally for ENDXFER completion when IOC is not
set. This is because DWC\_usb3 controller revisions \>= 3.10a
supports GUCTL2\[14: Rst\_actbitlater\] bit which allows polling
CMDACT bit to know whether ENDXFER command is completed.

Consider a case where an IN request was queued, and parallelly
soft\_disconnect was called (due to ffs\_epfile\_release). This
eventually calls stop\_active\_transfer with IOC cleared, hence
send\_gadget\_ep\_cmd() skips waiting for CMDACT cleared during
EndXfer. For DWC3 controllers with revisions \>= 310a, we don't
forcefully wait for 1ms either, and we proceed by unmapping the
requests. If ENDXFER didn't complete by this time, it leads to
SMMU faults since the controller would still be accessing those
requests.

Fix this by ensuring ENDXFER completion by adding 1ms delay in
\_\_dwc3\_stop\_active\_transfer() unconditionally.

## Affected and fixed versions

- Linux: \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< 341eb08dbca9eae05308c442fbfab1813a44c97a; \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< ec96bcf5f96a7a5c556b0e881ac3e5c3924d542c; \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< 4a387e032909c6dc2b479452c5bbe9a252057925; \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< 1ba145f05b5c8f0b1a947a0633b5edff5dd1f1c5; \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< 1d26ba0944d398f88aaf997bda3544646cf21945 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 1d26ba0944d398f88aaf997bda3544646cf21945 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-36977. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-36977.md
Affected: Linux >= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, < 341eb08dbca9eae05308c442fbfab1813a44c97a; >= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, < ec96bcf5f96a7a5c556b0e881ac3e5c3924d542c; >= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, < 4a387e032909c6dc2b479452c5bbe9a252057925; >= b353eb6dc285a0775a447f5…
Fixed in: Linux 341eb08dbca9eae05308c442fbfab1813a44c97a, Linux 4a387e032909c6dc2b479452c5bbe9a252057925, Linux 1ba145f05b5c8f0b1a947a0633b5edff5dd1f1c5, Linux 1d26ba0944d398f88aaf997bda3544646cf21945

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-2024-36977 being exploited?

There is no confirmed exploitation: CVE-2024-36977 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-36977?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-36977?

Linux \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< 341eb08dbca9eae05308c442fbfab1813a44c97a; \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< ec96bcf5f96a7a5c556b0e881ac3e5c3924d542c; \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< 4a387e032909c6dc2b479452c5bbe9a252057925; \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< 1ba145f05b5c8f0b1a947a0633b5edff5dd1f1c5; \>= b353eb6dc285a0775a447f53e5b2a50bf3f9684f, \< 1d26ba0944d398f88aaf997bda3544646cf21945; Linux 6.1.

### Is there a fix for CVE-2024-36977?

Yes. Fixed in Linux 341eb08dbca9eae05308c442fbfab1813a44c97a, Linux 4a387e032909c6dc2b479452c5bbe9a252057925, Linux 1ba145f05b5c8f0b1a947a0633b5edff5dd1f1c5, Linux 1d26ba0944d398f88aaf997bda3544646cf21945. Upgrade Linux to 1d26ba0944d398f88aaf997bda3544646cf21945 or later.

### How do I check if I'm affected by CVE-2024-36977?

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/341eb08dbca9eae05308c442fbfab1813a44c97a>
- patch: <https://git.kernel.org/stable/c/ec96bcf5f96a7a5c556b0e881ac3e5c3924d542c>
- patch: <https://git.kernel.org/stable/c/4a387e032909c6dc2b479452c5bbe9a252057925>
- patch: <https://git.kernel.org/stable/c/1ba145f05b5c8f0b1a947a0633b5edff5dd1f1c5>
- patch: <https://git.kernel.org/stable/c/1d26ba0944d398f88aaf997bda3544646cf21945>

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

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