# CVE-2022-39293: Azure RTOS USBX Host PIMA vulnerable to read integer underflow with buffer overflow

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

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.92% (percentile 59, 2026-11-26)
- **CWE:** CWE-191
- **Published:** 2022-10-13T00:00:00.000Z
- **Modified:** 2026-06-17T04:58:05.203Z

## Who should check

- Anyone running azure-rtos usbx \< 6.1.12

## Description

Azure RTOS USBX is a high-performance USB host, device, and on-the-go (OTG) embedded stack, that is fully integrated with Azure RTOS ThreadX. The case is, in \[\_ux\_host\_class\_pima\_read\](https://github.com/azure-rtos/usbx/blob/master/common/usbx\_host\_classes/src/ux\_host\_class\_pima\_read.c), there is data length from device response, returned in the very first packet, and read by \[L165 code\](https://github.com/azure-rtos/usbx/blob/082fd9db09a3669eca3358f10b8837a5c1635c0b/common/usbx\_host\_classes/src/ux\_host\_class\_pima\_read.c\#L165), as header\_length. Then in \[L178 code\](https://github.com/azure-rtos/usbx/blob/082fd9db09a3669eca3358f10b8837a5c1635c0b/common/usbx\_host\_classes/src/ux\_host\_class\_pima\_read.c\#L178), there is a “if” branch, which check the expression of “(header\_length - UX\_HOST\_CLASS\_PIMA\_DATA\_HEADER\_SIZE) \> data\_length” where if header\_length is smaller than UX\_HOST\_CLASS\_PIMA\_DATA\_HEADER\_SIZE, calculation could overflow and then \[L182 code\](https://github.com/azure-rtos/usbx/blob/082fd9db09a3669eca3358f10b8837a5c1635c0b/common/usbx\_host\_classes/src/ux\_host\_class\_pima\_read.c\#L182) the calculation of data\_length is also overflow, this way the later \[while loop start from L192\](https://github.com/azure-rtos/usbx/blob/082fd9db09a3669eca3358f10b8837a5c1635c0b/common/usbx\_host\_classes/src/ux\_host\_class\_pima\_read.c\#L192) can move data\_pointer to unexpected address and cause write buffer overflow. The fix has been included in USBX release \[6.1.12\](https://github.com/azure-rtos/usbx/releases/tag/v6.1.12\_rel). The following can be used as a workaround: Add check of \`header\_length\`: 1. It must be greater than \`UX\_HOST\_CLASS\_PIMA\_DATA\_HEADER\_SIZE\`. 1. It should be greater or equal to the current returned data length (\`transfer\_request -\> ux\_transfer\_request\_actual\_length\`).

## 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-39293. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-39293.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-39293 being exploited?

There is no confirmed exploitation: CVE-2022-39293 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.92% chance of exploitation in the next 30 days (as of 2026-11-26).

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

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

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

azure-rtos usbx \< 6.1.12.

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

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-39293?

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-gg76-h537-xq48>
- other: <https://github.com/azure-rtos/usbx/releases/tag/v6.1.12_rel>

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

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