CVE-2024-42085

CVE Details

Release Date:2024-07-29
Impact:Low What is this?

Description


In the Linux kernel, the following vulnerability has been resolved:\nusb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock\nWhen config CONFIG_USB_DWC3_DUAL_ROLE is selected, and trigger system\nto enter suspend status with below command:\necho mem > /sys/power/state\nThere will be a deadlock issue occurring. Detailed invoking path as\nbelow:\ndwc3_suspend_common()\nspin_lock_irqsave(&dwc->lock, flags); <-- 1st\ndwc3_gadget_suspend(dwc);\ndwc3_gadget_soft_disconnect(dwc);\nspin_lock_irqsave(&dwc->lock, flags); <-- 2nd\nThis issue is exposed by commit c7ebd8149ee5 ('usb: dwc3: gadget: Fix\nNULL pointer dereference in dwc3_gadget_suspend') that removes the code\nof checking whether dwc->gadget_driver is NULL or not. It causes the\nfollowing code is executed and deadlock occurs when trying to get the\nspinlock. In fact, the root cause is the commit 5265397f9442('usb: dwc3:\nRemove DWC3 locking during gadget suspend/resume') that forgot to remove\nthe lock of otg mode. So, remove the redundant lock of otg mode during\ngadget suspend/resume.

See more information about CVE-2024-42085 from MITRE CVE dictionary and NIST NVD


NOTE: The following CVSS metrics and score provided are preliminary and subject to review.


CVSS v3 metrics

Base Score: 5.5
Vector String: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Version: 3.1
Attack Vector: Local
Attack Complexity: Low
Privileges Required: Low
User Interaction: None
Scope: Unchanged
Confidentiality Impact: None
Integrity Impact: None
Availability Impact: High

Errata information


PlatformErrataRelease Date


This page is generated automatically and has not been checked for errors or omissions. For clarification or corrections:

software.hardware.complete