Home GnuPG
Diffusion GnuPG 01c130031806

tpm: Fix possible buffer overflow in PKDECRYPT

Description

tpm: Fix possible buffer overflow in PKDECRYPT

* tpm2d/tpm2.c (tpm2_ecc_decrypt): Bail out on too long CIPHERTEXT.
(tpm2_rsa_decrypt): Ditto.

Cherry pick master commit of:
93fa34d9a346020355cd51d54102d30d4f177323

  • GnuPG-bug-id: T8045
  • Co-authored-by: NIIBE Yutaka <gniibe@fsij.org>
  • Reported-by: OpenAI Security Research

Details

Provenance
wernerAuthored on Mon, Jan 26, 11:13 AM
gniibeCommitted on Wed, Feb 25, 3:50 AM
Parents
rG8a597f8b3898: gpg: Fix armor parsing when no CRC is found.
Branches
Unknown
Tags
Unknown
Tasks
T8045: Stack-based buffer overflow in TPM2 `PKDECRYPT`