Vulnerability Note VU#590639

NXP Semiconductors MQX RTOS contains multiple vulnerabilities

Original Release date: 12 Oct 2017 | Last revised: 13 Oct 2017

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 (Learn More)

VendorStatusDate NotifiedDate Updated
NXP Semiconductors Inc.Affected19 Jun 201710 Oct 2017
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

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

Credit

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: 12 Oct 2017
  • Date First Published: 12 Oct 2017
  • Date Last Updated: 13 Oct 2017
  • Document Revision: 42

Feedback

If you have feedback, comments, or additional information about this vulnerability, please send us email.