RDMA/rvt: Return NULL after port allocation failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ff6acd69518e0a84bd9c9b7f1bd4313f7076db97 · < 2982eaf3b9d2d953318c74cd6f1b7576ea6d7b1f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/rvt: Return NULL after port allocation failure
rvt_alloc_device() deallocates the IB device when its port array cannot be allocated but then returns the pointer to the released allocation. Callers treat any non-NULL value as valid and dereference it, resulting in a use-after-free.
Return NULL immediately after deallocation so callers can propagate the allocation failure.
From the CVE record · Linux
In the Linux kernel’s RDMA/rvt component, rvt_alloc_device() can return a pointer to a freed device when port-array allocation fails. Callers may dereference that pointer, causing a use-after-free. The input does not specify how an attacker could trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the RDMA/rvt component should check their versions; affected versions are not specified.