In the Linux kernel, the following vulnerability has been resolved: RDMA/cxgb4: Cancel reg_work before freeing device on remove c4iw_uld_state_change() queues reg_work to register the RDMA device. c4iw_remove() can free ctx->dev while this work is pending or running, leaving c4iw_register_device() accessing the freed device. Cancel reg_work before removing the device. The registration work can tear down ctx->dev when registration fails, so do not unregister or deallocate it again in that case. This issue was found by an in-house static analysis tool.
https://git.kernel.org/stable/c/fe9c591026c576d8b1f72aab5e4cd67350530763
https://git.kernel.org/stable/c/e6e79e7be87c5ea92728060a3d7fb56890a91e45
https://git.kernel.org/stable/c/a7100601aa1a39f799a566acce10db20eaf4b7f2
https://git.kernel.org/stable/c/85f438382a865a4dc4c50e6b884310bb2b60fc4d
https://git.kernel.org/stable/c/672ee1981db10569ec96030bddb322f18382ec04
https://git.kernel.org/stable/c/4681e731db07769846901cfabdd3e53f765eb9d3
https://git.kernel.org/stable/c/3265d558dfafab8f12f5fba06ebbf15cae9f3225
https://git.kernel.org/stable/c/320e5258a53af0abc5abd9eb01519a48bab2dee8