You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tls: fix race between tx work scheduling and socket close
jira VULN-8187
cve CVE-2024-26585
commit-author Jakub Kicinski <kuba@kernel.org>
commit e01e393
upstream-diff No actual difference from the upstream patch, but required
manual conflicts resolution due to differences in neighbouring code
Similarly to previous commit, the submitting thread (recvmsg/sendmsg)
may exit as soon as the async crypto handler calls complete().
Reorder scheduling the work before calling complete().
This seems more logical in the first place, as it's
the inverse order of what the submitting thread will do.
Reported-by: valis <sec@valis.email>
Fixes: a42055e ("net/tls: Add support for async encryption of records for performance")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit e01e393)
Signed-off-by: Marcin Wcisło <marcin.wcislo@conclusive.pl>
0 commit comments