# CVE-2021-40017: The HWKEYMASTER module lacks the validity check of the key format.

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Published: 2022-09-16T00:00:00.000Z
- Modified: 2026-06-17T04:06:24.053Z
- Weaknesses: CWE-20
- Assigned by: huawei

## 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.

(As written by CVE List.)

## Affected

- HarmonyOS;EMUI: HarmonyOS 2.0; EMUI 12.0.0,EMUI 11.0.1
- huawei emui: 11.0.1; 12.0.0
- huawei harmonyos: 2.0

## References

- <https://device.harmonyos.com/en/docs/security/update/security-bulletins-phones-202209-0000001392278845> (vendor-advisory)
- <https://consumer.huawei.com/en/support/bulletin/2022/10/> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-40017](https://www.cve.org/CVERecord?id=CVE-2021-40017), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-40017](https://nvd.nist.gov/vuln/detail/CVE-2021-40017), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-40017 · Whole record: https://cve.day/CVE-2021-40017.json · Rebuilt by cve.day 2026-11-25T22:58:07.824Z
