Bug 2334680 (CVE-2024-56698) - CVE-2024-56698 kernel: usb: dwc3: gadget: Fix looping of queued SG entries
Summary: CVE-2024-56698 kernel: usb: dwc3: gadget: Fix looping of queued SG entries
Keywords:
Status: NEW
Alias: CVE-2024-56698
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-28 10:02 UTC by OSIDB Bzimport
Modified: 2025-01-09 04:54 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-28 10:02:10 UTC
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.

Comment 1 Avinash Hanwate 2024-12-29 06:35:54 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122836-CVE-2024-56698-6b0b@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.