CVE-2017-8142 Use after free in Mate 9, Mate 9 Pro

High 7.8 Published Updated

A malicious application can trigger a use-after-free in the TEE driver, leading to system crashes or arbitrary code execution on Huawei Mate 9 devices.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2017-8142?

CVE-2017-8142 is a high-severity use after free vulnerability in Huawei Technologies Co., Ltd. Mate 9, Mate 9 Pro, published on 22 Nov 2017. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

The Trusted Execution Environment (TEE) module driver of Mate 9 and Mate 9 Pro smart phones with software versions earlier than MHA-AL00BC00B221 and versions earlier than LON-AL00BC00B221 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.

Weakness: CWE-416

Which versions are affected by CVE-2017-8142?

It affects 2 products.

Products include Huawei Mate 9 Firmware, Huawei Mate 9 Pro Firmware.

How do I fix CVE-2017-8142?

No fix has been published for CVE-2017-8142 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2017-8142 being exploited?

There is no known exploitation of CVE-2017-8142 in the wild and no public exploit code.

Sources

Also known as GHSA-8h88-hf49-3hhp.

Is CVE-2017-8142 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free