In the Linux kernel, the following vulnerability has been resolved: iw_cxgb4: Fix potential NULL dereference in c4iw_fill_res_cm_id_entry() This condition needs to match the previous "if (epcp->state == LISTEN) {" exactly to avoid a NULL dereference of either "listen_ep" or "ep". The problem is that "epcp" has been re-assigned so just testing "if (epcp->state == LISTEN) {" a second time is not sufficient.
https://git.kernel.org/stable/c/dd55240e4364d64befcc575b0d33091881524f42
https://git.kernel.org/stable/c/76e0396313c79ecd0df44ee3c18745cfac52b3e6
https://git.kernel.org/stable/c/4ca446b127c568b59cb8d9748b6f70499624bb18
https://git.kernel.org/stable/c/24278dc380aab6a1aef0a75317f57ad4c2453cf6