CVE-2025-37810

Source
https://cve.org/CVERecord?id=CVE-2025-37810
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37810.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-37810
Downstream
Related
Published
2025-05-08T06:26:08.144Z
Modified
2026-03-20T12:42:28.845186Z
Summary
usb: dwc3: gadget: check that event count does not exceed event buffer length
Details

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 : dwc3checkevent_buf+0xec/0x348 x3 : 0000000000000030 x2 : 000000000000dfc4 x1 : ffffffc0129be000 x0 : ffffff87aad60080 Call trace: _memcpy+0x114/0x180 dwc3interrupt+0x24/0x34

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37810.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.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/osv-test-cve-osv-conversion/osv-output/CVE-2025-37810.json"