linux/fs/smb
Eric Biggers 93c0a22fec ksmbd: Compare MACs in constant time
commit c5794709bc upstream.

To prevent timing attacks, MAC comparisons need to be constant-time.
Replace the memcmp() with the correct function, crypto_memneq().

Fixes: e2f34481b2 ("cifsd: add server-side procedures for SMB3")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-03-19 16:08:50 +01:00
..
client smb: client: Compare MACs in constant time 2026-03-19 16:08:50 +01:00
common smb: smbdirect: introduce smbdirect_socket.send_io.bcredits.* 2026-02-16 10:19:41 +01:00
server ksmbd: Compare MACs in constant time 2026-03-19 16:08:50 +01:00
Kconfig smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00
Makefile smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00