CVE-2025-38103
Analyzed Analyzed - Analysis Complete
BaseFortify

Publication date: 2025-07-03

Last updated on: 2025-12-16

Assigner: kernel.org

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-07-03
Last Modified
2025-12-16
Generated
2026-05-07
AI Q&A
2025-07-03
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 20 associated CPEs
Vendor Product Version / Range
linux linux_kernel From 3.2.95 (inc) to 3.3 (exc)
linux linux_kernel From 3.16.50 (inc) to 3.17 (exc)
linux linux_kernel From 3.18.76 (inc) to 3.19 (exc)
linux linux_kernel From 4.1.46 (inc) to 4.2 (exc)
linux linux_kernel From 4.4.93 (inc) to 4.5 (exc)
linux linux_kernel From 4.9.57 (inc) to 4.10 (exc)
linux linux_kernel From 4.13.8 (inc) to 4.14 (exc)
linux linux_kernel From 4.14.1 (inc) to 5.4.295 (exc)
linux linux_kernel From 5.5 (inc) to 5.10.239 (exc)
linux linux_kernel From 5.11 (inc) to 5.15.186 (exc)
linux linux_kernel From 5.16 (inc) to 6.1.142 (exc)
linux linux_kernel From 6.2 (inc) to 6.6.94 (exc)
linux linux_kernel From 6.7 (inc) to 6.12.34 (exc)
linux linux_kernel From 6.13 (inc) to 6.15.3 (exc)
linux linux_kernel 4.14
linux linux_kernel 4.14
linux linux_kernel 4.14
linux linux_kernel 4.14
linux linux_kernel 4.14
debian debian_linux 11.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is an out-of-bounds bug in the Linux kernel's usbhid_parse() function, which handles USB Human Interface Device (HID) descriptors. The issue arises from improper parsing of the HID descriptor, specifically accessing elements beyond the valid range, which could cause faults. The fix involved updating the HID descriptor structure to better match the USB HID 1.11 specification, validating descriptor lengths and counts, replacing a for loop with direct access to mandatory descriptor members, and adding warnings for unsupported optional descriptors.


How can this vulnerability impact me? :

This vulnerability could lead to out-of-bounds memory access when parsing USB HID descriptors, potentially causing system crashes or instability. Such faults might be exploited to disrupt normal system operation or cause denial of service. The fix prevents these out-of-bounds accesses, improving system stability and security when handling USB HID devices.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart