CVE-2021-40017 Memory corruption in HarmonyOS;EMUI

Critical 9.8 Published Updated

Attackers can trigger out-of-bounds memory access in the HW_KEYMASTER module due to missing key format validation, potentially leading to code execution or privilege escalation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-40017?

CVE-2021-40017 is a critical memory corruption vulnerability in Huawei Emui, published on 16 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The HW_KEYMASTER module lacks the validity check of the key format. Successful exploitation of this vulnerability may result in out-of-bounds memory access.

Weakness: CWE-20

Which versions are affected by CVE-2021-40017?

It affects 2 products.

Products include Huawei Emui, Huawei Harmonyos.

How do I fix CVE-2021-40017?

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

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-40017 being exploited?

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

All Huawei Emui vulnerabilities

Sources

Also known as GHSA-vcvc-5hq6-cvwr.

Is CVE-2021-40017 in your software?

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

Check your SBOMs for free