Commit bc1db4d8 authored by Cheng Xu's avatar Cheng Xu Committed by Greg Kroah-Hartman
Browse files

RDMA/erdma: Prevent use-after-free in erdma_accept_newconn()



[ Upstream commit 83437689 ]

After the erdma_cep_put(new_cep) being called, new_cep will be freed,
and the following dereference will cause a UAF problem. Fix this issue.

Fixes: 920d93ea ("RDMA/erdma: Add connection management (CM) support")
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarCheng Xu <chengyou@linux.alibaba.com>
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7844932c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment