CVE-2021-47616
JSON

7.8high

RDMA: Fix use-after-free in rxe_queue_cleanup

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.22% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
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().

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 5.15 before 5.15.10NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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().

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: RDMA: corrige el use-after-free en rxe_queue_cleanup En la ruta de manejo de errores en rxe_qp_from_init() qp->sq.queue se libera y luego rxe_create_qp() eliminará la última referencia a este objeto. La función de limpieza qp intentará liberar esta cola una vez y provocará un error UAF. Solucionarlo poniendo a cero el puntero de la cola después de liberar la cola en rxe_qp_from_init().

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47616 changed 2026-08-05CVE Terms of Use
NVDCVE-2021-47616 changed 2026-08-04Public domain