RDMA: Fix use-after-free in rxe_queue_cleanup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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().
From the CVE record · Linux
The Linux kernel has a use-after-free in RDMA queue cleanup: an error path frees a queue that cleanup later tries to free again. The input does not specify how an attacker could trigger the error path or whether access or user interaction is required.
Engineers running Linux kernels with the affected RDMA code should check their versions; affected versions are not specified.