Bug 2376100 (CVE-2025-38103) - CVE-2025-38103 kernel: HID: usbhid: Eliminate recurrent out-of-bounds bug in usbhid_parse()
Summary: CVE-2025-38103 kernel: HID: usbhid: Eliminate recurrent out-of-bounds bug in ...
Keywords:
Status: NEW
Alias: CVE-2025-38103
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-03 09:05 UTC by OSIDB Bzimport
Modified: 2025-07-03 12:55 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-03 09:05:03 UTC
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.

Comment 1 Avinash Hanwate 2025-07-03 12:46:22 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025070322-CVE-2025-38103-dd1b@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.