Home GnuPG
Diffusion GnuPG 2438271ab601

agent: Fix stack buffer overflow when using gpgsm and KEM

Description

agent: Fix stack buffer overflow when using gpgsm and KEM

* agent/pkdecrypt.c (ecc_kem_decrypt): Check sessionkey_len before
calling gcry_cipher_decrypt.  Always close decryption handle.

This bug was indroduced with 2.5.13 (2025-10-22). It affects only
this branch.

Details