From: Ilya Lesokhin <il...@mellanox.com>
Date: Tue, 16 Jan 2018 15:31:52 +0200

> Calling accept on a TCP socket with a TLS ulp attached results
> in two sockets that share the same ulp context.
> The ulp context is freed while a socket is destroyed, so
> after one of the sockets is released, the second second will
> trigger a use after free when it tries to access the ulp context
> attached to it.
> We restrict the TLS ulp to sockets in ESTABLISHED state
> to prevent the scenario above.
> 
> Fixes: 3c4d7559159b ("tls: kernel TLS support")
> Reported-by: syzbot+904e7cd6c5c741609...@syzkaller.appspotmail.com
> Signed-off-by: Ilya Lesokhin <il...@mellanox.com>
> ---
> v2: Fix typos

Applied and queued up for -stable, thanks.

Reply via email to