CVE-2021-46840 Memory corruption in EMUI

Critical 9.1 Published Updated

Out-of-bounds access in HW_KEYMASTER allows malicious data construction, potentially leading to 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-46840?

CVE-2021-46840 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 an out-of-bounds access vulnerability in parameter set verification.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-46840?

It affects 2 products.

Products include Huawei Emui, Huawei Harmonyos.

How do I fix CVE-2021-46840?

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

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

All Huawei Emui vulnerabilities

Sources

Also known as GHSA-4ppq-669j-6f73.

Is CVE-2021-46840 in your software?

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

Check your SBOMs for free