CVE-2025-38103
HID: usbhid: Eliminate recurrent out-of-bounds bug in usbhid_parse()
Reported by linux · Published July 3, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-perf | Amazon Linux | 1:6.1.144-170.251.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.12.35-55.103.amzn2023 |
| perf6.12 | Amazon Linux | 6.12.35-55.103.amzn2023 |
| Linux | Linux | 4.14 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f043bfc98c193c284e2cd768fefabe18ac2fed9b, f043bfc98c193c284e2cd768fefabe18ac2fed9b, f043bfc98c193c284e2cd768fefabe18ac2fed9b |
| Linux | Linux | 4.14, 0, 5.4.295 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | perf6.12 | 0 |
| Linux | Linux | *, 6.16, 6.15.3 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-livepatch-6.12.35-55.103 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| linux | linux_kernel | 3.18.76, 3.16.50, 3.2.95 |
| amazon:2023 | kernel-livepatch-6.1.144-170.251 | 0 |
| amazon:2023 | perf | 0 |
…and 3 more
Timeline
- Jul 2, 2025 CVE Published
- Jul 3, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (16 in total, the first dated here)
- Nov 17, 2025 CVE Updated
- Mar 29, 2026 Distribution Patch (224 in total, the first dated here)
- Mar 29, 2026 Security Advisory (238 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38103
vulnetix vdb fixes CVE-2025-38103
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38103/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart