linux/fs/smb
Eric Biggers 26bc83b88b smb: client: Compare MACs in constant time
To prevent timing attacks, MAC comparisons need to be constant-time.
Replace the memcmp() with the correct function, crypto_memneq().

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
History 2026-03-03 20:56:36 -06:00
..
client smb: client: Compare MACs in constant time 2026-03-03 20:56:36 -06:00
common 32 ksmbd and smbdirect fixes 2026-02-12 08:31:12 -08:00
server smb: update some doc references 2026-03-01 17:59:52 -06:00
Kconfig smb/client: introduce KUnit test to check search result of smb2_error_map_table 2026-02-08 21:24:41 -06:00
Makefile smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00