search menu icon-carat-right cmu-wordmark

CERT Coordination Center

NXP Semiconductors MQX RTOS contains multiple vulnerabilities

Vulnerability Note VU#590639

Original Release Date: 2017-10-12 | Last Revised: 2018-01-22

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: 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: 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> for details.

MQX version 5.1 will fully address these issues, but is not expected to be released until 2018Q1.

Vendor Information

590639
 

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

Acknowledgements

Thanks to Scott Gayou for reporting this vulnerability.

This document was written by Garret Wassermann.

Other Information

CVE IDs: CVE-2017-12718, 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

Sponsored by CISA.