# CVE-2022-36063: USBX Host CDC ECM integer underflow with buffer overflow

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.6
- **CVSS:** 7.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 2.14% (percentile 83, 2026-11-26)
- **CWE:** CWE-121, CWE-191
- **Published:** 2022-10-10T00:00:00.000Z
- **Modified:** 2026-06-17T04:52:50.360Z

## Who should check

- Anyone running azure-rtos usbx \< 6.1.12

## Description

Azure RTOS USBx is a USB host, device, and on-the-go (OTG) embedded stack, fully integrated with Azure RTOS ThreadX and available for all Azure RTOS ThreadX–supported processors. Azure RTOS USBX implementation of host support for USB CDC ECM includes an integer underflow and a buffer overflow in the \`\_ux\_host\_class\_cdc\_ecm\_mac\_address\_get\` function which may be potentially exploited to achieve remote code execution or denial of service. Setting mac address string descriptor length to a \`0\` or \`1\` allows an attacker to introduce an integer underflow followed (string\_length) by a buffer overflow of the \`cdc\_ecm -\> ux\_host\_class\_cdc\_ecm\_node\_id\` array. This may allow one to redirect the code execution flow or introduce a denial of service. The fix has been included in USBX release \[6.1.12\](https://github.com/azure-rtos/usbx/releases/tag/v6.1.12\_rel). Improved mac address string descriptor length validation to check for unexpectedly small values may be used as a workaround.

## Affected and fixed versions

- azure-rtos usbx: \< 6.1.12 (cvelist)

## Mitigation

- Upgrade usbx to 6.1.12 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-36063. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-36063.md
Affected: azure-rtos usbx < 6.1.12
Fixed in: azure-rtos usbx 6.1.12

Steps:
1. Search this machine and project for azure-rtos usbx: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-36063 being exploited?

There is no confirmed exploitation: CVE-2022-36063 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.14% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-36063?

High: CVSS 7.6 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2022-36063?

azure-rtos usbx \< 6.1.12.

### Is there a fix for CVE-2022-36063?

Yes. Fixed in azure-rtos usbx 6.1.12. Upgrade usbx to 6.1.12 or later.

### How do I check if I'm affected by CVE-2022-36063?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/azure-rtos/usbx/security/advisories/GHSA-chpp-5fv9-6368>
- patch: <https://github.com/azure-rtos/usbx/releases/tag/v6.1.12_rel>
- exploit: <https://github.com/azure-rtos/usbx/blob/master/common/usbx_host_classes/src/ux_host_class_cdc_ecm_mac_address_get.c#L264>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-36063>

HTML: <https://flawdb.com/CVE-2022-36063> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-36063>
