Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected ff6acd69518e0a84bd9c9b7f1bd4313f7076db97 before b7129930d1ec46c03a0de07fdce6c29f75795006; affected ff6acd69518e0a84bd9c9b7f1bd4313f7076db97 before 5a1a7a5e2fe1a15824fa9ae5edd8f008259471d1; affected ff6acd69518e0a84bd9c9b7f1bd4313f7076db97 before 80968b42d13080bf7bc1f3ee17fef126ce2ad98f; affected ff6acd69518e0a84bd9c9b7f1bd4313f7076db97 before b1e1b25723af44328524c7b54433e4bf0ab9930c; affected ff6acd69518e0a84bd9c9b7f1bd4313f7076db97 before 2982eaf3b9d2d953318c74cd6f1b7576ea6d7b1f |
| Linux / Linux | affected 4.6; unaffected 0 before 4.6; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.57 through 6.18.*; unaffected 7.2.6 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/b7129930d1ec46c03a0de07fdce6c29f75795006
- https://git.kernel.org/stable/c/5a1a7a5e2fe1a15824fa9ae5edd8f008259471d1
- https://git.kernel.org/stable/c/80968b42d13080bf7bc1f3ee17fef126ce2ad98f
- https://git.kernel.org/stable/c/b1e1b25723af44328524c7b54433e4bf0ab9930c
- https://git.kernel.org/stable/c/2982eaf3b9d2d953318c74cd6f1b7576ea6d7b1f