CVE-2024-42085: Linux kernel · usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 30 Oct 2026, 02:47 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 29 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
Until a fix is available, avoid triggering system suspend states on affected configurations or disable CONFIG_USB_DWC3_DUAL_ROLE if feasible. Monitor official Linux kernel advisories for updates addressing this deadlock issue.
Description
CVE-2024-42085 is a medium-severity vulnerability in the Linux kernel's USB DWC3 core driver. It involves a deadlock condition triggered during gadget suspend/resume when the CONFIG_USB_DWC3_DUAL_ROLE configuration is enabled. The deadlock arises due to redundant locking of the OTG mode spinlock, introduced by recent commits that removed certain lock checks but forgot to remove the OTG mode lock. This causes nested spinlock acquisition attempts leading to a deadlock when the system enters suspend state via echo mem > /sys/power/state.
References
- nvd.nist.gov/vuln/detail/CVE-2024-42085 (opens in a new tab)
- git.kernel.org/stable/c/17e2956633ca560b95f1cbbb297cfc2adf650649 (opens in a new tab)
- git.kernel.org/stable/c/7026576e89094aa9a0062aa6d10cba18aa99944c (opens in a new tab)
- git.kernel.org/stable/c/7838de15bb700c2898a7d741db9b1f3cbc86c136 (opens in a new tab)
- git.kernel.org/stable/c/8731a0b180f6b5d52397c7aeea6eda9511a467a7 (opens in a new tab)
- git.kernel.org/stable/c/d77e2b5104c51d3668b9717c825a4a06998efe63 (opens in a new tab)
- git.kernel.org/stable/c/f1274cfab183e69a7c7bafffcb4f50703c876276 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/01/msg00001.html (opens in a new tab)