LiveActive security incident?Get immediate response
CVE Record

CVE-2022-50420: crypto: hisilicon/hpre - fix resource leak in remove process

In the Linux kernel, the following vulnerability has been resolved: crypto: hisilicon/hpre - fix resource leak in remove process In hpre_remove(), when the disable operation of qm sriov failed, the following logic should continue to be executed to release the remaining resources that have been allocated, instead of returning directly, otherwise there will be resource leakage.

MediumCVSS 5.5Not KEV-listedUpdated
Glexia's TakeAutomated analysislow

Security readout for executives and security teams

Plain-English summary

A flaw in the Linux kernel's HiSilicon HPRE crypto accelerator driver could leak system resources when the device is removed and a related cleanup step fails. In practice, a local user on a server with this hardware could trigger conditions that destabilize the system over time. There is no remote exposure and no sign of active exploitation.

Executive priority

Low priority. Schedule alongside routine kernel patching cycles. No emergency action is needed unless your fleet relies on HiSilicon Kunpeng servers using HPRE crypto offload, in which case include in the next maintenance window.

Technical view

In hpre_remove(), if disabling QM SR-IOV failed, the driver returned early and skipped releasing remaining allocated resources, causing a memory/resource leak (CWE-401). The CVSS 3.1 vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H reflects local, low-privilege impact limited to availability. Fixes were merged across 5.15.86, 6.0.16, 6.1.2, and mainline 6.2 via the referenced stable kernel commits.

Likely exposure

Limited to Linux systems running affected kernel versions (pre-5.15.86, pre-6.0.16, pre-6.1.2, pre-6.2) on hardware with HiSilicon HPRE crypto accelerators - typically Kunpeng/Hi1620-class servers. Workstations, cloud VMs without device passthrough, and non-HiSilicon platforms are not exposed.

Exploitation context

Not listed in CISA KEV; no public exploit or in-the-wild activity is cited. Triggering the leak requires local access and repeated driver remove operations with failing SR-IOV disable. Impact is availability-only over time, with no confidentiality or integrity exposure.

Researcher notes

Bug class is a missing-cleanup-on-error path (CWE-401) in drivers/crypto/hisilicon/hpre. Fix changes hpre_remove() to continue tearing down resources after qm_sriov_disable failure. Reachability is gated by hardware presence and driver remove timing, so practical exploitability is narrow. Worth flagging in SBOM/firmware reviews for Arm64 server platforms shipping HiSilicon accelerators.

Mitigation direction

  • Patch affected Linux kernels to 5.15.86, 6.0.16, 6.1.2, 6.2, or later stable releases.
  • Apply your distribution vendor's backported fix for CVE-2022-50420 if running an enterprise kernel.
  • Restrict local shell and driver-management privileges on hosts with HiSilicon HPRE accelerators.
  • Track HPRE driver load/unload events in change management on affected hardware fleets.

Validation and detection

  • Run uname -r and compare against fixed versions 5.15.86, 6.0.16, 6.1.2, and 6.2.
  • Check distro changelogs (rpm -q --changelog kernel or apt changelog linux-image) for CVE-2022-50420 references.
  • Confirm whether HiSilicon HPRE hardware is present via lspci and whether the hpre module is loaded.
  • Monitor kernel memory usage and dmesg around HPRE driver removal events to detect leak symptoms.
Prepared
Confidence
high
Sources
6

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-401: 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-2022-50420 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
Medium
CVSS
5.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/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
5Source 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
5.5CVSS 3.1MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H1.83.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.5Medium
CVSS 3.1 vector shape for CVE-2022-50420Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/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
LinuxLinuxc8b4b477079d1995cc0a1c10d5cdfd02be938cdf, c8b4b477079d1995cc0a1c10d5cdfd02be938cdf, c8b4b477079d1995cc0a1c10d5cdfd02be938cdf, c8b4b477079d1995cc0a1c10d5cdfd02be938cdfunaffected
LinuxLinux5.5, 0, 5.15.86, 6.0.16, 6.1.2, 6.2affected
Weakness

CWE details

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

CWE-401 · source CWE mapping

Missing Release of Memory after Effective Lifetime

Missing Release of Memory after Effective Lifetime represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.