CVE-2022-39344 Azure RTOS USBX vulnerable to buffer overflow
A buffer overflow in Azure RTOS USBX allows attackers to execute arbitrary code or bypass security features via USB DFU UPLOAD commands.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-39344?
CVE-2022-39344 is a critical memory corruption vulnerability in azure-rtos usbx, published on 4 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Azure RTOS USBX is a USB host, device, and on-the-go (OTG) embedded stack, that is fully integrated with Azure RTOS ThreadX. Prior to version 6.1.12, the USB DFU UPLOAD functionality may be utilized to introduce a buffer overflow resulting in overwrite of memory contents. In particular cases this may allow an attacker to bypass security features or execute arbitrary code. The implementation of `ux_device_class_dfu_control_request` function prevents buffer overflow during handling of DFU UPLOAD command when current state is `UX_SYSTEM_DFU_STATE_DFU_IDLE`. This issue has been patched, please upgrade to version 6.1.12. As a workaround, add the `UPLOAD_LENGTH` check in all possible states.
Weakness: CWE-120
Which versions are affected by CVE-2022-39344?
It affects 1 product.
Products include Microsoft Azure Rtos Usbx.
How do I fix CVE-2022-39344?
No fix has been published for CVE-2022-39344 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-39344 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-39344 exists.
Sources
Also known as GHSA-m9p8-xrp7-vvqp.