# CVE-2021-40040: Vulnerability of writing data to an arbitrary address in the HWKEYMASTER module.

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- 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.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2022-08-09T20:11:21.000Z
- Modified: 2026-06-17T04:06:26.393Z
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: huawei

## Description

Vulnerability of writing data to an arbitrary address in the HW_KEYMASTER module. Successful exploitation of this vulnerability may affect confidentiality.

(As written by CVE List.)

## Affected

- HarmonyOS;EMUI;Magic UI: HarmonyOS 2.0; EMUI 11.0.0,EMUI 10.1.1,EMUI 10.1.0,EMUI 10.0.0; Magic UI 4.0.0,Magic UI 3.1.1,Magic UI 3.1.0,Magic UI 3.0.0
- huawei emui: 10.0.0; 10.1.0; 10.1.1; 11.0.0
- huawei harmonyos: 2.0
- huawei magic_ui: 3.0.0; 3.1.0; 3.1.1; 4.0.0

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

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

## Sources

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

---

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