# CVE-2022-29223: Buffer overflow on HUB descriptor in Azure RTOS USBX

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- 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): 1.23%, higher than 69% of CVEs (2026-12-01)
- Published: 2022-05-24T14:25:10.000Z
- Modified: 2026-06-17T04:39:51.890Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Azure RTOS USBX is a USB host, device, and on-the-go (OTG) embedded stack. In versions prior to 6.1.10, an attacker can cause a buffer overflow by providing the Azure RTOS USBX host stack a HUB descriptor with `bNbPorts` set to a value greater than `UX_MAX_TT` which defaults to 8. For a `bNbPorts` value of 255, the implementation of `ux_host_class_hub_descriptor_get` function will modify the contents of `hub` -> `ux_host_class_hub_device` -> `ux_device_hub_tt` array violating the end boundary by 255 - `UX_MAX_TT` items. The USB host stack needs to validate the number of ports reported by the hub, and if the value is larger than UX_MAX_TT, USB stack needs to reject the request. This fix has been included in USBX release 6.1.10.

(As written by CVE List.)

## Affected

- azure-rtos usbx: < 6.1.10
- eclipse threadx_usbx: before 6.1.10

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/azure-rtos/usbx/security/advisories/GHSA-2qc5-385m-x862> (release-notes, third-party-advisory)
- <https://github.com/azure-rtos/usbx/releases/tag/v6.1.10_rel> (release-notes, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2022-29223 · Whole record: https://cve.day/CVE-2022-29223.json · Rebuilt by cve.day 2026-11-25T22:58:11.915Z
