CWE
120 119
Advisory Published
Updated

CVE-2022-29246: Potential buffer overflow in function DFU upload in Azure RTOS USBX

First published: Tue May 24 2022(Updated: )

Azure RTOS USBX is a USB host, device, and on-the-go (OTG) embedded stack. Prior to version 6.1.11, he USBX 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 does not assure that a buffer overflow will not occur during handling of the DFU UPLOAD command. When an attacker issues the `UX_SLAVE_CLASS_DFU_COMMAND_UPLOAD` control transfer request with `wLenght` larger than the buffer size (`UX_SLAVE_REQUEST_CONTROL_MAX_LENGTH`, 256 bytes), depending on the actual implementation of `dfu -> ux_slave_class_dfu_read`, a buffer overflow may occur. In example `ux_slave_class_dfu_read` may read 4096 bytes (or more up to 65k) to a 256 byte buffer ultimately resulting in an overflow. Furthermore in case an attacker has some control over the read flash memory, this may result in execution of arbitrary code and platform compromise. A fix for this issue has been included in USBX release 6.1.11. As a workaround, align request and buffer size to assure that buffer boundaries are respected.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Microsoft Azure Rtos Usbx<6.1.11

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2022-29246?

    CVE-2022-29246 is a vulnerability in Azure RTOS USBX that allows an attacker to introduce a buffer overflow resulting in memory overwrite.

  • What is the severity of CVE-2022-29246?

    The severity of CVE-2022-29246 is critical, with a severity value of 9.8.

  • How does CVE-2022-29246 affect Azure RTOS USBX?

    CVE-2022-29246 affects Azure RTOS USBX prior to version 6.1.11, allowing an attacker to bypass security features and potentially gain unauthorized access.

  • How can I fix CVE-2022-29246?

    To fix CVE-2022-29246, you should update Azure RTOS USBX to version 6.1.11 or newer.

  • Are there any references available for CVE-2022-29246?

    Yes, you can find references for CVE-2022-29246 at the following links: [Link 1](https://github.com/azure-rtos/usbx/blob/master/common/usbx_device_classes/src/ux_device_class_dfu_control_request.c), [Link 2](https://github.com/azure-rtos/usbx/releases/tag/v6.1.11_rel), [Link 3](https://github.com/azure-rtos/usbx/security/advisories/GHSA-hh5p-x584-j8hv).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203