CVEvulnerability

CVE-2025-38103

7.1 HIGH Published 2025-07-03 Modified 2026-06-17 Official page ↗
Status
Analyzed
Published
2025-07-03
Last modified
2026-06-17
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 ([email protected])
7.1 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Weaknesses
CWE-125

Description

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.

Affected configurations

• linux linux kernel (>= 3.2.95 < 3.3) • linux linux kernel (>= 3.16.50 < 3.17) • linux linux kernel (>= 3.18.76 < 3.19) • linux linux kernel (>= 4.1.46 < 4.2) • linux linux kernel (>= 4.4.93 < 4.5) • linux linux kernel (>= 4.9.57 < 4.10) • linux linux kernel (>= 4.13.8 < 4.14) • linux linux kernel (>= 4.14.1 < 5.4.295) • linux linux kernel (>= 5.5 < 5.10.239) • linux linux kernel (>= 5.11 < 5.15.186) • linux linux kernel (>= 5.16 < 6.1.142) • linux linux kernel (>= 6.2 < 6.6.94) • linux linux kernel (>= 6.7 < 6.12.34) • linux linux kernel (>= 6.13 < 6.15.3) • linux linux kernel 4.14 • debian debian linux 11.0

Related

Weakness · CWE (1)

  • CWE-125 Out-of-bounds Read weakness

References