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

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2025-05-08T06:26:08.144Z
- Modified: 2026-06-17T09:15:29.117Z
- Weaknesses: CWE-787
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from 72246da40f3719af3bfd104a2365b32537c27d83 before 015c39f38e69a491d2abd5e98869a500a9459b3b; from 72246da40f3719af3bfd104a2365b32537c27d83 before b43225948b231b3f331194010f84512bee4d9f59; from 72246da40f3719af3bfd104a2365b32537c27d83 before c0079630f268843a25ed75226169cba40e0d8880; from 72246da40f3719af3bfd104a2365b32537c27d83 before a44547015287a19001384fe94dbff84c92ce4ee1; from 72246da40f3719af3bfd104a2365b32537c27d83 before c4d80e41cb42008dceb35e5dbf52574d93beac0d; from 72246da40f3719af3bfd104a2365b32537c27d83 before 52a7c9d930b95aa8b1620edaba4818040c32631f; from 72246da40f3719af3bfd104a2365b32537c27d83 before 99d655119b870ee60e4dbf310aa9a1ed8d9ede3d; from 72246da40f3719af3bfd104a2365b32537c27d83 before 63ccd26cd1f6600421795f6ca3e625076be06c9f; 3.2 (not affected: before 3.2; from 5.4.293 up to 5.4.*; from 5.10.237 up to 5.10.*; from 5.15.181 up to 5.15.*; from 6.1.136 up to 6.1.*; from 6.6.89 up to 6.6.*; from 6.12.26 up to 6.12.*; from 6.14.5 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 3.2 before 5.4.293; from 5.5 before 5.10.237; from 5.11 before 5.15.181; from 5.16 before 6.1.136; from 6.2 before 6.6.89; from 6.7 before 6.12.26; from 6.13 before 6.14.5; 6.15
- debian debian_linux: 11.0

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2025-37810](https://www.cve.org/CVERecord?id=CVE-2025-37810), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-37810](https://nvd.nist.gov/vuln/detail/CVE-2025-37810), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-37810 · Whole record: https://cve.day/CVE-2025-37810.json · Rebuilt by cve.day 2026-11-25T22:58:57.794Z
