Skip to main content
← All vulnerabilities
CVE-2025-38103

HID: usbhid: Eliminate recurrent out-of-bounds bug in usbhid_parse()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.3, 3.17, 3.19, 4.2, 4.5, and 2 more
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: HID: usbhid: Eliminate recurrent out-of-bounds bug in usbhid_parse() Update struct hid_descriptor to better reflect the mandatory and optional parts of the HID Descriptor as per USB HID 1.11 specification. Note: the kernel currently does not parse any optional HID class descriptors, only the mandatory report descriptor. Update all references to member element desc[0] to rpt_desc. Add test to verify bLength and bNumDescriptors values are valid. Replace the for loop with direct access to the mandatory HID class descriptor member for the report descriptor. This eliminates the possibility of getting an out-of-bounds fault. Add a warning message if the HID descriptor contains any unsupported optional HID class descriptors.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 3.2.95 · fixed in 3.3; From 3.16.50 · fixed in 3.17; From 3.18.76 · fixed in 3.19; From 4.1.46 · fixed in 4.2; From 4.4.93 · fixed in 4.5; From 4.9.57 · fixed in 4.10; From 4.13.8 · fixed in 4.14

  • Linux Linux

    4.14

References 8

git.kernel.org