HID: usbhid: Eliminate recurrent out-of-bounds bug in usbhid_parse() (Linux Linux)

CVE-2025-38103
HIGH 7.1

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 11 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected f043bfc98c193c284e2cd768fefabe18ac2fed9b < 7a6d6b68db128da2078ccd9a751dfa3f75c9cf5b ; affected f043bfc98c193c284e2cd768fefabe18ac2fed9b < 41827a2dbdd7880df9881506dee13bc88d4230bb ; affected f043bfc98c193c284e2cd768fefabe18ac2fed9b < 1df80d748f984290c895e843401824215dcfbfb0 ; affected f043bfc98c193c284e2cd768fefabe18ac2fed9b < a8f842534807985d3a676006d140541b87044345 ; affected f043bfc98c193c284e2cd768fefabe18ac2fed9b < 4fa7831cf0ac71a0a345369d1a6084f2b096e55e ; affected f043bfc98c193c284e2cd768fefabe18ac2fed9b < 74388368927e9c52a69524af5bbd6c55eb4690de
Linux · Linuxaffected 4.14 ; unaffected 0 < 4.14 ; unaffected 5.4.295 ≤ 5.4.* ; unaffected 5.10.239 ≤ 5.10.* ; unaffected 5.15.186 ≤ 5.15.* ; unaffected 6.1.142 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD