CVE-2024-56698

published 28 Dec 2024 · updated 12 Aug 2026

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

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0247da93bf62d33304b7bf97850ebf2a86e06d28, Kernel 1534f6f69393aac773465d80d31801b554352627, Kernel 70777a23a54e359cfdfafc625a57cd56434f3859 and 4 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.18, >=c96e6725db9d6a04ac1bee881e3034b636d9f71c <0247da93bf62d33304b7bf97850ebf2a86e06d28, >=c96e6725db9d6a04ac1bee881e3034b636d9f71c <1534f6f69393aac773465d80d31801b554352627, >=c96e6725db9d6a04ac1bee881e3034b636d9f71c <70777a23a54e359cfdfafc625a57cd56434f3859, >=c96e6725db9d6a04ac1bee881e3034b636d9f71c <8ceb21d76426bbe7072cc3e43281e70c0d664cc7, >=c96e6725db9d6a04ac1bee881e3034b636d9f71c <b7c3d0b59213ebeedff63d128728ce0b3d7a51ec, >=c96e6725db9d6a04ac1bee881e3034b636d9f71c <b7fc65f5141c24785dc8c19249ca4efcf71b3524, >=c96e6725db9d6a04ac1bee881e3034b636d9f71c <c9e72352a10ae89a430449f7bfeb043e75c255d90247da93bf62d33304b7bf97850ebf2a86e06d28, 1534f6f69393aac773465d80d31801b554352627, 70777a23a54e359cfdfafc625a57cd56434f3859, 8ceb21d76426bbe7072cc3e43281e70c0d664cc7, b7c3d0b59213ebeedff63d128728ce0b3d7a51ec, b7fc65f5141c24785dc8c19249ca4efcf71b3524, c9e72352a10ae89a430449f7bfeb043e75c255d9

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-56698 severity on Zeptric[![CVE-2024-56698](https://zeptric.io/badge/cve/CVE-2024-56698.svg)](https://zeptric.io/cve/CVE-2024-56698)