CVE-2024-36977
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
18/06/2024
Last modified:
01/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
usb: dwc3: Wait unconditionally after issuing EndXfer command<br />
<br />
Currently all controller IP/revisions except DWC3_usb3 >= 310a<br />
wait 1ms unconditionally for ENDXFER completion when IOC is not<br />
set. This is because DWC_usb3 controller revisions >= 3.10a<br />
supports GUCTL2[14: Rst_actbitlater] bit which allows polling<br />
CMDACT bit to know whether ENDXFER command is completed.<br />
<br />
Consider a case where an IN request was queued, and parallelly<br />
soft_disconnect was called (due to ffs_epfile_release). This<br />
eventually calls stop_active_transfer with IOC cleared, hence<br />
send_gadget_ep_cmd() skips waiting for CMDACT cleared during<br />
EndXfer. For DWC3 controllers with revisions >= 310a, we don&#39;t<br />
forcefully wait for 1ms either, and we proceed by unmapping the<br />
requests. If ENDXFER didn&#39;t complete by this time, it leads to<br />
SMMU faults since the controller would still be accessing those<br />
requests.<br />
<br />
Fix this by ensuring ENDXFER completion by adding 1ms delay in<br />
__dwc3_stop_active_transfer() unconditionally.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.1 (including) | 6.1.92 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.6.32 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.8.11 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.9 (including) | 6.9.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/1ba145f05b5c8f0b1a947a0633b5edff5dd1f1c5
- https://git.kernel.org/stable/c/1d26ba0944d398f88aaf997bda3544646cf21945
- https://git.kernel.org/stable/c/341eb08dbca9eae05308c442fbfab1813a44c97a
- https://git.kernel.org/stable/c/4a387e032909c6dc2b479452c5bbe9a252057925
- https://git.kernel.org/stable/c/ec96bcf5f96a7a5c556b0e881ac3e5c3924d542c
- https://git.kernel.org/stable/c/1ba145f05b5c8f0b1a947a0633b5edff5dd1f1c5
- https://git.kernel.org/stable/c/1d26ba0944d398f88aaf997bda3544646cf21945
- https://git.kernel.org/stable/c/341eb08dbca9eae05308c442fbfab1813a44c97a
- https://git.kernel.org/stable/c/4a387e032909c6dc2b479452c5bbe9a252057925
- https://git.kernel.org/stable/c/ec96bcf5f96a7a5c556b0e881ac3e5c3924d542c



