CVE-2023-52781

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

State
Published
Severity
Not scored
Published
May 21, 2024
Updated
May 23, 2026
Reserved
May 21, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 3dd550a2d36596a1b0ee7955da3b611c031d3873 to before 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223Affected
  • 3dd550a2d36596a1b0ee7955da3b611c031d3873 to before 64c27b7b2357ddb38b6afebaf46d5bff4d250702Affected
  • 3dd550a2d36596a1b0ee7955da3b611c031d3873 to before f89fef7710b2ba0f7a1e46594e530dcf2f77be91Affected
  • 3dd550a2d36596a1b0ee7955da3b611c031d3873 to before 7c0244cc311a4038505b73682b7c8ceaa5c7a8c8Affected
  • 3dd550a2d36596a1b0ee7955da3b611c031d3873 to before 974bba5c118f4c2baf00de0356e3e4f7928b4cbcAffected
  • 77ce180d68beffd1af620d0121590e16683fc6b8Affected
  • 20a07e1aadcd6990893c532d1b2b507bfa065152Affected
  • a5c051b6503c0ba543e993cfc295b64f096e0a29Affected
  • ea4a173d8358b756a780786baa3fc39d282bdbe3Affected
  • 77d4e2a058858b4a94fc469bc1bfc94a0958e252Affected
  • 1fc15d29540a69cfb55c8b8f8c38f1af33178243Affected
  • 9f8dd40c68c176f2c3f1fc8b87bc81756856938fAffected
  • 3.16.79 to before 3.17Affected
  • 4.4.194 to before 4.5Affected
  • 4.9.194 to before 4.10Affected
  • 4.14.146 to before 4.15Affected
  • 4.19.75 to before 4.20Affected
  • 5.2.17 to before 5.3Affected
  • 5.3.1 to before 5.4Affected
LinuxLinux
  • 5.4Affected
  • before 5.4Not affected
  • 5.10.203 through 5.10.*Not affected
  • 5.15.142 through 5.15.*Not affected
  • 6.1.66 through 6.1.*Not affected
  • 6.6.4 through 6.6.*Not affected
  • 6.7 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.