UPSTREAM: net: tls: fix use-after-free with partial reads and async decrypt
[ Upstream commit 32b55c5f ] 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. Bug: 326214405 Fixes: fd31f399 ("tls: rx: decrypt into a fresh skb") Signed-off-by:Sabrina Dubroca <sd@queasysnail.net> Signed-off-by:
Jakub Kicinski <kuba@kernel.org> Reviewed-by:
Simon Horman <horms@kernel.org> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Sasha Levin <sashal@kernel.org> (cherry picked from commit d6847635) Signed-off-by:
Lee Jones <joneslee@google.com> Change-Id: Ifdd765d0af082523d1432436b6f6d2c094c48dca
Loading
Please sign in to comment