This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy

Security Advisory - Use After Free Vulnerability in TEE Module of Some Huawei Smart Phones

  • SA No:huawei-sa-20170615-01-smartphone
  • Initial Release Date: Jun 15, 2017
  • Last Release Date: Jun 15, 2017

The Trusted Execution Environment (TEE) module driver of some Huawei smart phones has a use after free (UAF) vulnerability. An attacker tricks a user into installing a malicious application, and the application can start multiple threads and try to create and free specific memory, which could triggers access memory after free it and causes a system crash or arbitrary code execution. (Vulnerability ID: HWPSIRT-2017-04003)
This vulnerability has been assigned a Common Vulnerabilities and Exposures (CVE) ID: CVE-2017-8142.
Huawei has released software updates to fix this vulnerability. This advisory is available at the following link:
http://www.huawei.com/en/psirt/security-advisories/huawei-sa-20170615-01-smartphone-en

Product Name

Affected Version

Resolved Product and Version

Mate 9

Versions earlier than MHA-AL00BC00B221

MHA-AL00BC00B221

Mate 9 Pro

Versions earlier than LON-AL00BC00B221

LON-AL00BC00B221

Successful exploitation of the vulnerability allows attackers to crash the system or execute arbitrary code.

The vulnerability classification has been performed by using the CVSSv3 scoring system (http://www.first.org/cvss/specification-document).

Base Score: 6.7 (AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H)
Temporal Score: 6.2 (E:F/RL:O/RC:C)
This vulnerability can be exploited only when the following conditions are present:
The attacker has successfully tricked a user into installing the malicious application.
Vulnerability details:
The TEE module driver of some Huawei smart phones has a UAF vulnerability. An attacker tricks a user into installing a malicious application, and the application can start multiple threads and try to create and free specific memory, which could triggers access memory after free it and causes a system crash or arbitrary code execution.

The product that supports automatic update will receive a system update prompt. You can install the update to fix the vulnerability.

This vulnerability was reported to Huawei PSIRT by Yonggang Guo of IceSword Lab, Qihoo 360 Technology Co. Ltd. Huawei would like to thank Yonggang Guo for working with us and coordinated vulnerability disclosure to protect our customers.

2017-06-15 V1.0 INITIAL

Huawei adheres to protecting the ultimate interests of users with best efforts and the principle of responsible disclosure and deal with product security issues through our response mechanism.

To enjoy Huawei PSIRT services and obtain Huawei product vulnerability information, please visit http://www.huawei.com/en/psirt.

To report a security vulnerability in Huawei products and solutions, please send it to PSIRT@huawei.com. For details, please visit http://www.huawei.com/en/psirt/report-vulnerabilities.

This document is provided on an "AS IS" basis and does not imply any kind of guarantee or warranty, either express or implied, including the warranties of merchantability or fitness for a particular purpose. In no event shall Huawei or any of its directly or indirectly controlled subsidiaries or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. Your use of the document, by whatsoever means, will be totally at your own risk. Huawei is entitled to amend or update this document from time to time.