From: Paul Moses
Date: Wed, 1 Apr 2026 08:07:49 +0000 (-0500) Subject: crypto: ccp - copy IV using skcipher ivsize X-Git-Tag: v7.1-rc1~61^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7a1f3cdd64d8a165d9b8c9e9ad7fb46ac19dfc4;p=thirdparty%2Fkernel%2Flinux.git crypto: ccp - copy IV using skcipher ivsize AF_ALG rfc3686-ctr-aes-ccp requests pass an 8-byte IV to the driver. ccp_aes_complete() restores AES_BLOCK_SIZE bytes into the caller's IV buffer while RFC3686 skciphers expose an 8-byte IV, so the restore overruns the provided buffer. Use crypto_skcipher_ivsize() to copy only the algorithm's IV length. Fixes: 2b789435d7f3 ("crypto: ccp - CCP AES crypto API support") Signed-off-by: Paul Moses
Reviewed-by: Tom Lendacky