android_kernel_motorola_sm6375/net/tls
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hangyu Hua 754838aa02 net: tls: fix possible race condition between do_tls_getsockopt_conf() and do_tls_setsockopt_conf()
commit 49c47cc21b5b7a3d8deb18fc57b0aa2ab1286962 upstream.

ctx->crypto_send.info is not protected by lock_sock in
do_tls_getsockopt_conf(). A race condition between do_tls_getsockopt_conf()
and error paths of do_tls_setsockopt_conf() may lead to a use-after-free
or null-deref.

More discussion:  https://lore.kernel.org/all/Y/ht6gQL+u6fj3dG@hog/

Fixes: 3c4d755915 ("tls: kernel TLS support")
Signed-off-by: Hangyu Hua <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Meena Shanmugam <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2023-04-05 11:16:36 +02:00
..
Kconfig
Makefile
tls_device.c net/tls: Fix race in TLS device down flow 2022-07-29 17:14:12 +02:00
tls_device_fallback.c
tls_main.c net: tls: fix possible race condition between do_tls_getsockopt_conf() and do_tls_setsockopt_conf() 2023-04-05 11:16:36 +02:00
tls_sw.c net: tls: avoid hanging tasks on the tx_lock 2023-03-11 16:44:16 +01:00