---
id: CVE-2022-50420
title: |-
  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…
summary: |-
  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…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-401
  - CWE-401
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.5, < 5.15.86'
  - 'linux_kernel >= 5.16, < 6.0.16'
  - 'linux_kernel >= 6.1, < 6.1.2'
patched:
  - linux_kernel 6.1.2
published: '2025-10-01'
updated: '2026-08-15'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-50420'
references:
  - url: 'https://git.kernel.org/stable/c/2b3e3ecdb402ff1053ee25b598ff21b9ddf4384f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/45e6319bd5f2154d8b8c9f1eaa4ac030ba0d330c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4e0de941d252d4e7c985981e78480c8d6f020b64'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/cb873c93a7ad27681920bf062ef052fca1e8d5b1'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00157
epssPercentile: 0.04082
ingestedAt: '2026-08-15T13:26:45.760Z'
---

## Overview

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.

## Affected

- `linux_kernel >= 5.5, < 5.15.86`
- `linux_kernel >= 5.16, < 6.0.16`
- `linux_kernel >= 6.1, < 6.1.2`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.1.2`
