]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: sr: Fix MAC comparison to be constant-time
authorEric Biggers <ebiggers@kernel.org>
Mon, 18 Aug 2025 20:27:24 +0000 (13:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:39 +0000 (16:28 +0200)
commit3ddd55cf19ed6cc62def5e3af10c2a9df1b861c3
tree71abb5825c4b29a922e76ff0b456ca44df9a99cb
parentb117c41b00902c1a7e24347c405cb82504aeae0b
ipv6: sr: Fix MAC comparison to be constant-time

commit a458b2902115b26a25d67393b12ddd57d1216aaa upstream.

To prevent timing attacks, MACs need to be compared in constant time.
Use the appropriate helper function for this.

Fixes: bf355b8d2c30 ("ipv6: sr: add core files for SR HMAC support")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Reviewed-by: Andrea Mayer <andrea.mayer@uniroma2.it>
Link: https://patch.msgid.link/20250818202724.15713-1-ebiggers@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/seg6_hmac.c