CVE-2021-40017 (GCVE-0-2021-40017)

Vulnerability from cvelistv5 – Published: 2022-09-16 00:00 – Updated: 2024-08-04 02:27
VLAI
Summary
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.
CWE
  • Out-of-bounds memory access vulnerability
Assigner
Impacted products
Vendor Product Version
n/a HarmonyOS;EMUI Affected: HarmonyOS 2.0
Affected: EMUI 12.0.0,EMUI 11.0.1
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-04T02:27:30.453Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://device.harmonyos.com/en/docs/security/update/security-bulletins-phones-202209-0000001392278845"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://consumer.huawei.com/en/support/bulletin/2022/10/"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "HarmonyOS;EMUI",
          "vendor": "n/a",
          "versions": [
            {
              "status": "affected",
              "version": "HarmonyOS 2.0"
            },
            {
              "status": "affected",
              "version": "EMUI 12.0.0,EMUI 11.0.1"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "Out-of-bounds memory access vulnerability",
              "lang": "en",
              "type": "text"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2022-10-14T00:00:00.000Z",
        "orgId": "25ac1063-e409-4190-8079-24548c77ea2e",
        "shortName": "huawei"
      },
      "references": [
        {
          "url": "https://device.harmonyos.com/en/docs/security/update/security-bulletins-phones-202209-0000001392278845"
        },
        {
          "url": "https://consumer.huawei.com/en/support/bulletin/2022/10/"
        }
      ]
    }
  },
  "cveMetadata": {
    "assignerOrgId": "25ac1063-e409-4190-8079-24548c77ea2e",
    "assignerShortName": "huawei",
    "cveId": "CVE-2021-40017",
    "datePublished": "2022-09-16T00:00:00.000Z",
    "dateReserved": "2021-08-23T00:00:00.000Z",
    "dateUpdated": "2024-08-04T02:27:30.453Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2021-40017",
      "date": "2026-07-26",
      "epss": "0.00563",
      "percentile": "0.43426"
    },
    "fkie_nvd": {
      "configurations": "[{\"nodes\": [{\"operator\": \"OR\", \"negate\": false, \"cpeMatch\": [{\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:huawei:emui:11.0.1:*:*:*:*:*:*:*\", \"matchCriteriaId\": \"511F8CE2-C2B6-4A08-B992-49D9B75B8655\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:huawei:emui:12.0.0:*:*:*:*:*:*:*\", \"matchCriteriaId\": \"A974CA73-84E8-480B-BB4C-4A81D0C985B2\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:huawei:harmonyos:2.0:*:*:*:*:*:*:*\", \"matchCriteriaId\": \"3AD62E8B-CB4B-43A6-98E8-09A8A1A3505B\"}]}]}]",
      "descriptions": "[{\"lang\": \"en\", \"value\": \"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.\"}, {\"lang\": \"es\", \"value\": \"El m\\u00f3dulo HW_KEYMASTER carece de la comprobaci\\u00f3n de validez del formato de la clave. Una explotaci\\u00f3n con \\u00e9xito de esta vulnerabilidad puede resultar en un acceso a la memoria fuera de l\\u00edmites\"}]",
      "id": "CVE-2021-40017",
      "lastModified": "2024-11-21T06:23:23.460",
      "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:H/A:H\", \"baseScore\": 9.8, \"baseSeverity\": \"CRITICAL\", \"attackVector\": \"NETWORK\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"NONE\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"HIGH\", \"integrityImpact\": \"HIGH\", \"availabilityImpact\": \"HIGH\"}, \"exploitabilityScore\": 3.9, \"impactScore\": 5.9}]}",
      "published": "2022-09-16T18:15:11.457",
      "references": "[{\"url\": \"https://consumer.huawei.com/en/support/bulletin/2022/10/\", \"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/10/\", \"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\"]}]",
      "sourceIdentifier": "psirt@huawei.com",
      "vulnStatus": "Modified",
      "weaknesses": "[{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"description\": [{\"lang\": \"en\", \"value\": \"CWE-20\"}]}]"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2021-40017\",\"sourceIdentifier\":\"psirt@huawei.com\",\"published\":\"2022-09-16T18:15:11.457\",\"lastModified\":\"2026-06-17T04:06:24.053\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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.\"},{\"lang\":\"es\",\"value\":\"El m\u00f3dulo HW_KEYMASTER carece de la comprobaci\u00f3n de validez del formato de la clave. Una explotaci\u00f3n con \u00e9xito de esta vulnerabilidad puede resultar en un acceso a la memoria fuera de l\u00edmites\"}],\"affected\":[{\"source\":\"psirt@huawei.com\",\"affectedData\":[{\"vendor\":\"n/a\",\"product\":\"HarmonyOS;EMUI\",\"versions\":[{\"version\":\"HarmonyOS 2.0\",\"status\":\"affected\"},{\"version\":\"EMUI 12.0.0,EMUI 11.0.1\",\"status\":\"affected\"}]}]}],\"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:H/A:H\",\"baseScore\":9.8,\"baseSeverity\":\"CRITICAL\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-20\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:huawei:emui:11.0.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"511F8CE2-C2B6-4A08-B992-49D9B75B8655\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:huawei:emui:12.0.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"A974CA73-84E8-480B-BB4C-4A81D0C985B2\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:huawei:harmonyos:2.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"3AD62E8B-CB4B-43A6-98E8-09A8A1A3505B\"}]}]}],\"references\":[{\"url\":\"https://consumer.huawei.com/en/support/bulletin/2022/10/\",\"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/10/\",\"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\"]}]}}",
    "redhat_vex": {
      "current_release_date": "2026-03-27T13:36:14+00:00",
      "cve": "CVE-2021-40017",
      "id": "CVE-2021-40017",
      "initial_release_date": "2021-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "1",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "CVE-2021-40017",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-40017.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

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…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…