{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "6.1.10"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8f56ef4e4492dd66c2161b7c1534c6f4442852a4"
            }
          ],
          "repo": "https://github.com/azure-rtos/usbx",
          "type": "GIT"
        }
      ]
    },
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "6.1.10"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8f56ef4e4492dd66c2161b7c1534c6f4442852a4"
            }
          ],
          "repo": "https://github.com/eclipse-threadx/usbx",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-2qc5-385m-x862"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-120"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29223.json"
  },
  "details": "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` -\u003e `ux_host_class_hub_device` -\u003e `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.",
  "id": "CVE-2022-29223",
  "modified": "2026-04-01T23:07:59.579108433Z",
  "published": "2022-05-24T14:25:10Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/azure-rtos/usbx/releases/tag/v6.1.10_rel"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29223.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/azure-rtos/usbx/security/advisories/GHSA-2qc5-385m-x862"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-29223"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Buffer overflow on HUB descriptor in Azure RTOS USBX"
}