RDMA/rxe: Fix error unwind in rxe_create_qp()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8700e3e7c4857d28ebaa824509934556da0b3e76 · < db924bd8484c76558a4ac4c4b5aeb52e857f0341| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/rxe: Fix error unwind in rxe_create_qp()
In the function rxe_create_qp(), rxe_qp_from_init() is called to initialize qp, internally things like the spin locks are not setup until rxe_qp_init_req().
If an error occures before this point then the unwind will call rxe_cleanup() and eventually to rxe_qp_do_cleanup()/rxe_cleanup_task() which will oops when trying to access the uninitialized spinlock.
Move the spinlock initializations earlier before any failures.
From the CVE record · Linux
The Linux kernel’s RDMA/rxe code can access an uninitialized spinlock while cleaning up a failed queue-pair creation, causing a kernel oops. This occurs if initialization fails before the spinlocks are set up. The input does not specify how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running Linux kernels with RDMA/rxe should check their kernel vendor’s advisory for affected versions.