# CVE-2022-50387: net: hinic: fix the issue of CMDQ memory leaks

- 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-09-18T13:33:07.932Z
- Modified: 2026-06-17T05:23:24.440Z
- 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:

net: hinic: fix the issue of CMDQ memory leaks

When hinic_set_cmdq_depth() fails in hinic_init_cmdqs(), the cmdq memory is
not released correctly. Fix it.

(As written by CVE List.)

## Affected

- Linux Linux: from 72ef908bb3ff9261dc38d079ef332c91418f8693 before 6603843c80b16957f5d7d14d897faf13cef2b8b9; from 72ef908bb3ff9261dc38d079ef332c91418f8693 before 6016d96a6adf66d61655d85da02e1a4c1deccbd6; from 72ef908bb3ff9261dc38d079ef332c91418f8693 before 9145d512ddff76df88832b29575488199df544a1; from 72ef908bb3ff9261dc38d079ef332c91418f8693 before 363cc87767f6ddcfb9158ad2e2afa2f8d5c4b94e; 5.8 (not affected: before 5.8; from 5.10.153 up to 5.10.*; from 5.15.77 up to 5.15.*; from 6.0.7 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.8 before 5.10.153; from 5.11 before 5.15.77; from 5.16 before 6.0.7; 6.1

## 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/6603843c80b16957f5d7d14d897faf13cef2b8b9> (patch)
- <https://git.kernel.org/stable/c/6016d96a6adf66d61655d85da02e1a4c1deccbd6> (patch)
- <https://git.kernel.org/stable/c/9145d512ddff76df88832b29575488199df544a1> (patch)
- <https://git.kernel.org/stable/c/363cc87767f6ddcfb9158ad2e2afa2f8d5c4b94e> (patch)

## Sources

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

---

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