# CVE-2023-52781: usb: config: fix iteration issue in 'usb_get_bos_descriptor()'

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-05-21T15:31:00.242Z
- Modified: 2026-06-17T06:43:34.090Z
- Weaknesses: CWE-670
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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; ea4a173d8358b756a780786baa3fc39d282bdbe3; 77d4e2a058858b4a94fc469bc1bfc94a0958e252; 1fc15d29540a69cfb55c8b8f8c38f1af33178243; 9f8dd40c68c176f2c3f1fc8b87bc81756856938f; and 8 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 *)
- 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; from 5.16 before 6.1.66; from 6.2 before 6.6.4; 6.7

## References

- <https://git.kernel.org/stable/c/9ef94ec8e52eaf7b9abc5b5f8f5b911751112223> (patch)
- <https://git.kernel.org/stable/c/64c27b7b2357ddb38b6afebaf46d5bff4d250702> (patch)
- <https://git.kernel.org/stable/c/f89fef7710b2ba0f7a1e46594e530dcf2f77be91> (patch)
- <https://git.kernel.org/stable/c/7c0244cc311a4038505b73682b7c8ceaa5c7a8c8> (patch)
- <https://git.kernel.org/stable/c/974bba5c118f4c2baf00de0356e3e4f7928b4cbc> (patch)

## Sources

- CVE List: [CVE-2023-52781](https://www.cve.org/CVERecord?id=CVE-2023-52781), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2023-52781](https://nvd.nist.gov/vuln/detail/CVE-2023-52781), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52781 · Whole record: https://cve.day/CVE-2023-52781.json · Rebuilt by cve.day 2026-11-25T22:58:34.016Z
