CVE-2022-39293
Last modified
CVE-2022-39293 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.64% chance of exploitation in the next 30 days.
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`).
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Eclipse | Threadx Usbx | < 6.1.12 |
References
- https://github.com/azure-rtos/usbx/releases/tag/v6.1.12_relRelease Notes, Third Party Advisory
- https://github.com/azure-rtos/usbx/security/advisories/GHSA-gg76-h537-xq48Patch, Third Party Advisory
- https://github.com/azure-rtos/usbx/releases/tag/v6.1.12_relRelease Notes, Third Party Advisory
- https://github.com/azure-rtos/usbx/security/advisories/GHSA-gg76-h537-xq48Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-39293?
How severe is CVE-2022-39293?
How do I fix CVE-2022-39293?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-39288fastify is a fast and low overhead web framework, for Node.j…7.5
- CVE-2022-39289ZoneMinder is a free, open source Closed-circuit television …7.5
- CVE-2022-3929 Communication between the client and the server application…9.8
- CVE-2022-39290ZoneMinder is a free, open source Closed-circuit television …6.5
- CVE-2022-39291ZoneMinder is a free, open source Closed-circuit television …5.4
- CVE-2022-39292Slack Morphism is a modern client library for Slack Web/Even…7.5
- CVE-2022-39294conduit-hyper integrates a conduit application with the hype…7.5
- CVE-2022-39295Knowage is an open source suite for modern business analytic…6.1
- CVE-2022-39296MelisAssetManager provides deliveries of Melis Platform's as…7.5
- CVE-2022-39297MelisCms provides a full CMS for Melis Platform, including t…9.8
- CVE-2022-39298MelisFront is the engine that displays website hosted on Mel…9.8
- CVE-2022-39299Passport-SAML is a SAML 2.0 authentication provider for Pass…8.1
Are you affected by CVE-2022-39293?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
