5.5medium
usb: config: fix iteration issue in 'usb_get_bos_descriptor()'
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: usb: config: fix iteration issue in 'usb_get_bos_descriptor()' The BOS descriptor defines a root descriptor and is the base descriptor for accessing a family of related descriptors. Function 'usb_get_bos_descriptor()' encounters an iteration issue when skipping the 'USB_DT_DEVICE_CAPABILITY' descriptor type. This results in the same descriptor being read repeatedly. To address this issue, a 'goto' statement is introduced to ensure that the pointer and the amount read is updated correctly. This ensures that the function iterates to the next descriptor instead of reading the same descriptor repeatedly.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 3dd550a2d36596a1b0ee7955da3b611c031d3873 before 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223, from 3dd550a2d36596a1b0ee7955da3b611c031d3873 before 64c27b7b2357ddb38b6afebaf46d5bff4d250702, from 3dd550a2d36596a1b0ee7955da3b611c031d3873 before f89fef7710b2ba0f7a1e46594e530dcf2f77be91, from 3dd550a2d36596a1b0ee7955da3b611c031d3873 before 7c0244cc311a4038505b73682b7c8ceaa5c7a8c8, from 3dd550a2d36596a1b0ee7955da3b611c031d3873 before 974bba5c118f4c2baf00de0356e3e4f7928b4cbc, 77ce180d68beffd1af620d0121590e16683fc6b8, 20a07e1aadcd6990893c532d1b2b507bfa065152, a5c051b6503c0ba543e993cfc295b64f096e0a29 and 12 more Not affected: before 5.4, from 5.10.203 up to 5.10.*, from 5.15.142 up to 5.15.*, from 6.1.66 up to 6.1.*, from 6.6.4 up to 6.6.*, from 6.7 up to * | CVE List |
| linux linux_kernel | from 3.16.79 before 3.17, from 4.4.194 before 4.5, from 4.9.194 before 4.10, from 4.14.146 before 4.15, from 4.19.75 before 4.20, from 5.2.17 before 5.3, from 5.3.1 before 5.10.203, from 5.11 before 5.15.142 and 3 more | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: usb: config: fix iteration issue in 'usb_get_bos_descriptor()' The BOS descriptor defines a root descriptor and is the base descriptor for accessing a family of related descriptors. Function 'usb_get_bos_descriptor()' encounters an iteration issue when skipping the 'USB_DT_DEVICE_CAPABILITY' descriptor type. This results in the same descriptor being read repeatedly. To address this issue, a 'goto' statement is introduced to ensure that the pointer and the amount read is updated correctly. This ensures that the function iterates to the next descriptor instead of reading the same descriptor repeatedly.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: usb: config: soluciona el problema de iteración en 'usb_get_bos_descriptor()'. El descriptor BOS define un descriptor raíz y es el descriptor base para acceder a una familia de descriptores relacionados. La función 'usb_get_bos_descriptor()' encuentra un problema de iteración al omitir el tipo de descriptor 'USB_DT_DEVICE_CAPABILITY'. Esto da como resultado que el mismo descriptor se lea repetidamente. Para solucionar este problema, se introduce una declaración 'goto' para garantizar que el puntero y la cantidad leída se actualicen correctamente. Esto garantiza que la función pase al siguiente descriptor en lugar de leer el mismo descriptor repetidamente.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-52781 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2023-52781 changed 2026-06-17 | Public domain |