From: Ilya Lesokhin <[email protected]>
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: [email protected]
> Signed-off-by: Ilya Lesokhin <[email protected]>
> ---
> v2: Fix typos
Applied and queued up for -stable, thanks.