aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorHangyu Hua <[email protected]>2023-02-28 02:33:44 +0000
committerJakub Kicinski <[email protected]>2023-03-02 04:30:01 +0000
commit49c47cc21b5b7a3d8deb18fc57b0aa2ab1286962 (patch)
treea42d8662eabed9313fc47b5bfe97d24e5f40ae39 /net/unix/af_unix.c
parentnet: lan966x: Fix port police support using tc-matchall (diff)
downloadkernel-49c47cc21b5b7a3d8deb18fc57b0aa2ab1286962.tar.gz
kernel-49c47cc21b5b7a3d8deb18fc57b0aa2ab1286962.zip
net: tls: fix possible race condition between do_tls_getsockopt_conf() and do_tls_setsockopt_conf()
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: 3c4d7559159b ("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]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions