CVE-2021-46839 Memory corruption in EMUI

Critical 9.1 Published Updated

Missing bounds check in HW_KEYMASTER allows out-of-bounds access, potentially enabling code execution or privilege escalation on Huawei devices.

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-46839?

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

Official description

The HW_KEYMASTER module has a vulnerability of missing bounds check on length.Successful exploitation of this vulnerability may cause malicious construction of data, which results in out-of-bounds access.

Weakness: CWE-125

Which versions are affected by CVE-2021-46839?

It affects 2 products.

Products include Huawei Emui, Huawei Harmonyos.

How do I fix CVE-2021-46839?

No fix has been published for CVE-2021-46839 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-46839 being exploited?

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

All Huawei Emui vulnerabilities

Sources

Also known as GHSA-gmj3-7vpf-cgw6.

Is CVE-2021-46839 in your software?

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

Check your SBOMs for free