What’s Vulnerable › Vulnerabilities

CVE-2024-56698: usb: dwc3: gadget: Fix looping of queued SG entries

Description

In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: Fix looping of queued SG entries The dwc3_request->num_queued_sgs is decremented on completion. If a partially completed request is handled, then the dwc3_request->num_queued_sgs no longer reflects the total number of num_queued_sgs (it would be cleared). Correctly check the number of request SG entries remained to be prepare and queued. Failure to do this may cause null pointer dereference when accessing non-existent SG entry.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.231, 5.15.174, 6.1.120, 6.11.11. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-56698 or the next vulnerability affects your stack