CVE-2024-56698: usb: dwc3: gadget: Fix looping of queued SG entries
In the Linux kernel, the following vulnerability has been resolved:
usb: dwc3: gadget: Fix looping of queued SG entries
The dwc3request->numqueuedsgs is decremented on completion. If a partially completed request is handled, then the dwc3request->numqueuedsgs no longer reflects the total number of numqueuedsgs (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.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-56698?
CVE-2024-56698 has not publicly been assigned a specific severity rating but addresses an issue in the Linux kernel that could potentially lead to vulnerabilities in USB gadget operations.
Which versions of the Linux kernel are affected by CVE-2024-56698?
CVE-2024-56698 affects Linux kernel versions from 4.18 up to 6.12.2, with specific ranges outlined for each affected version.
How do I fix CVE-2024-56698?
To fix CVE-2024-56698, update your Linux kernel to at least version 6.1.123-1 or a newer version available in your distribution.
What is the nature of the vulnerability in CVE-2024-56698?
The vulnerability in CVE-2024-56698 is related to the improper handling of queued scatter-gather (SG) entries in the Linux kernel USB driver.
Has CVE-2024-56698 been resolved and how?
Yes, CVE-2024-56698 has been resolved through a fix that ensures correct decrementing of queued SG entry counts upon request completion.