mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
net/tcp-md5: Fix MAC comparison to be constant-time
commit46d0d6f50dupstream. To prevent timing attacks, MACs need to be compared in constant time. Use the appropriate helper function for this. Fixes:cfb6eeb4c8("[TCP]: MD5 Signature Option (RFC2385) support.") Fixes:658ddaaf66("tcp: md5: RST: getting md5 key from listener") Cc: stable@vger.kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org> Link: https://patch.msgid.link/20260302203409.13388-1-ebiggers@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Li hongliang <1468888505@139.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
72ab76ea68
commit
ff44ec94d4
2 changed files with 6 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue