diff options
| author | Sabrina Dubroca <sd@queasysnail.net> | 2025-10-14 12:16:59 +0300 | 
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-10-16 03:41:45 +0300 | 
| commit | b8a6ff84abbcbbc445463de58704686011edc8e1 (patch) | |
| tree | 8975fcffa63295e3294a6482865d440ec4b2eaa4 /drivers/cdx/controller/cdx_controller.c | |
| parent | b6fe4c29bb51cf239ecf48eacf72b924565cb619 (diff) | |
| download | linux-b8a6ff84abbcbbc445463de58704686011edc8e1.tar.xz | |
tls: wait for pending async decryptions if tls_strp_msg_hold fails
Async decryption calls tls_strp_msg_hold to create a clone of the
input skb to hold references to the memory it uses. If we fail to
allocate that clone, proceeding with async decryption can lead to
various issues (UAF on the skb, writing into userspace memory after
the recv() call has returned).
In this case, wait for all pending decryption requests.
Fixes: 84c61fe1a75b ("tls: rx: do not use the standard strparser")
Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://patch.msgid.link/b9fe61dcc07dab15da9b35cf4c7d86382a98caf2.1760432043.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions
