CVE
CVE-2025-38103
CNA 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 versions
All Linux kernel vulnerabilities →
- ≥ 6.13, < 6.15.3Fixed in 6.15.3
- ≥ 6.7, < 6.12.34Fixed in 6.12.34
- ≥ 6.2, < 6.6.94Fixed in 6.6.94
- ≥ 5.16, < 6.1.142Fixed in 6.1.142
- ≥ 5.11, < 5.15.186Fixed in 5.15.186
- ≥ 5.5, < 5.10.239Fixed in 5.10.239
- ≥ 4.14.1, < 5.4.295Fixed in 5.4.295
- 4.14This version only
- 4.14-rc8This version only
- 4.14-rc7This version only
- 4.14-rc6This version only
- 4.14-rc5This version only
- ≥ 4.13.8, < 4.14Fixed in 4.14
- ≥ 4.9.57, < 4.10Fixed in 4.10
- ≥ 4.4.93, < 4.5Fixed in 4.5
- ≥ 4.1.46, < 4.2Fixed in 4.2
- ≥ 3.18.76, < 3.19Fixed in 3.19
- ≥ 3.16.50, < 3.17Fixed in 3.17
- ≥ 3.2.95, < 3.3Fixed in 3.3
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- git.kernel.org/stable/c/1df80d748f984290c895e843401824215dcfbfb0 · Patch
- git.kernel.org/stable/c/41827a2dbdd7880df9881506dee13bc88d4230bb · Patch
- git.kernel.org/stable/c/485e1b741eb838cbe1d6b0e81e5ab62ae6c095cf · Patch
- git.kernel.org/stable/c/4fa7831cf0ac71a0a345369d1a6084f2b096e55e · Patch
- git.kernel.org/stable/c/74388368927e9c52a69524af5bbd6c55eb4690de · Patch
- git.kernel.org/stable/c/7a6d6b68db128da2078ccd9a751dfa3f75c9cf5b · Patch
- git.kernel.org/stable/c/a8f842534807985d3a676006d140541b87044345 · Patch
- git.kernel.org/stable/c/fe7f7ac8e0c708446ff017453add769ffc15deed · Patch
- lists.debian.org/debian-lts-announce/2025/10/msg00007.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2025/10/msg00008.html · Third Party Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.