Zhidaily AI · Intelligence · Daily
Zhidaily
Issue 23 · November 22, 2026 · Sun
Today's stories
8 stories · 3 companies
Home / November 22, 2026 / GnuPG patches critical GPGME double-free bug
← Back
News Safety Score62

GnuPG patches critical GPGME double-free bug

In brief
GnuPG shipped GPGME 2.3.1 to fix a critical flaw that a crafted OpenPGP key can trigger. Anyone whose software verifies signatures through GPGME should update now.
Hacker News gdgghhhhh · Hacker News · lists.gnupg.org
Nov 21 · 16:32 Read the original ↗
01Summary

GnuPG released GPGME 2.3.1 on 2026-11-19 to fix CVE-2026-129975, a critical bug in every earlier version. A malicious OpenPGP key with a crafted very long user id triggers a double free (同一块内存被释放两次), which the advisory says can be used to exfiltrate data from applications, for example by sending signed data; the maintainers say an RCE attack cannot be ruled out and urge an immediate update. The flaw sits in two internal functions that read status lines and key listings from gpg: a buffer is reallocated, but if the function returns early on a read error the context keeps a pointer to freed memory, which is freed again later. All software using GPGME before 2.3.0 is affected, whether as a shared library, DLL or statically linked — the advisory lists Gpg4win, GnuPG Desktop, GnuPG VS-Desktop, most mail clients, many XMPP clients, Samba and Flatpak. Fixes: update the shared library to 2.3.1, take the DLL from Gpg4win 5.1.2, rebuild static binaries against 2.3.1, or apply the attached patch, which likely works on very old versions. GPGMEPP and GPGMEQT need no update. The bug was found by Johan Carlsson and reported by GitLab on 2026-11-12; disclosure moved from 2026-11-25 to 2026-11-20 because of the Ruby2Shell bug.

02Background

GPGME is the library that applications call to use GnuPG, so the bug sits in the glue layer rather than in GnuPG's own encryption code. The advisory says the flaw has been present in all versions before 2.3.1, and that version 2.3.0 was never publicly released.

03What to do now

Anyone shipping software that links GPGME — as a shared library, DLL, or statically — needs to rebuild against 2.3.1 or apply the attached patch, which GnuPG says should apply cleanly even to very old versions. Windows users can get the fixed DLL from Gpg4win 5.1.2. GPGMEPP and GPGMEQt do not need updating. Because the advisory lists most mail clients, many XMPP clients, Samba and Flatpak among affected software, teams should check whether their dependency chain pulls in an older GPGME before assuming a distro update covers them.

04Community discussion

One commenter argues the advisory overstates the issue, calling it a double free rather than a full RCE chain. Another points to a Red Hat patch from five years ago that conventional tools flagged but upstream missed, and a third asks which real attack paths exist on Linux workstations and servers, noting that distribution packages are verified with GPG but it is unclear whether the vulnerable library is in that path.