# CVE-2025-37810: usb: dwc3: gadget: check that event count does not exceed event buffer length

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-05-08T06:26:08.144Z
- **Modified:** 2026-06-17T09:15:29.117Z

## Who should check

- Anyone running Linux \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< 015c39f38e69a491d2abd5e98869a500a9459b3b; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< b43225948b231b3f331194010f84512bee4d9f59; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< c0079630f268843a25ed75226169cba40e0d8880; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< a44547015287a19001384fe94dbff84c92ce4ee1; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< c4d80e41cb42008dceb35e5dbf52574d93beac0d; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< 52a7c9d930b95aa8b1620edaba4818040c32631f; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< 99d655119b870ee60e4dbf310aa9a1ed8d9ede3d; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< 63ccd26cd1f6600421795f6ca3e625076be06c9f
- Anyone running Linux 3.2

## Description

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

## Affected and fixed versions

- Linux: \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< 015c39f38e69a491d2abd5e98869a500a9459b3b; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< b43225948b231b3f331194010f84512bee4d9f59; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< c0079630f268843a25ed75226169cba40e0d8880; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< a44547015287a19001384fe94dbff84c92ce4ee1; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< c4d80e41cb42008dceb35e5dbf52574d93beac0d; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< 52a7c9d930b95aa8b1620edaba4818040c32631f; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< 99d655119b870ee60e4dbf310aa9a1ed8d9ede3d; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< 63ccd26cd1f6600421795f6ca3e625076be06c9f (cvelist)
- Linux: 3.2 (cvelist)

## Mitigation

- Upgrade Linux to 63ccd26cd1f6600421795f6ca3e625076be06c9f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37810. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37810.md
Affected: Linux >= 72246da40f3719af3bfd104a2365b32537c27d83, < 015c39f38e69a491d2abd5e98869a500a9459b3b; >= 72246da40f3719af3bfd104a2365b32537c27d83, < b43225948b231b3f331194010f84512bee4d9f59; >= 72246da40f3719af3bfd104a2365b32537c27d83, < c0079630f268843a25ed75226169cba40e0d8880; >= 72246da40f3719af3bfd104…
Fixed in: Linux 015c39f38e69a491d2abd5e98869a500a9459b3b, Linux 52a7c9d930b95aa8b1620edaba4818040c32631f, Linux 99d655119b870ee60e4dbf310aa9a1ed8d9ede3d, Linux 63ccd26cd1f6600421795f6ca3e625076be06c9f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37810 being exploited?

There is no confirmed exploitation: CVE-2025-37810 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37810?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37810?

Linux \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< 015c39f38e69a491d2abd5e98869a500a9459b3b; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< b43225948b231b3f331194010f84512bee4d9f59; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< c0079630f268843a25ed75226169cba40e0d8880; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< a44547015287a19001384fe94dbff84c92ce4ee1; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< c4d80e41cb42008dceb35e5dbf52574d93beac0d; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< 52a7c9d930b95aa8b1620edaba4818040c32631f; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< 99d655119b870ee60e4dbf310aa9a1ed8d9ede3d; \>= 72246da40f3719af3bfd104a2365b32537c27d83, \< 63ccd26cd1f6600421795f6ca3e625076be06c9f; Linux 3.2.

### Is there a fix for CVE-2025-37810?

Yes. Fixed in Linux 015c39f38e69a491d2abd5e98869a500a9459b3b, Linux 52a7c9d930b95aa8b1620edaba4818040c32631f, Linux 99d655119b870ee60e4dbf310aa9a1ed8d9ede3d, Linux 63ccd26cd1f6600421795f6ca3e625076be06c9f. Upgrade Linux to 63ccd26cd1f6600421795f6ca3e625076be06c9f or later.

### How do I check if I'm affected by CVE-2025-37810?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/015c39f38e69a491d2abd5e98869a500a9459b3b>
- patch: <https://git.kernel.org/stable/c/b43225948b231b3f331194010f84512bee4d9f59>
- patch: <https://git.kernel.org/stable/c/c0079630f268843a25ed75226169cba40e0d8880>
- patch: <https://git.kernel.org/stable/c/a44547015287a19001384fe94dbff84c92ce4ee1>
- patch: <https://git.kernel.org/stable/c/c4d80e41cb42008dceb35e5dbf52574d93beac0d>
- patch: <https://git.kernel.org/stable/c/52a7c9d930b95aa8b1620edaba4818040c32631f>
- patch: <https://git.kernel.org/stable/c/99d655119b870ee60e4dbf310aa9a1ed8d9ede3d>
- patch: <https://git.kernel.org/stable/c/63ccd26cd1f6600421795f6ca3e625076be06c9f>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37810>

HTML: <https://flawdb.com/CVE-2025-37810> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37810>
