Skip to content
Heist/ feed
Back to feed
UnratedFix available

usb: dwc3: gadget: check that event count does not exceed event buffer length

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: check that event count does not exceed event buffer length The event count is read from register DWC3_GEVNTCOUNT. There is a check for the count being zero, but not for exceeding the event buffer length. Check that event count does not exceed event buffer length, avoiding an out-of-bounds access when memcpy'ing the event. Crash log: Unable to handle kernel paging request at virtual address ffffffc0129be000 pc : __memcpy+0x114/0x180 lr : dwc3_check_event_buf+0xec/0x348 x3 : 0000000000000030 x2 : 000000000000dfc4 x1 : ffffffc0129be000 x0 : ffffff87aad60080 Call trace: __memcpy+0x114/0x180 dwc3_interrupt+0x24/0x34

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.237, 5.15.181, 5.4.293, 6.1.136, 6.12.26, 6.14.5, 6.6.89
CVEs
CVE-2025-37810
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 21:43 UTC · Revision 1

Source evidence

usb: dwc3: gadget: check that event count does not exceed event buffer length

core-osv · Original source

Published 8 May 2025, 06:26 UTC

In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: check that event count does not exceed event buffer length The event count is read from register DWC3_GEVNTCOUNT. There is a check for the count being zero, but not for exceeding the event buffer length. Check that event count does not exceed event buffer length, avoiding an out-of-bounds access when memcpy'ing the event. Crash log: Unable to handle kernel paging request at virtual address ffffffc0129be000 pc : __memcpy+0x114/0x180 lr : dwc3_check_event_buf+0xec/0x348 x3 : 0000000000000030 x2 : 000000000000dfc4 x1 : ffffffc0129be000 x0 : ffffff87aad60080 Call trace: __memcpy+0x114/0x180 dwc3_interrupt+0x24/0x34

osv:CVE-2025-37810

Kernel

Fixed versions: 5.4.293, 5.10.237, 5.15.181, 6.1.136, 6.6.89, 6.12.26, 6.14.5

Complete source record
{
  "id": "3297ec8205699b21f06526351908328dc17dcb97f187fed0296d6e28d8b2372a",
  "url": "https://osv.dev/vulnerability/CVE-2025-37810",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "usb: dwc3: gadget: check that event count does not exceed event buffer length",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: check that event count does not exceed event buffer length The event count is read from register DWC3_GEVNTCOUNT. There is a check for the count being zero, but not for exceeding the event buffer length. Check that event count does not exceed event buffer length, avoiding an out-of-bounds access when memcpy'ing the event. Crash log: Unable to handle kernel paging request at virtual address ffffffc0129be000 pc : __memcpy+0x114/0x180 lr : dwc3_check_event_buf+0xec/0x348 x3 : 0000000000000030 x2 : 000000000000dfc4 x1 : ffffffc0129be000 x0 : ffffff87aad60080 Call trace: __memcpy+0x114/0x180 dwc3_interrupt+0x24/0x34",
    "evidence": "osv:CVE-2025-37810",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.293",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.237",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.181",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.136",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.89",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.26",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.14.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-37810",
      "aliases": [
        "CVE-2025-37810"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "72246da40f3719af3bfd104a2365b32537c27d83"
                },
                {
                  "fixed": "015c39f38e69a491d2abd5e98869a500a9459b3b"
                },
                {
                  "fixed": "b43225948b231b3f331194010f84512bee4d9f59"
                },
                {
                  "fixed": "c0079630f268843a25ed75226169cba40e0d8880"
                },
                {
                  "fixed": "a44547015287a19001384fe94dbff84c92ce4ee1"
                },
                {
                  "fixed": "c4d80e41cb42008dceb35e5dbf52574d93beac0d"
                },
                {
                  "fixed": "52a7c9d930b95aa8b1620edaba4818040c32631f"
                },
                {
                  "fixed": "99d655119b870ee60e4dbf310aa9a1ed8d9ede3d"
                },
                {
                  "fixed": "63ccd26cd1f6600421795f6ca3e625076be06c9f"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37810.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.2.0"
                },
                {
                  "fixed": "5.4.293"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.237"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.181"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.136"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.89"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.26"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.14.5"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37810.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.012606307Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/015c39f38e69a491d2abd5e98869a500a9459b3b",
        "https://git.kernel.org/stable/c/52a7c9d930b95aa8b1620edaba4818040c32631f",
        "https://git.kernel.org/stable/c/63ccd26cd1f6600421795f6ca3e625076be06c9f",
        "https://git.kernel.org/stable/c/99d655119b870ee60e4dbf310aa9a1ed8d9ede3d",
        "https://git.kernel.org/stable/c/a44547015287a19001384fe94dbff84c92ce4ee1",
        "https://git.kernel.org/stable/c/b43225948b231b3f331194010f84512bee4d9f59",
        "https://git.kernel.org/stable/c/c0079630f268843a25ed75226169cba40e0d8880",
        "https://git.kernel.org/stable/c/c4d80e41cb42008dceb35e5dbf52574d93beac0d",
        "https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html",
        "https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37810.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-37810",
        "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/2025/37xxx/CVE-2025-37810.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-37810",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 490340,
  "published_at": "2025-05-08T06:26:08.144+00:00"
}