CVE-2023-54201

Summary

In the Linux kernel, the following vulnerability has been resolved:

RDMA/efa: Fix wrong resources deallocation order

When trying to destroy QP or CQ, we first decrease the refcount and potentially free memory regions allocated for the object and then request the device to destroy the object. If the device fails, the object isn't fully destroyed so the user/IB core can try to destroy the object again which will lead to underflow when trying to decrease an already zeroed refcount.

Deallocate resources in reverse order of allocating them to safely free them.

Affected Software

VendorProductVersion RangeStatus
LinuxLinuxff6629f88c529b07d9704c656c64dae76910e3e9 < cf38960386f3cc4abf395e556af915e4babcafd2affected
LinuxLinuxff6629f88c529b07d9704c656c64dae76910e3e9 < e79db2f51a564fd4daa3e508b987df5e81c34b20affected
LinuxLinuxff6629f88c529b07d9704c656c64dae76910e3e9 < 24f9884971f9b34915b67baacf7350a3f6f19ea4affected
LinuxLinuxff6629f88c529b07d9704c656c64dae76910e3e9 < dc202c57e9a1423aed528e4b8dc949509cd32191affected
LinuxLinux5.7affected
LinuxLinux0 < 5.7unaffected
LinuxLinux6.1.53 <= 6.1.*unaffected
LinuxLinux6.4.16 <= 6.4.*unaffected
LinuxLinux6.5.3 <= 6.5.*unaffected
LinuxLinux6.6 <= *unaffected

Weaknesses

References