[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240209092528.GR1435458@kernel.org>
Date: Fri, 9 Feb 2024 09:25:28 +0000
From: Simon Horman <horms@...nel.org>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, sd@...asysnail.net, vadim.fedorenko@...ux.dev,
borisp@...dia.com, john.fastabend@...il.com
Subject: Re: [PATCH net 5/7] net: tls: fix use-after-free with partial reads
and async decrypt
On Tue, Feb 06, 2024 at 05:18:22PM -0800, Jakub Kicinski wrote:
> From: Sabrina Dubroca <sd@...asysnail.net>
>
> tls_decrypt_sg doesn't take a reference on the pages from clear_skb,
> so the put_page() in tls_decrypt_done releases them, and we trigger
> a use-after-free in process_rx_list when we try to read from the
> partially-read skb.
>
> Fixes: fd31f3996af2 ("tls: rx: decrypt into a fresh skb")
> Signed-off-by: Sabrina Dubroca <sd@...asysnail.net>
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
> ---
> This is pretty much Sabrina's patch just addressing my own
> feedback, so I'm keeping her as the author.
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists