# CVE-2021-47616: RDMA: Fix use-after-free in rxe_queue_cleanup

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-06-19T14:58:03.817Z
- Modified: 2026-08-05T08:48:39.530Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA: Fix use-after-free in rxe_queue_cleanup

On error handling path in rxe_qp_from_init() qp->sq.queue is freed and
then rxe_create_qp() will drop last reference to this object. qp clean up
function will try to free this queue one time and it causes UAF bug.

Fix it by zeroing queue pointer after freeing queue in rxe_qp_from_init().

(As written by CVE List.)

## Affected

- Linux Linux: from 514aee660df493cd673154a6ba6bab745ec47b8c before acb53e47db1fbc7cd37ab10b46388f045a76e383; from 514aee660df493cd673154a6ba6bab745ec47b8c before 84b01721e8042cdd1e8ffeb648844a09cd4213e0; 5.15 (not affected: before 5.15; from 5.15.10 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 5.15 before 5.15.10

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/acb53e47db1fbc7cd37ab10b46388f045a76e383> (patch)
- <https://git.kernel.org/stable/c/84b01721e8042cdd1e8ffeb648844a09cd4213e0> (patch)

## Sources

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

---

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