Hash: SHA256

             AUSCERT External Security Bulletin Redistribution

           Advisory (ICSA-17-285-04) NXP Semiconductors MQX RTOS
                              13 October 2017


        AusCERT Security Bulletin Summary

Product:           NXP Semiconductors MQX RTOS
Publisher:         ICS-CERT
Operating System:  Network Appliance
Impact/Access:     Execute Arbitrary Code/Commands -- Remote/Unauthenticated
                   Denial of Service               -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2017-12722 CVE-2017-12718 

Original Bulletin: 

- --------------------------BEGIN INCLUDED TEXT--------------------

Advisory (ICSA-17-285-04)

NXP Semiconductors MQX RTOS

Original release date: October 12, 2017

Legal Notice

All information products included in http://ics-cert.us-cert.gov are provided
"as is" for informational purposes only. The Department of Homeland Security 
(DHS) does not provide any warranties of any kind regarding any information 
contained within. DHS does not endorse any commercial product or service, 
referenced in this product or otherwise. Further dissemination of this product
is governed by the Traffic Light Protocol (TLP) marking in the header. For 
more information about TLP, see http://www.us-cert.gov/tlp/.

CVSS v3 8.1

ATTENTION: Remotely exploitable/low skill level to exploit.

Vendor: NXP Semiconductors

Equipment: MQX RTOS

Vulnerabilities: Classic Buffer Overflow, Out-of-Bounds Read


The following versions of MQX Real-Time Operating System (RTOS) are used in 
NXPs ColdFire microcontrollers, Kinetis microcontrollers, i.MX processors, and
Vybrid processors, which are affected by the vulnerabilities listed below.

Versions susceptible to Classic Buffer Overflow Vulnerability:

MQX RTOS, Version 5.0 and prior versions, and

Versions susceptible to Out-of-Bounds Read Vulnerability:

MQX RTOS, Version 4.1 and prior versions.


Successful exploitation of these vulnerabilities may allow a remote attacker 
to cause a buffer overflow condition that may, in turn, cause remote code 
execution or out-of-bounds read conditions, resulting in a denial of service.


NXP is planning to release a product fix for MQX, Version 5.1, by January 
2018, which will address both vulnerabilities. Until the product fix can be 
applied, NXP recommends that users consider implementing the following interim
mitigations to limit the risk of exploitation of the identified 

For MQX users running Version 5.0, NXP has produced a code modification that 
can be applied prior to the release of Version 5.1. Users can contact NXP 
directly via email at MQXsales@NXP.com (link sends e-mail) to get additional 

For MQX users running Version 4.1 and prior versions, NXP recommends that 
users update to Version 4.2 or Version 5.0, which do not contain the 
out-of-bounds read vulnerability.

NCCIC/ICS-CERT recommends that users take defensive measures to minimize the 
risk of exploitation of these vulnerabilities. Specifically, users should:

Minimize network exposure for all control system devices and/or systems, and 
ensure that they are not accessible from the Internet.

Locate control system networks and remote devices behind firewalls, and 
isolate them from the business network.

When remote access is required, use secure methods, such as Virtual Private 
Networks (VPNs), recognizing that VPNs may have vulnerabilities and should be
updated to the most current version available. Also recognize that VPN is only
as secure as the connected devices.

ICS-CERT reminds organizations to perform proper impact analysis and risk 
assessment prior to deploying defensive measures.

ICS-CERT also provides a section for control systems security recommended 
practices on the ICS-CERT web page. Several recommended practices are 
available for reading and download, including Improving Industrial Control 
Systems Cybersecurity with Defense-in-Depth Strategies.

Additional mitigation guidance and recommended practices are publicly 
available in the ICSCERT Technical Information Paper, 
ICS-TIP-12-146-01B--Targeted Cyber Intrusion Detection and Mitigation 
Strategies, that is available for download from the ICS-CERT web site.

Organizations observing any suspected malicious activity should follow their 
established internal procedures and report their findings to ICS-CERT for 
tracking and correlation against other incidents.

No known public exploits specifically target these vulnerabilities.



The Real-Time TCP/IP Communications Suite (RTCS) in MQXs DHCP client fails to
sanitize all inputs, which may allow maliciously crafted DHCP packets to cause
memory to be overwritten, allowing remote code execution.

CVE-2017-12718 has been assigned to this vulnerability. A CVSS v3 base score 
of 8.1 has been assigned; the CVSS vector string is 


The DNS client for MQX fails to bounds check DNS response parameters, which 
may allow maliciously crafted DNS packets to cause memory to be read 
out-of-bounds, resulting in a denial of service.

CVE-2017-12722 has been assigned to this vulnerability. A CVSS v3 base score 
of 5.3 has been assigned; the CVSS vector string is 


Scott Gayou identified and coordinated these vulnerabilities with NXP, 


Critical Infrastructure Sectors: Communications, Critical Manufacturing, 
Healthcare and Public Health, and Transportation

Countries/Areas Deployed: Worldwide

Company Headquarters Location: Eindhoven, Netherlands

Contact Information

For any questions related to this report, please contact ICS-CERT at:

Email: ics-cert@hq.dhs.gov (link sends e-mail)

Toll Free: 1-877-776-7585

International Callers: (208) 526-0900

For industrial control systems security information and incident reporting: 

ICS-CERT continuously strives to improve its products and services. You can 
help by choosing one of the links below to provide feedback about this 

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:


Australian Computer Emergency Response Team
The University of Queensland
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
Comment: http://www.auscert.org.au/render.html?it=1967