CVE-2024-42085
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
29/07/2024
Last modified:
03/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock<br />
<br />
When config CONFIG_USB_DWC3_DUAL_ROLE is selected, and trigger system<br />
to enter suspend status with below command:<br />
echo mem > /sys/power/state<br />
There will be a deadlock issue occurring. Detailed invoking path as<br />
below:<br />
dwc3_suspend_common()<br />
spin_lock_irqsave(&dwc->lock, flags); lock, flags); gadget_driver is NULL or not. It causes the<br />
following code is executed and deadlock occurs when trying to get the<br />
spinlock. In fact, the root cause is the commit 5265397f9442("usb: dwc3:<br />
Remove DWC3 locking during gadget suspend/resume") that forgot to remove<br />
the lock of otg mode. So, remove the redundant lock of otg mode during<br />
gadget suspend/resume.
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:*:*:*:*:*:*:*:* | 5.15.128 (including) | 5.15.162 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.1 (including) | 6.1.97 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.6.37 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.9.8 (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/17e2956633ca560b95f1cbbb297cfc2adf650649
- https://git.kernel.org/stable/c/7026576e89094aa9a0062aa6d10cba18aa99944c
- https://git.kernel.org/stable/c/7838de15bb700c2898a7d741db9b1f3cbc86c136
- https://git.kernel.org/stable/c/8731a0b180f6b5d52397c7aeea6eda9511a467a7
- https://git.kernel.org/stable/c/d77e2b5104c51d3668b9717c825a4a06998efe63
- https://git.kernel.org/stable/c/f1274cfab183e69a7c7bafffcb4f50703c876276
- https://git.kernel.org/stable/c/17e2956633ca560b95f1cbbb297cfc2adf650649
- https://git.kernel.org/stable/c/7026576e89094aa9a0062aa6d10cba18aa99944c
- https://git.kernel.org/stable/c/7838de15bb700c2898a7d741db9b1f3cbc86c136
- https://git.kernel.org/stable/c/d77e2b5104c51d3668b9717c825a4a06998efe63
- https://git.kernel.org/stable/c/f1274cfab183e69a7c7bafffcb4f50703c876276
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html



