NXP Semiconductors MQX RTOS contains multiple vulnerabilities


### Overview The NXP Semiconductors MQX RTOS prior to version 5.1 contains a buffer overflow in the DHCP client, which may lead to memory corruption allowing an attacker to execute arbitrary code, as well as an out of bounds read in the DNS client which may lead to a denial of service. ### Description The NXP Semiconductors MQX real-time operating system (RTOS) prior to version 5.1 is vulnerable to the following: [**CWE-120**](<http://cwe.mitre.org/data/definitions/120.html>)**: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') - **CVE-2017-12718 The RTCS DHCP client for MQX version 5.0 fails to sanitize lengths for DHCP options 66 and 67. A remote attacker sending crafted DHCP packets utilizing options 66 and 67 may gain control of the length passed to memcpy, which may allow overwriting memory with a function pointer and privileged arbitrary code execution on all devices that have MQX RTCS networking support and DHCP enabled. [**CWE-125**](<http://cwe.mitre.org/data/definitions/125.html>)**: Out-of-bounds Read - **CVE-2017-12722 The DNS client for MQX prior to version 4.2 fails to properly handle sizes in corrupt DNS packets, resulting in an out-of-bounds read. A remote attacker sending crafted DNS packets may cause an out-of-bounds read condition, resulting in a denial of service. ICS-CERT has also released an advisory with further information on vulnerable products. --- ### Impact A remote, unauthenticated attacker may be able to send crafted DHCP or DNS packets to cause a buffer overflow and/or corrupt memory, leading to denial of service or code execution on the device. --- ### Solution **Apply an update/patch** CVE-2017-12722 only affects MQX version 4.1 or prior. Affected users are encouraged to update to version 4.2 or later as soon as possible. A patch is available for CVE-2017-12718 for users of MQX version 5.0. Affected users may contact NXP support at <[mqxsales@nxp.com](<mailto:mqxsales@nxp.com>)> for details. MQX version 5.1 will fully address these issues, but is not expected to be released until 2018Q1. --- ### Vendor Information 590639 Filter by status: All Affected Not Affected Unknown Filter by content: __ Additional information available __ Sort by: Status Alphabetical Expand all **Javascript is disabled. Click here to view vendors.** ### NXP Semiconductors Inc. __ Affected Notified: June 19, 2017 Updated: October 10, 2017 **Statement Date: August 13, 2017** ### Status Affected ### Vendor Statement We have not received a statement from the vendor. ### Vendor Information Users should update to MQX version 4.2 or later, and request the security hotfix from NXP. For additional information please contact mqxsales@nxp.com. Affected products using MQX include: ColdFire microcontrollers, Kinetis microcontrollers, i.MX processors, and Vybrid processors. ### CVSS Metrics Group | Score | Vector ---|---|--- Base | 9.3 | AV:N/AC:M/Au:N/C:C/I:C/A:C Temporal | 7.3 | E:POC/RL:OF/RC:C Environmental | 5.5 | CDP:ND/TD:M/CR:ND/IR:ND/AR:ND ### References * <https://ics-cert.us-cert.gov/advisories/ICSA-17-285-04> * <http://cwe.mitre.org/data/definitions/120.html> * <http://cwe.mitre.org/data/definitions/125.html> * <https://github.com/sgayou/medfusion-4000-research/blob/master/doc/README.md> ### Acknowledgements Thanks to Scott Gayou for reporting this vulnerability. This document was written by Garret Wassermann. ### Other Information **CVE IDs:** | [CVE-2017-12718](<http://web.nvd.nist.gov/vuln/detail/CVE-2017-12718>), [CVE-2017-12722](<http://web.nvd.nist.gov/vuln/detail/CVE-2017-12722>) ---|--- **Date Public:** | 2017-10-12 **Date First Published:** | 2017-10-12 **Date Last Updated: ** | 2018-01-22 21:56 UTC **Document Revision: ** | 44