VDB

CVE-2024-56698

CVE-2024-56698 PUBLISHED CVSS 5.5 MEDIUM

usb: dwc3: gadget: Fix looping of queued SG entries

Reported by linux · Published December 28, 2024

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.

Risk scores

CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinuxc96e6725db9d6a04ac1bee881e3034b636d9f71c, c96e6725db9d6a04ac1bee881e3034b636d9f71c, c96e6725db9d6a04ac1bee881e3034b636d9f71c
LinuxLinux4.18, 0, 5.10.231
LinuxLinux4.18, 6.12.2, *
linuxlinux_kernel4.18, 4.18, 4.18

Timeline

  • Dec 28, 2024 CVE Published
  • Dec 29, 2024 EPSS Score (30 in total, the first dated here)
  • Feb 16, 2025 Coalition ESS Score (4 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Dec 29, 2025 Security Advisory (450 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (367 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-56698
vulnetix vdb fixes CVE-2024-56698

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-56698/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›