diff options
| author | Sabrina Dubroca <[email protected]> | 2024-02-07 01:18:22 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-02-10 21:38:19 +0000 |
| commit | 32b55c5ff9103b8508c1e04bfa5a08c64e7a925f (patch) | |
| tree | f15862fc76572e54089b2da8572cb5fc75a40375 /net/unix/garbage.c | |
| parent | net: tls: handle backlogging of crypto requests (diff) | |
| download | kernel-32b55c5ff9103b8508c1e04bfa5a08c64e7a925f.tar.gz kernel-32b55c5ff9103b8508c1e04bfa5a08c64e7a925f.zip | |
net: tls: fix use-after-free with partial reads and async decrypt
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 <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
