]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: essiv - Check ssize for decryption and in-place encryption
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 8 Oct 2025 07:54:20 +0000 (15:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:10 +0000 (16:23 +0200)
commit248ff2797ff52a8cbf86507f9583437443bf7685
tree7c0a55887ef7f70181e8c1f98e9eec47acdb6f6e
parent7043c73a6429326a0f7e60db0954fa941597e8c6
crypto: essiv - Check ssize for decryption and in-place encryption

[ Upstream commit 6bb73db6948c2de23e407fe1b7ef94bf02b7529f ]

Move the ssize check to the start in essiv_aead_crypt so that
it's also checked for decryption and in-place encryption.

Reported-by: Muhammad Alifa Ramdhan <ramdhan@starlabs.sg>
Fixes: be1eb7f78aa8 ("crypto: essiv - create wrapper template for ESSIV generation")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
crypto/essiv.c