Skip to content
Heist/ feed
Back to feed
MediumFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.231, 5.15.174, 6.1.120, 6.11.11, 6.12.2, 6.6.64
CVEs
CVE-2024-56698
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 03:43 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 28 Dec 2024, 09:46 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.

osv:CVE-2024-56698

Kernel

Fixed versions: 5.10.231, 5.15.174, 6.1.120, 6.6.64, 6.11.11, 6.12.2

Complete source record
{
  "id": "d0504b09e8eef01d2d93fda153571dd6c8f9bdcd9ba13b7b157d092db65f2b27",
  "url": "https://osv.dev/vulnerability/CVE-2024-56698",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "usb: dwc3: gadget: Fix looping of queued SG entries",
    "summary": "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.",
    "evidence": "osv:CVE-2024-56698",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.231",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.174",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.120",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.64",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.11",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-56698",
      "aliases": [
        "CVE-2024-56698"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c96e6725db9d6a04ac1bee881e3034b636d9f71c"
                },
                {
                  "fixed": "8ceb21d76426bbe7072cc3e43281e70c0d664cc7"
                },
                {
                  "fixed": "0247da93bf62d33304b7bf97850ebf2a86e06d28"
                },
                {
                  "fixed": "c9e72352a10ae89a430449f7bfeb043e75c255d9"
                },
                {
                  "fixed": "1534f6f69393aac773465d80d31801b554352627"
                },
                {
                  "fixed": "b7c3d0b59213ebeedff63d128728ce0b3d7a51ec"
                },
                {
                  "fixed": "70777a23a54e359cfdfafc625a57cd56434f3859"
                },
                {
                  "fixed": "b7fc65f5141c24785dc8c19249ca4efcf71b3524"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56698.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.18.0"
                },
                {
                  "fixed": "5.10.231"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.174"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.120"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.64"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.11.11"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.12.0"
                },
                {
                  "fixed": "6.12.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56698.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.874378960Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0247da93bf62d33304b7bf97850ebf2a86e06d28",
        "https://git.kernel.org/stable/c/1534f6f69393aac773465d80d31801b554352627",
        "https://git.kernel.org/stable/c/70777a23a54e359cfdfafc625a57cd56434f3859",
        "https://git.kernel.org/stable/c/8ceb21d76426bbe7072cc3e43281e70c0d664cc7",
        "https://git.kernel.org/stable/c/b7c3d0b59213ebeedff63d128728ce0b3d7a51ec",
        "https://git.kernel.org/stable/c/b7fc65f5141c24785dc8c19249ca4efcf71b3524",
        "https://git.kernel.org/stable/c/c9e72352a10ae89a430449f7bfeb043e75c255d9",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56698.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-56698",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56698.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-56698",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 492246,
  "published_at": "2024-12-28T09:46:21.363+00:00"
}