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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-10-01T11:41:53.287Z
- Modified: 2026-08-15T13:17:36.967Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 5ec302a364bfd95be29a9784b2fabd8e2ddf0476 before 2b3e3ecdb402ff1053ee25b598ff21b9ddf4384f; from 5ec302a364bfd95be29a9784b2fabd8e2ddf0476 before 4e0de941d252d4e7c985981e78480c8d6f020b64; from 5ec302a364bfd95be29a9784b2fabd8e2ddf0476 before cb873c93a7ad27681920bf062ef052fca1e8d5b1; from 5ec302a364bfd95be29a9784b2fabd8e2ddf0476 before 45e6319bd5f2154d8b8c9f1eaa4ac030ba0d330c; 5.5 (not affected: before 5.5; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.5 before 5.15.86; from 5.16 before 6.0.16; from 6.1 before 6.1.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/2b3e3ecdb402ff1053ee25b598ff21b9ddf4384f> (patch)
- <https://git.kernel.org/stable/c/4e0de941d252d4e7c985981e78480c8d6f020b64> (patch)
- <https://git.kernel.org/stable/c/cb873c93a7ad27681920bf062ef052fca1e8d5b1> (patch)
- <https://git.kernel.org/stable/c/45e6319bd5f2154d8b8c9f1eaa4ac030ba0d330c> (patch)

## Sources

- CVE List: [CVE-2022-50420](https://www.cve.org/CVERecord?id=CVE-2022-50420), CVE Terms of Use, modified 2026-08-15
- NVD: [CVE-2022-50420](https://nvd.nist.gov/vuln/detail/CVE-2022-50420), Public domain, modified 2026-08-15

---

Page: https://cve.day/CVE-2022-50420 · Whole record: https://cve.day/CVE-2022-50420.json · Rebuilt by cve.day 2026-11-25T22:58:21.211Z
