[PATCH] crypto: xilinx - clear AES key buffer before freeing it
Herbert Xu
herbert at gondor.apana.org.au
Fri Sep 18 02:54:29 PDT 2026
On Tue, Sep 08, 2026 at 09:16:06PM +0200, Thorsten Blum wrote:
> In xilinx_aes_aead_exit(), the AES key buffer is freed without being
> cleared, which allows key material to remain in memory. Use
> kfree_sensitive() to clear the buffer before freeing it.
>
> Fixes: c315cb0005be ("crypto: xilinx - Change coherent DMA to streaming DMA API")
> Cc: stable at vger.kernel.org
> Signed-off-by: Thorsten Blum <blum at kernel.org>
> ---
> drivers/crypto/xilinx/zynqmp-aes-gcm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
More information about the linux-arm-kernel
mailing list