Page MenuHome GnuPG

Kleopatra: File encryption with invalid S/MIME certificate hangs indefinitely
Testing, NormalPublic

Description

To reproduce:

  1. In registry set:
    • AllowMarkTrusted = 1
    • DisableUserTrustlist = 0
  2. Add the following S/MIME certs (CA, cert with invalid crtDP url) and trust the CA cert:

  1. Don't open the cert details, as this will invalidate it (a restart of Kleopatra will reset this)
  2. Encrypt a file with alice's cert, e.g. test.pdf
    • The process hangs indefinitely
    • An empty temporary file test.pdf.p7m.tOEaOE is created next to test.pdf

gpgsm.log

gpgme.log

Details

Version
vsd-3.3.6.1 @ win10

Event Timeline

timegrid triaged this task as Normal priority.Tue, Mar 24, 11:38 AM
timegrid created this task.
timegrid created this object with edit policy "Contributor (Project)".
ikloecker moved this task from Backlog to WIP on the gpd5x board.

This is a bug in gpgme. gpgsm_assuan_simple_command only reads a single line before waiting for more data although there is a second line (ERR ...) ready to be read. gpgsm never sends more data because it has already sent its full answer. So gpgme waits forever.

Fixed. For VSD 3.4 this will also be fixed if gpgme is updated.

I have added the fix as patch for VSD 3.3 because the commits that introduced this regression were also added as patches for VSD 3.3.

ikloecker changed the task status from Open to Testing.Tue, Mar 24, 4:47 PM