LiveActive security incident?Get immediate response
CVE Record

CVE-2021-39977: The HwNearbyMain module has a NULL Pointer Dereference vulnerability.Successful exploitation of this vulner...

The HwNearbyMain module has a NULL Pointer Dereference vulnerability.Successful exploitation of this vulnerability may cause a process to restart.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This is a Huawei HarmonyOS 2.0 availability bug. A flaw in the HwNearbyMain module can dereference a null pointer, causing a process restart. The public record rates it high because it is network-reachable, needs no authentication, and requires no user interaction, but the documented impact is denial of service, not data theft.

Executive priority

Treat this as a high-priority availability risk for HarmonyOS 2.0 environments, especially where device uptime matters. It is not documented as a confidentiality or integrity issue in the provided sources, so urgency should be driven by exposed inventory and operational impact.

Technical view

CVE-2021-39977 is CWE-476 in HarmonyOS 2.0 HwNearbyMain. The CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, indicating remote unauthenticated availability impact only. The source bundle does not describe affected subversions, vulnerable interfaces, proof-of-concept details, or a component-level workaround.

Likely exposure

Exposure appears limited to Huawei HarmonyOS 2.0 assets using the HwNearbyMain module. The sources do not identify other Huawei products, other HarmonyOS versions, or specific device models. Organizations need device and OS inventory to determine relevance.

Exploitation context

The source bundle does not cite active exploitation, and KEV status is false. Based on CVSS, exploitation is assessed as network-accessible with low complexity and no credentials or user interaction, but public sources here only state that successful exploitation may restart a process.

Researcher notes

Public detail is sparse. The record names HwNearbyMain, CWE-476, HarmonyOS 2.0, and process restart impact. It does not provide vulnerable code paths, affected builds, exploit indicators, or workaround details. Avoid assuming broader Huawei ecosystem exposure without vendor confirmation.

Mitigation direction

  • Check Huawei’s November 2021 HarmonyOS security bulletin for the applicable vendor update.
  • Update affected HarmonyOS 2.0 devices to a vendor-supported patched level.
  • Confirm device-model applicability through Huawei support or official device advisories.
  • Monitor affected fleets for unexpected HwNearbyMain or related process restarts.
  • Document any accepted availability risk for devices that cannot be updated.

Validation and detection

  • Inventory Huawei devices and identify any running HarmonyOS 2.0.
  • Verify each relevant device’s security patch level against Huawei’s bulletin.
  • Confirm whether HwNearbyMain is present on in-scope assets.
  • Review endpoint or device logs for repeated process restarts.
  • Track remediation evidence by device model, OS version, and patch date.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-476: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-39977 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H3.93.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2021-39977Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
HuaweiHarmonyOS2.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-476 · source CWE mapping

NULL Pointer Dereference

NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.