Azure RTOS Elevation of Privilege Vulnerability (CVE-2021-42304)
A vulnerability existed in Azure RTOS's USB stack (USBX) that could allow elevation of privilege when a malicious USB device was plugged into a host. An attacker with physical access to plug in such a device could potentially exploit the affected host audio/video/CDC-ECM/PIMA or device storage class code.
Originally disclosed on Microsoft
FAQ
What is RTOS? Azure RTOS is an embedded development suite including a small but powerful operating system that provides reliable, ultra-fast performance for resource-constrained devices. See Azure RTOS Overview for more information. What version of Azure RTOS has the update that protects from this vulnerability? Version 6.1.9 According to the CVSS, User Interaction is Required. What interaction would the user have to do? Exploitation of this vulnerability requires that a user plug in a malicious USB device.
FAQ
What is the action required to take the update? You need to recompile your project with updated USBX source code if the project uses host audio/video/CDC-ECM/PIMA, or device storage class.
Azure Real Time Operating System
Azure Real Time Operating System
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a flaw in the USBX host class drivers (audio/video/CDC-ECM/PIMA) or device storage class handling that fails to properly validate data from a connected USB device.
What the attacker needed
Physical access to plug in a USB device; affected USB class in use
The fix
The issue was fixed in Azure RTOS version 6.1.9; projects using the affected USB classes should be recompiled with the updated USBX source code.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Azure RTOS is a small operating system used inside embedded devices. This bug meant that if someone plugged a specially crafted USB device into an affected device, the USB software could be tricked into giving that device more power than it should have. The user has to physically connect the malicious USB stick or device for the attack to work.