Skip to main content
← All vulnerabilities
CVE-2023-52781

usb: config: fix iteration issue in 'usb_get_bos_descriptor()'

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.17, 4.5, 4.10, 4.15, 4.20, and 2 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 3.16.79 · fixed in 3.17; From 4.4.194 · fixed in 4.5; From 4.9.194 · fixed in 4.10; From 4.14.146 · fixed in 4.15; From 4.19.75 · fixed in 4.20; From 5.2.17 · fixed in 5.3; From 5.3.1 · fixed in 5.4

  • Linux Linux

    5.4

References 5

git.kernel.org