]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thunderbolt: Compare HMAC values in constant time
authorEric Biggers <ebiggers@kernel.org>
Thu, 31 Jul 2025 19:25:44 +0000 (12:25 -0700)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 11 Aug 2025 05:56:13 +0000 (07:56 +0200)
commitdced755df3bc49e417ee4de45eec89bf5570b192
tree4300c49ab642cb9b6d453d090d9e1999e40e5238
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
thunderbolt: Compare HMAC values in constant time

To prevent timing attacks, HMAC value comparison needs to be constant
time.  Replace the memcmp() with the correct function, crypto_memneq().

Fixes: f67cf491175a ("thunderbolt: Add support for Internal Connection Manager (ICM)")
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/domain.c