CVE-2025-38103
HID: usbhid: Eliminate recurrent out-of-bounds bug in usbhid_parse()
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
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
SSVC
- Decision:-
Timeline
- 2025-04-16 CVE Reserved
- 2025-07-03 CVE Published
- 2025-07-03 CVE Updated
- 2025-07-09 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
CAPEC
References (16)
URL | Tag | Source |
---|---|---|
https://git.kernel.org/stable/c/f043bfc98c193c284e2cd768fefabe18ac2fed9b | Vuln. Introduced | |
https://git.kernel.org/stable/c/99de0781e0de7c866f762b931351c2a501c3074f | Vuln. Introduced | |
https://git.kernel.org/stable/c/8d675aa967d3927ac100f7af48f2a2af8a041d2d | Vuln. Introduced | |
https://git.kernel.org/stable/c/f4cf5d75416ae3d79e03179fe6f4b9f1231ae42c | Vuln. Introduced | |
https://git.kernel.org/stable/c/439f76690d7d5dd212ea7bebc1f2fa077e3d645d | Vuln. Introduced | |
https://git.kernel.org/stable/c/2929cb995378205bceda86d6fd3cbc22e522f97f | Vuln. Introduced | |
https://git.kernel.org/stable/c/57265cddde308292af881ce634a5378dd4e25900 | Vuln. Introduced | |
https://git.kernel.org/stable/c/984154e7eef1f9e543dabd7422cfc99015778732 | Vuln. Introduced |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 4.14 < 5.4.295 Search vendor "Linux" for product "Linux Kernel" and version " >= 4.14 < 5.4.295" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 4.14 < 5.10.239 Search vendor "Linux" for product "Linux Kernel" and version " >= 4.14 < 5.10.239" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 4.14 < 5.15.186 Search vendor "Linux" for product "Linux Kernel" and version " >= 4.14 < 5.15.186" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 4.14 < 6.1.142 Search vendor "Linux" for product "Linux Kernel" and version " >= 4.14 < 6.1.142" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 4.14 < 6.6.94 Search vendor "Linux" for product "Linux Kernel" and version " >= 4.14 < 6.6.94" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 4.14 < 6.12.34 Search vendor "Linux" for product "Linux Kernel" and version " >= 4.14 < 6.12.34" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 4.14 < 6.15.3 Search vendor "Linux" for product "Linux Kernel" and version " >= 4.14 < 6.15.3" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 4.14 < 6.16-rc1 Search vendor "Linux" for product "Linux Kernel" and version " >= 4.14 < 6.16-rc1" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | 3.2.95 Search vendor "Linux" for product "Linux Kernel" and version "3.2.95" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | 3.16.50 Search vendor "Linux" for product "Linux Kernel" and version "3.16.50" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | 3.18.76 Search vendor "Linux" for product "Linux Kernel" and version "3.18.76" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | 4.1.46 Search vendor "Linux" for product "Linux Kernel" and version "4.1.46" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | 4.4.93 Search vendor "Linux" for product "Linux Kernel" and version "4.4.93" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | 4.9.57 Search vendor "Linux" for product "Linux Kernel" and version "4.9.57" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | 4.13.8 Search vendor "Linux" for product "Linux Kernel" and version "4.13.8" | en |
Affected
|