# CVE-2021-47104: IB/qib: Fix memory leak in qib_user_sdma_queue_pkts()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-03-04T18:15:13.370Z
- Modified: 2026-06-17T04:16:29.727Z
- 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:

IB/qib: Fix memory leak in qib_user_sdma_queue_pkts()

The wrong goto label was used for the error case and missed cleanup of the
pkt allocation.

Addresses-Coverity-ID: 1493352 ("Resource leak")

(As written by CVE List.)

## Affected

- Linux Linux: from bda41654b6e0c125a624ca35d6d20beb8015b5d0 before 1ced0a3015a95c6a6db45e37250912c4c86697ab; from 3f57c3f67fd93b4da86aeffea1ca32c484d054ad before 76b648063eb36c72dfc0a6896de8a0a7d2c7841c; from 60833707b968d5ae02a75edb7886dcd4a957cf0d before d53456492b5d02033c73dfa0f3b94c86337791ba; from 73d2892148aa4397a885b4f4afcfc5b27a325c42 before 0aaec9c5f60754b56f84460ea439b8c5e91f4caa; from 0f8cdfff06829a0b0348b6debc29ff6a61967724 before 79dcbd8176152b860028b62f81a635d987365752; from c3e17e58f571f34c51aeb17274ed02c2ed5cf780 before 7cf6466e00a77b0a914b7b2c28a1fc7947d55e59; from d39bf40e55e666b5905fdbd46a0dced030ce87be before aefcc25f3a0cd28a87d11d41d30419a12cd26a34; from d39bf40e55e666b5905fdbd46a0dced030ce87be before bee90911e0138c76ee67458ac0d58b38a3190f65; 0d4395477741608d123dad51def9fe50b7ebe952; from 4.4.292 before 4.4.297; from 4.9.290 before 4.9.295; from 4.14.255 before 4.14.260; and 5 more (not affected: before 5.15; from 4.4.297 up to 4.4.*; from 4.9.295 up to 4.9.*; from 4.14.260 up to 4.14.*; from 4.19.223 up to 4.19.*; from 5.4.169 up to 5.4.*; from 5.10.89 up to 5.10.*; from 5.15.12 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 4.4.292 before 4.4.297; from 4.9.290 before 4.9.295; from 4.14.255 before 4.14.260; from 4.19.216 before 4.19.223; from 5.4.157 before 5.4.169; from 5.10.77 before 5.10.89; from 5.15 before 5.15.12; 5.16

## References

- <https://git.kernel.org/stable/c/1ced0a3015a95c6a6db45e37250912c4c86697ab> (patch)
- <https://git.kernel.org/stable/c/76b648063eb36c72dfc0a6896de8a0a7d2c7841c> (patch)
- <https://git.kernel.org/stable/c/d53456492b5d02033c73dfa0f3b94c86337791ba> (patch)
- <https://git.kernel.org/stable/c/0aaec9c5f60754b56f84460ea439b8c5e91f4caa> (patch)
- <https://git.kernel.org/stable/c/79dcbd8176152b860028b62f81a635d987365752> (patch)
- <https://git.kernel.org/stable/c/7cf6466e00a77b0a914b7b2c28a1fc7947d55e59> (patch)
- <https://git.kernel.org/stable/c/aefcc25f3a0cd28a87d11d41d30419a12cd26a34> (patch)
- <https://git.kernel.org/stable/c/bee90911e0138c76ee67458ac0d58b38a3190f65> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2021-47104 · Whole record: https://cve.day/CVE-2021-47104.json · Rebuilt by cve.day 2026-11-25T22:58:08.663Z
