CVE-2025-37810

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

State
Published
Severity
Not scored
Published
May 8, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 72246da40f3719af3bfd104a2365b32537c27d83 to before 015c39f38e69a491d2abd5e98869a500a9459b3bAffected
  • 72246da40f3719af3bfd104a2365b32537c27d83 to before b43225948b231b3f331194010f84512bee4d9f59Affected
  • 72246da40f3719af3bfd104a2365b32537c27d83 to before c0079630f268843a25ed75226169cba40e0d8880Affected
  • 72246da40f3719af3bfd104a2365b32537c27d83 to before a44547015287a19001384fe94dbff84c92ce4ee1Affected
  • 72246da40f3719af3bfd104a2365b32537c27d83 to before c4d80e41cb42008dceb35e5dbf52574d93beac0dAffected
  • 72246da40f3719af3bfd104a2365b32537c27d83 to before 52a7c9d930b95aa8b1620edaba4818040c32631fAffected
  • 72246da40f3719af3bfd104a2365b32537c27d83 to before 99d655119b870ee60e4dbf310aa9a1ed8d9ede3dAffected
  • 72246da40f3719af3bfd104a2365b32537c27d83 to before 63ccd26cd1f6600421795f6ca3e625076be06c9fAffected
LinuxLinux
  • 3.2Affected
  • before 3.2Not affected
  • 5.4.293 through 5.4.*Not affected
  • 5.10.237 through 5.10.*Not affected
  • 5.15.181 through 5.15.*Not affected
  • 6.1.136 through 6.1.*Not affected
  • 6.6.89 through 6.6.*Not affected
  • 6.12.26 through 6.12.*Not affected
  • 6.14.5 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.