CVE-2021-40040 (GCVE-0-2021-40040)
Vulnerability from cvelistv5 – Published: 2022-08-09 20:11 – Updated: 2026-03-06 17:36
VLAI?
Summary
Vulnerability of writing data to an arbitrary address in the HW_KEYMASTER module. Successful exploitation of this vulnerability may affect confidentiality.
Severity ?
7.5 (High)
CWE
- Write data to arbitrary address vulnerability
Assigner
References
| URL | Tags | |||||||
|---|---|---|---|---|---|---|---|---|
|
||||||||
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| n/a | HarmonyOS;EMUI;Magic UI |
Affected:
HarmonyOS 2.0
Affected: EMUI 11.0.0,EMUI 10.1.1,EMUI 10.1.0,EMUI 10.0.0 Affected: Magic UI 4.0.0,Magic UI 3.1.1,Magic UI 3.1.0,Magic UI 3.0.0 |
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-04T02:27:31.529Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://consumer.huawei.com/en/support/bulletin/2022/8/"
},
{
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://device.harmonyos.com/en/docs/security/update/security-bulletins-phones-202209-0000001392278845"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"version": "3.1"
}
},
{
"other": {
"content": {
"id": "CVE-2021-40040",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-03T19:41:04.914056Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "CWE-noinfo Not enough information",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-06T17:36:42.392Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "HarmonyOS;EMUI;Magic UI",
"vendor": "n/a",
"versions": [
{
"status": "affected",
"version": "HarmonyOS 2.0"
},
{
"status": "affected",
"version": "EMUI 11.0.0,EMUI 10.1.1,EMUI 10.1.0,EMUI 10.0.0"
},
{
"status": "affected",
"version": "Magic UI 4.0.0,Magic UI 3.1.1,Magic UI 3.1.0,Magic UI 3.0.0"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Vulnerability of writing data to an arbitrary address in the HW_KEYMASTER module. Successful exploitation of this vulnerability may affect confidentiality."
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "Write data to arbitrary address vulnerability",
"lang": "en",
"type": "text"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2022-09-16T17:53:31.000Z",
"orgId": "25ac1063-e409-4190-8079-24548c77ea2e",
"shortName": "huawei"
},
"references": [
{
"tags": [
"x_refsource_MISC"
],
"url": "https://consumer.huawei.com/en/support/bulletin/2022/8/"
},
{
"tags": [
"x_refsource_MISC"
],
"url": "https://device.harmonyos.com/en/docs/security/update/security-bulletins-phones-202209-0000001392278845"
}
],
"x_legacyV4Record": {
"CVE_data_meta": {
"ASSIGNER": "psirt@huawei.com",
"ID": "CVE-2021-40040",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "HarmonyOS;EMUI;Magic UI",
"version": {
"version_data": [
{
"version_value": "HarmonyOS 2.0"
},
{
"version_value": "EMUI 11.0.0,EMUI 10.1.1,EMUI 10.1.0,EMUI 10.0.0"
},
{
"version_value": "Magic UI 4.0.0,Magic UI 3.1.1,Magic UI 3.1.0,Magic UI 3.0.0"
}
]
}
}
]
},
"vendor_name": "n/a"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "Vulnerability of writing data to an arbitrary address in the HW_KEYMASTER module. Successful exploitation of this vulnerability may affect confidentiality."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "Write data to arbitrary address vulnerability"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://consumer.huawei.com/en/support/bulletin/2022/8/",
"refsource": "MISC",
"url": "https://consumer.huawei.com/en/support/bulletin/2022/8/"
},
{
"name": "https://device.harmonyos.com/en/docs/security/update/security-bulletins-phones-202209-0000001392278845",
"refsource": "MISC",
"url": "https://device.harmonyos.com/en/docs/security/update/security-bulletins-phones-202209-0000001392278845"
}
]
}
}
}
},
"cveMetadata": {
"assignerOrgId": "25ac1063-e409-4190-8079-24548c77ea2e",
"assignerShortName": "huawei",
"cveId": "CVE-2021-40040",
"datePublished": "2022-08-09T20:11:21.000Z",
"dateReserved": "2021-08-23T00:00:00.000Z",
"dateUpdated": "2026-03-06T17:36:42.392Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"nvd": "{\"cve\":{\"id\":\"CVE-2021-40040\",\"sourceIdentifier\":\"psirt@huawei.com\",\"published\":\"2022-08-10T20:15:22.443\",\"lastModified\":\"2026-03-06T18:16:09.910\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"Vulnerability of writing data to an arbitrary address in the HW_KEYMASTER module. Successful exploitation of this vulnerability may affect confidentiality.\"},{\"lang\":\"es\",\"value\":\"Una vulnerabilidad de escritura de datos a una direcci\u00f3n arbitraria en el m\u00f3dulo HW_KEYMASTER. Una explotaci\u00f3n con \u00e9xito de esta vulnerabilidad puede afectar a la confidencialidad\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N\",\"baseScore\":7.5,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":3.9,\"impactScore\":3.6},{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N\",\"baseScore\":7.5,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":3.9,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-noinfo\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:huawei:emui:10.0.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"504F2E73-FFD0-4589-8644-FE77656BB28D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:huawei:emui:10.1.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"66AC7F91-917C-40A6-9983-A339EFB091F1\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:huawei:emui:10.1.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"A7FF0AD1-22C2-423B-822A-E6496CEDAB02\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:huawei:emui:11.0.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"0B701EC6-8208-4D22-95A6-B07D471A8A8B\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:huawei:harmonyos:2.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"3AD62E8B-CB4B-43A6-98E8-09A8A1A3505B\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:huawei:magic_ui:3.0.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"8A7A4346-1757-48F9-827C-13EABC357302\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:huawei:magic_ui:3.1.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"EFAE846A-00EA-417F-B66F-1F5396BB6139\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:huawei:magic_ui:3.1.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"B655712B-E86C-4BD2-8A99-AEA382C520E7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:huawei:magic_ui:4.0.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"F6066FAB-23F5-4CB2-B89E-B00F8835AC39\"}]}]}],\"references\":[{\"url\":\"https://consumer.huawei.com/en/support/bulletin/2022/8/\",\"source\":\"psirt@huawei.com\",\"tags\":[\"Vendor Advisory\"]},{\"url\":\"https://device.harmonyos.com/en/docs/security/update/security-bulletins-phones-202209-0000001392278845\",\"source\":\"psirt@huawei.com\",\"tags\":[\"Vendor Advisory\"]},{\"url\":\"https://consumer.huawei.com/en/support/bulletin/2022/8/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Vendor Advisory\"]},{\"url\":\"https://device.harmonyos.com/en/docs/security/update/security-bulletins-phones-202209-0000001392278845\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Vendor Advisory\"]}]}}",
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://consumer.huawei.com/en/support/bulletin/2022/8/\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}, {\"url\": \"https://device.harmonyos.com/en/docs/security/update/security-bulletins-phones-202209-0000001392278845\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-04T02:27:31.529Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 7.5, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"NONE\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"HIGH\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2021-40040\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"poc\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-03-03T19:41:04.914056Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"description\": \"CWE-noinfo Not enough information\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-03-06T17:36:34.231Z\"}}], \"cna\": {\"affected\": [{\"vendor\": \"n/a\", \"product\": \"HarmonyOS;EMUI;Magic UI\", \"versions\": [{\"status\": \"affected\", \"version\": \"HarmonyOS 2.0\"}, {\"status\": \"affected\", \"version\": \"EMUI 11.0.0,EMUI 10.1.1,EMUI 10.1.0,EMUI 10.0.0\"}, {\"status\": \"affected\", \"version\": \"Magic UI 4.0.0,Magic UI 3.1.1,Magic UI 3.1.0,Magic UI 3.0.0\"}]}], \"references\": [{\"url\": \"https://consumer.huawei.com/en/support/bulletin/2022/8/\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://device.harmonyos.com/en/docs/security/update/security-bulletins-phones-202209-0000001392278845\", \"tags\": [\"x_refsource_MISC\"]}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"Vulnerability of writing data to an arbitrary address in the HW_KEYMASTER module. Successful exploitation of this vulnerability may affect confidentiality.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"text\", \"description\": \"Write data to arbitrary address vulnerability\"}]}], \"providerMetadata\": {\"orgId\": \"25ac1063-e409-4190-8079-24548c77ea2e\", \"shortName\": \"huawei\", \"dateUpdated\": \"2022-09-16T17:53:31.000Z\"}, \"x_legacyV4Record\": {\"affects\": {\"vendor\": {\"vendor_data\": [{\"product\": {\"product_data\": [{\"version\": {\"version_data\": [{\"version_value\": \"HarmonyOS 2.0\"}, {\"version_value\": \"EMUI 11.0.0,EMUI 10.1.1,EMUI 10.1.0,EMUI 10.0.0\"}, {\"version_value\": \"Magic UI 4.0.0,Magic UI 3.1.1,Magic UI 3.1.0,Magic UI 3.0.0\"}]}, \"product_name\": \"HarmonyOS;EMUI;Magic UI\"}]}, \"vendor_name\": \"n/a\"}]}}, \"data_type\": \"CVE\", \"references\": {\"reference_data\": [{\"url\": \"https://consumer.huawei.com/en/support/bulletin/2022/8/\", \"name\": \"https://consumer.huawei.com/en/support/bulletin/2022/8/\", \"refsource\": \"MISC\"}, {\"url\": \"https://device.harmonyos.com/en/docs/security/update/security-bulletins-phones-202209-0000001392278845\", \"name\": \"https://device.harmonyos.com/en/docs/security/update/security-bulletins-phones-202209-0000001392278845\", \"refsource\": \"MISC\"}]}, \"data_format\": \"MITRE\", \"description\": {\"description_data\": [{\"lang\": \"eng\", \"value\": \"Vulnerability of writing data to an arbitrary address in the HW_KEYMASTER module. Successful exploitation of this vulnerability may affect confidentiality.\"}]}, \"problemtype\": {\"problemtype_data\": [{\"description\": [{\"lang\": \"eng\", \"value\": \"Write data to arbitrary address vulnerability\"}]}]}, \"data_version\": \"4.0\", \"CVE_data_meta\": {\"ID\": \"CVE-2021-40040\", \"STATE\": \"PUBLIC\", \"ASSIGNER\": \"psirt@huawei.com\"}}}}",
"cveMetadata": "{\"cveId\": \"CVE-2021-40040\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-03-06T17:36:42.392Z\", \"dateReserved\": \"2021-08-23T00:00:00.000Z\", \"assignerOrgId\": \"25ac1063-e409-4190-8079-24548c77ea2e\", \"datePublished\": \"2022-08-09T20:11:21.000Z\", \"assignerShortName\": \"huawei\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…