CVE-2023-52781

published 21 May 2024 · updated 17 Nov 2026

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

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.4, Kernel 3.17, Kernel 64c27b7b2357ddb38b6afebaf46d5bff4d250702 and 13 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=5.3.1 <5.4, >=3.16.79 <3.17, >=3dd550a2d36596a1b0ee7955da3b611c031d3873 <64c27b7b2357ddb38b6afebaf46d5bff4d250702, >=3dd550a2d36596a1b0ee7955da3b611c031d3873 <7c0244cc311a4038505b73682b7c8ceaa5c7a8c8, >=3dd550a2d36596a1b0ee7955da3b611c031d3873 <974bba5c118f4c2baf00de0356e3e4f7928b4cbc, >=3dd550a2d36596a1b0ee7955da3b611c031d3873 <9ef94ec8e52eaf7b9abc5b5f8f5b911751112223, >=3dd550a2d36596a1b0ee7955da3b611c031d3873 <f89fef7710b2ba0f7a1e46594e530dcf2f77be91, >=4.14.146 <4.15, >=4.19.75 <4.20, >=4.4.194 <4.5, >=4.9.194 <4.10, >=5.2.17 <5.3, =1fc15d29540a69cfb55c8b8f8c38f1af33178243, =20a07e1aadcd6990893c532d1b2b507bfa065152, =5.4, =77ce180d68beffd1af620d0121590e16683fc6b8, =77d4e2a058858b4a94fc469bc1bfc94a0958e252, =9f8dd40c68c176f2c3f1fc8b87bc81756856938f, =a5c051b6503c0ba543e993cfc295b64f096e0a29, =ea4a173d8358b756a780786baa3fc39d282bdbe35.4, 3.17, 64c27b7b2357ddb38b6afebaf46d5bff4d250702, 7c0244cc311a4038505b73682b7c8ceaa5c7a8c8, 974bba5c118f4c2baf00de0356e3e4f7928b4cbc, 9ef94ec8e52eaf7b9abc5b5f8f5b911751112223, f89fef7710b2ba0f7a1e46594e530dcf2f77be91, 4.15, 4.20, 4.5, 4.10, 5.3
linux-kernel: Kernel>=4.14.146 <4.15, >=4.19.75 <4.20, >=4.4.194 <4.5, >=4.9.194 <4.10, >=5.11.0 <5.15.142, >=5.16.0 <6.1.66, >=5.2.17 <5.3, >=5.3.1 <5.4, >=5.4.0 <5.10.203, >=6.2.0 <6.6.4, >=3.16.79 <3.174.15, 4.20, 4.5, 4.10, 5.15.142, 6.1.66, 5.3, 5.4, 5.10.203, 6.6.4, 3.17

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-52781 severity on Zeptric[![CVE-2023-52781](https://zeptric.io/badge/cve/CVE-2023-52781.svg)](https://zeptric.io/cve/CVE-2023-52781)