From: Leon Romanovsky <leon@kernel.org>
To: bernard.metzler@linux.dev, jgg@ziepe.ca,
Shuangpeng Bai <shuangpeng.kernel@gmail.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] RDMA/siw: Fix use-after-free in siw_accept()
Date: Thu, 06 Aug 2026 06:50:05 -0400 [thread overview]
Message-ID: <178601340535.515060.9252272236389995348.b4-ty@kernel.org> (raw)
In-Reply-To: <20260801213632.1086548-1-shuangpeng.kernel@gmail.com>
On Sat, 01 Aug 2026 17:36:32 -0400, Shuangpeng Bai wrote:
> siw_accept() looks up the QP supplied by userspace. If that QP is
> already in RTS, the function jumps to error cleanup before associating
> the incoming CEP with it.
>
> The cleanup tests whether qp->cep is non-NULL and assumes the current
> call installed the association. However, qp->cep can point to the CEP
> of an existing connection. The cleanup then drops a reference from the
> incoming cep, not qp->cep. Once the incoming endpoint loses its
> remaining references, this can free it before the subsequent cep->qp
> store, causing a use-after-free. It also clears the existing QP
> association.
>
> [...]
Applied, thanks!
[1/1] RDMA/siw: Fix use-after-free in siw_accept()
https://git.kernel.org/rdma/rdma/c/a9394971825933
Best regards,
--
Leon Romanovsky <leon@kernel.org>
next prev parent reply other threads:[~2026-08-06 10:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-01 21:36 Shuangpeng Bai
2026-08-06 10:50 ` Leon Romanovsky [this message]
2026-08-18 16:33 ` Bernard Metzler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178601340535.515060.9252272236389995348.b4-ty@kernel.org \
--to=leon@kernel.org \
--cc=bernard.metzler@linux.dev \
--cc=jgg@ziepe.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=shuangpeng.kernel@gmail.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®