LINUXMIND.DEVTHE GNU/LINUX WORLD

GPGME critical bug: update your PGP apps on Linux right now

Editorial illustration of a sealed email envelope with a broken padlock and a warning shield, on a cream background

GnuPG maintainer Werner Koch published a critical security bug in GPGME — GnuPG Made Easy — late on Friday 20 November 2026. The flaw sits in the library that lets other programs talk to GnuPG, so it does not stay confined to the command line. If you use a mail client, an XMPP app or Flatpak on Linux, this one reaches you.

What actually breaks

A crafted OpenPGP key carrying an extremely long user ID triggers a double free inside GPGME. That lets an attacker exfiltrate data from an application — for example by sending it signed data — and the announcement warns that a remote code execution (RCE) attack “can’t be ruled out”.

The root cause is mundane and worrying at once. Two internal helpers read status lines and key listings from gpg. They start from a 1,024-byte buffer and reallocate when more room is needed, but the new pointer is only handed back to the context object at the end of the function. If the function returns early on a read error, the context keeps a stale pointer to freed memory, and that block is freed a second time later on. The usual double-free checks in the allocator may not even fire, because other allocations land in between.

Who is exposed

Koch’s message is blunt: every existing GPGME release is affected, whether the library is used as a shared object, a DLL or linked statically into the binary. That is a long list.

  • Most email clients that handle PGP/MIME.
  • Most XMPP clients with OpenPGP support.
  • Flatpak, which leans on GPGME for signature verification.
  • Samba and other tools built on the same stack.

Since the leak is driven by signed data, you do not have to have installed anything exotic. Someone only has to send you a key and a message.

The fix is already out

GPGME 2.3.1 is the first fixed version, and Koch is asking users to update “immediately”. This is not an update to park until the weekend.

If your distribution packages GPGME, wait for its rebuild instead of chasing a tarball. Mixing a hand-compiled GPGME with your distro’s mail client is how a security fix turns into an ABI bug.

What to do today

  • Run a full system upgrade and let the package manager pull the rebuilt GPGME.
  • Restart long-running apps — mail and chat clients — so they load the new library.
  • On Flatpak, update runtime and apps together with flatpak update.

There is no workaround worth trusting here. The bug lives in the library itself, not in your configuration, so patching is the only real remedy — and the longer you wait, the narrower the window between disclosure and exploitation gets.

Check what you actually run with gpgme-config --version or your distro’s package query. Anything below 2.3.1 is the old, vulnerable code, and the meter is running.

Sources: Phoronix; Werner Koch’s announcement on the GnuPG mailing list.




Leave a Reply

Your email address will not be published. Required fields are marked *