How To

GPGME CVE-2026-129975: Check and Patch Mail Clients and Flatpak

Patching GPGME on Debian is one apt command. The hard part of CVE-2026-129975 comes after it: working out which programs still hold the old library in memory, and which copies of GPGME your package manager never touches. Flatpak links it, libostree links it, mutt links it, and the Flathub runtimes ship their own copy.

Original content from computingforgeeks.com - post 192901

Every check here was run on Debian 13 and 12, Fedora 45 and 44, Ubuntu 26.04 and 24.04 and Rocky Linux 10 in November 2026, and they still hold. Debian has shipped the fix, and its patch was tested. The others hadn’t by the 21 November check, so you’ll find a dated status table here and the commands to confirm where you stand.

Nothing here reproduces the crash, because there is no public exploit and you don’t need one to know where you stand. Every check below reads versions, linkage and memory maps instead, so you can run them on a production box without risk.

Check what CVE-2026-129975 breaks

CVE-2026-129975 is a double free in GPGME, the library programs use to talk to GnuPG. An OpenPGP key with a crafted, very long user ID triggers it when GPGME reads gpg’s status lines or key listings. The fix is in GPGME 2.3.1, released on 19 November 2026 and announced on 20 November. Version 2.3.0 was never public.

The GnuPG security advisory explains the root cause. A 1024 byte buffer gets reallocated when a line is longer, but the new pointer is only written back to the context at the end of the function. An early return on a read error leaves the stale pointer behind, and releasing the context frees that memory a second time.

Upstream says the bug can be used to exfiltrate data from an application, for example when it sends signed data, and that remote code execution “can’t be ruled out”. No CVSS score had been published on 21 November. Here’s who the advisory names as affected:

  • Any program that uses GPGME before 2.3.0 is affected, whether it loads the shared library, a DLL or a static copy.
  • Gpg4win, GnuPG Desktop and GnuPG VS-Desktop all ship GPGME and got new releases.
  • Most mail clients and many XMPP clients link it, so check yours with the commands below.
  • Samba and Flatpak are named explicitly in the advisory.

Flatpak is on that list because it calls GPGME to verify remote signatures. The fix is the GPGME library, not a Flatpak release, and upstream names no fixed Flatpak version, so don’t go looking for one. Updating libgpgme and restarting what uses it is the whole patch on the host side, and the GPGME C++ and Qt bindings don’t need a new version either. That keeps your change small, which matters when you’re patching a fleet.

Find the fixed GPGME version for your distro

Each distro backports the fix into its own GPGME branch, so don’t wait for 2.3.1 itself on a stable release. Debian 13 still calls its patched package 1.24.2, and if you compare against the upstream number you’ll wrongly conclude you’re exposed. This table shows what each tracker said and what the lab VMs saw on 21 November 2026, so you can match your release to a row and know what to look for.

ReleasePackageInstalled in labFixed versionStatus on 21 Nov 2026
Debian 13 (trixie)libgpgme11t641.24.2-31.24.2-3+deb13u1 (DSA-6646-1)Fixed, tested
Debian 12 (bookworm)libgpgme111.18.0-3+b11.18.0-3+deb12u1 (DLA-4924-1)Fixed, tested
Debian sidgpgme1.0 sourcenot tested2.3.1-1Fixed
Fedora 45gpgme2.0.1-6.fc45noneNot shipped yet, nothing in updates-testing
Fedora 44gpgme2.0.1-5.fc44noneNot shipped yet, nothing in updates-testing
Ubuntu 26.04 LTSlibgpgme452.0.1-2build1noneNot shipped yet, no USN
Ubuntu 24.04 LTSlibgpgme11t641.18.0-4.1ubuntu4noneNot shipped yet, no USN
RHEL 10 / Rocky Linux 10gpgme1.23.2-6.el10 (Rocky 10.2)noneNot shipped yet, no advisory
Flathub freedesktop 25.08 and GNOME 50 runtimesbundled libgpgme.so.45GPGME 2.0.0noneNot shipped yet
Thunderbird snap 160.0-1 (Ubuntu)bundled libgpgme.so.11GPGME 1.18.0 (noble build)noneNot shipped yet

Those rows will go stale fast, so check the trackers yourself before you trust the “not shipped yet” lines:

Debian forky (testing) still had 2.2.0-2 marked vulnerable that day, while sid already had 2.3.1-1. If you run testing, that gap closes once the sid package migrates, so check again in a few days rather than pulling from sid by hand. Mixing sid packages into testing tends to drag in other libraries you didn’t ask for.

Check which libgpgme you have installed

The package name changes between releases, which is the part that trips people up. Debian 13 and Ubuntu 24.04 call it libgpgme11t64, Debian 12 calls it libgpgme11, and Ubuntu 26.04 moved to libgpgme45 with the 2.x soname. A wildcard query catches all of them:

dpkg -l 'libgpgme*' | grep ^ii

On Debian and Ubuntu, apt-cache madison shows whether a security build exists next to the one you have. The Debian 13 lab VM before patching lists the trixie-security build, and apt offers the upgrade:

apt-cache madison and apt list on Debian 13 showing libgpgme11t64 1.24.2-3+deb13u1 upgradable from trixie-security

If the version ends in +deb13u1 or +deb12u1, you already have the fix. On Fedora, RHEL and Rocky the package is plain gpgme:

rpm -q gpgme
rpm -q --provides gpgme | grep libgpgme

The soname matters later when you grep memory maps. Rocky 10 provides libgpgme.so.11, while Fedora 45 provides libgpgme.so.45:

gpgme-2.0.1-6.fc45.x86_64
libgpgme.so.45()(64bit)
libgpgme.so.45(GPGME_1.0)(64bit)
libgpgme.so.45(GPGME_1.1)(64bit)

A fresh Ubuntu 24.04 cloud image had no libgpgme installed at all until flatpak pulled it in, while the stock 26.04 image already ships libgpgme45. So a server that looked clean yesterday may not be clean after you add one package, and a newer release may carry the library before you add anything. That’s why you should run the check on the machine as it is today, not trust an old inventory.

Knowing the version tells you if you’re exposed, but knowing what links the library tells you what to restart once the fix lands. You’ll want both lists before you patch, because a restart you forget leaves the old code running. Start with flatpak and libostree, since they’re on most desktops:

ldd /usr/bin/flatpak | grep -E 'gpgme|ostree'
ldd /usr/lib/x86_64-linux-gnu/libostree-1.so.1 | grep gpgme

On Fedora and Rocky the library lives at /usr/lib64/libostree-1.so.1, so swap that path into the second command. Both resolve to the system library on Debian 13. It’s also worth asking apt which mail clients pull in GPGME, because the answer isn’t what most people expect:

ldd output showing flatpak and libostree linked to the system libgpgme.so.11 and which mail clients depend on libgpgme

Thunderbird and Evolution have no GPGME dependency in the Debian packages, and Fedora’s repo metadata says the same, since Thunderbird’s built-in OpenPGP uses the RNP library. That isn’t the whole story for Thunderbird, as the Flatpak section shows. Mutt and NeoMutt link libgpgme directly, and KMail goes through the C++ and Qt bindings, which still sit on top of libgpgme. flatpak linked the system libgpgme on every distro in the lab:

  • On Debian 13, Debian 12, Ubuntu 24.04 and Rocky 10, flatpak links libgpgme.so.11.
  • On Fedora 45, Fedora 44 and Ubuntu 26.04, flatpak links libgpgme.so.45.
  • libostree links the same library everywhere, so your ostree tooling counts too.
  • Fedora’s podman also links libgpgme.so.45, and the cloud image ships it by default.

To see everything installed that depends on the library, ask the package manager instead of guessing. On Debian and Ubuntu, apt lists the installed reverse dependencies:

apt-cache rdepends --installed libgpgme11t64

On the Debian 13 VM that returned mutt, python3-gpg, flatpak and libostree-1-1. Use the package name from your own dpkg -l output. On Fedora, run a repoquery against the soname:

dnf -q repoquery --installed --whatrequires "$(rpm -q --provides gpgme | grep -m1 libgpgme.so)"

The stock Fedora 45 cloud image returned three packages. Podman and wget2 aren’t mail clients, which is exactly why this query beats a mental list:

gpgme-0:2.0.1-6.fc45.x86_64
podman-5:6.1.3-1.fc45.x86_64
wget2-0:2.3.0-3.fc45.x86_64

Drop --installed and the same query lists the repo packages that need the library. On Fedora 45 that list included buildah, cri-o, claws-mail plugins, dino, profanity, gmime, libzypp and osbuild-composer. If you run container builds on Fedora, they’re in scope too.

Check Flatpak runtimes and snaps for bundled GPGME

Flatpak apps don’t use your host’s libgpgme. They use whatever their runtime ships, so patching the host does nothing for them, and you can be fully patched on apt while a sandboxed app still loads the old code. With Thunderbird ESR and Evolution installed from Flathub on the Debian 13 VM, a search covers the whole Flatpak tree:

sudo find /var/lib/flatpak \( -name 'libgpgme*' -o -name 'gpgme*.pc' \) 2>/dev/null
sudo find /var/lib/flatpak/app -name 'libgpgme*'

Both runtimes carry their own libgpgme.so.45. Neither app bundles a copy of its own, so the runtime is the only thing to watch:

find under /var/lib/flatpak locating libgpgme.so.45 bundled in the freedesktop 25.08 and GNOME 50 runtimes but not in the apps

Per-user installs live under ~/.local/share/flatpak, so run the same find there if you install apps with --user. To read the bundled version, each runtime ships a manifest.json that names the GPGME source commit:

sudo python3 -c "import json;m=json.load(open('/var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/25.08/d7954c51f78a8b34e20a4d01942bd7b4881982cb5563371b3cec9c9b4134ebef/files/manifest.json'));[print(json.dumps(x.get('sources'),indent=1)) for x in m.get('modules',[]) if x.get('name')=='components/gpgme.bst']"

Swap in the hash directory from your own find output. The freedesktop 25.08 runtime pins the 2.0.0 tag:

[
 {
  "type": "git",
  "url": "https://github.com/gpg/gpgme.git",
  "commit": "gpgme-2.0.0-0-ge17ba578861905857da0a514b4fc9b88a57f7346",
  "alias": "github"
 }
]

The GNOME 50 runtime names the same commit. Grepping the library binary for its version string agrees, and prints GPGME 2.0.0 for both runtimes. That’s older than the fix, and the freedesktop-sdk recipe still pinned 2.0.0 on its 25.08 branch on 21 November.

You can’t patch a runtime yourself, because it’s a signed image you pull from Flathub, not a package you control. Run flatpak update regularly and check the manifest again after each runtime update. When the commit line moves past the vulnerable versions, you’re covered. If you want the wider picture of how runtimes differ from host packages, the Snap vs Flatpak vs AppImage comparison covers it.

One oddity: Thunderbird’s omni.ja contains the string libgpgme, and there’s a reason. Thunderbird’s built-in OpenPGP uses RNP, but with mail.openpgp.allow_external_gnupg set to true it uses GPGME for smartcard and external GnuPG keys, per Mozilla’s Thunderbird smartcard notes, which were written for Thunderbird 78 and say GPGME must be in the library search path. ldd won’t show that kind of use, so if you’ve turned that preference on, treat Thunderbird as a GPGME user.

Check the Thunderbird snap on Ubuntu

Snaps bundle libraries the same way Flatpak runtimes do, and the Thunderbird snap from Canonical is the default way to get Thunderbird on Ubuntu. On the 26.04 VM, a plain find /snap/thunderbird/current returned nothing, because current is a symlink and find doesn’t follow it. Add a trailing slash and the bundled copy shows up:

find /snap/thunderbird/current/ -name 'libgpgme*'

The snap carries the library files and a doc directory for the noble package:

/snap/thunderbird/current/usr/lib/x86_64-linux-gnu/libgpgme-pthread.so.11
/snap/thunderbird/current/usr/lib/x86_64-linux-gnu/libgpgme.so.11
/snap/thunderbird/current/usr/lib/x86_64-linux-gnu/libgpgme.so.11.27.0
/snap/thunderbird/current/usr/share/doc/libgpgme11t64
/snap/thunderbird/current/usr/share/lintian/overrides/libgpgme11t64

The snap’s manifest pins the version it was built from, which tells you whether a refresh has picked up a fix:

grep -n -B1 -A3 gpgme /snap/thunderbird/current/snap/manifest.yaml | head -30

Thunderbird 160.0-1 pinned the unpatched noble build, and the library’s own version string agrees with GPGME 1.18.0:

369-    - libgpg-error0=1.47-3build2.1
370:    - libgpgme11t64=1.18.0-4.1ubuntu4
371-    - libksba8=1.6.6-1build1
372-    - libldap2=2.6.10+dfsg-0ubuntu0.24.04.1
373-    - libsasl2-2=2.1.28+dfsg1-5ubuntu3.1

apt never touches that copy, so patching the host leaves it as it is. It changes only when Canonical rebuilds the snap against a fixed libgpgme11t64 and snap refresh pulls it in. Run the same find for any other snap you rely on for mail or chat, since this applies to every snap that ships GPGME.

Find running clients still holding the old library

A package upgrade replaces the file on disk, but a mail client started last week keeps the old code mapped until it exits, so you’re only patched once that process restarts. The kernel shows you every mapping in /proc/<pid>/maps, so a grep across all processes finds the holders:

sudo grep -l libgpgme /proc/[0-9]*/maps 2>/dev/null | cut -d/ -f3 | xargs -r ps -o pid,comm,args -p

On Debian 13, mutt was left running in a tmux session to give the check a real holder. The grep found it, and a second grep shows the exact file it mapped:

grep of /proc maps finding a running mutt process with libgpgme.so.11.33.2 mapped

Fedora 45 and 44 gave the same picture with mutt as the only holder on an idle server. The flatpak command only maps the library while it runs, so you’ll rarely catch it here. If you see nothing at all, that’s normal on a headless box and means nothing needs a restart.

Patch libgpgme on Debian 13 and 12

Debian is the one family with a fix out, through DSA-6646-1 for trixie and DLA-4924-1 for bookworm. You don’t have to run a full upgrade, which helps if you can’t take every pending change today. Refresh the package lists and upgrade the library alone:

sudo apt-get update
sudo apt-get install -y --only-upgrade libgpgme11t64

On Debian 13 that pulled python3-gpg along with the library, 755 kB in total. needrestart was installed too, and the tail of the output flags the tmux session:

apt only-upgrade of libgpgme11t64 to 1.24.2-3+deb13u1 with needrestart flagging the tmux server

On Debian 12 the package is libgpgme11, so swap the name. The upgrade there took the library from the point release build to the security one:

sudo apt-get install -y --only-upgrade libgpgme11

The tail of the output confirms the version swap:

Preparing to unpack .../libgpgme11_1.18.0-3+deb12u1_amd64.deb ...
Unpacking libgpgme11:amd64 (1.18.0-3+deb12u1) over (1.18.0-3+b1) ...
Setting up libgpgme11:amd64 (1.18.0-3+deb12u1) ...
Processing triggers for libc-bin (2.36-9+deb12u14) ...

Unattended upgrades will pick this up too if you have the security origin enabled, so your other Debian boxes may already have it; the version check tells you in seconds. Even then, unattended upgrades won’t restart your mail client for you. The walkthrough on patching a Debian security advisory end to end covers that setup, and the apt keyring guide helps if your security source fails its signature check.

Restart what still maps the old library

Here’s where the lab caught something. needrestart only named the tmux server, not the mutt process running inside it, because it reports user sessions by their top process. If you had trusted that line, you would have restarted nothing that matters and left the vulnerable code loaded in the one program that parses other people’s keys. The deleted-file grep is more honest:

sudo grep -H 'libgpgme.*(deleted)' /proc/[0-9]*/maps 2>/dev/null

Every line it prints is a process still running the replaced file, and 2>/dev/null hides the noise from processes that exit while grep runs. After mutt restarted, the same grep came back empty:

proc maps showing mutt still holding the deleted old libgpgme after the patch, then clean after a restart

On a desktop, logging out and back in restarts your mail client and the session services in one go. On a server, restart the named services or ask the user to end their tmux session, because killing it drops whatever they had open. A reboot is only worth it when the list is long, and you should run the grep again afterwards either way.

Watch for the Fedora 45 and 44 update

Fedora hadn’t pushed a fixed gpgme to stable or updates-testing on either release by 21 November. You can confirm both in a few seconds, because dnf searches advisories by CVE ID:

sudo dnf -q --refresh check-upgrade 'gpgme*'; echo exit=$?
sudo dnf -q updateinfo list --cve CVE-2026-129975; echo exit=$?
sudo dnf -q --enablerepo=updates-testing list --upgrades 'gpgme*'; echo exit=$?

Exit 0 from check-upgrade means nothing to install, and exit 1 from the testing query means no candidate there either. Fedora 45 answered like this:

Fedora 45 dnf updateinfo reporting no advisory found for CVE-2026-129975 with gpgme 2.0.1-6 installed

Fedora 44 printed the same advisory message with gpgme 2.0.1-5.fc44 installed. Once the update lands, the updateinfo line turns into an advisory ID. This is the command to run then; it couldn’t be captured yet, because there was nothing to install:

sudo dnf upgrade --refresh gpgme

Until then, the linkage and process checks above still tell you what you’ll need to restart, so run them now and keep the list. If you set up Flathub on Fedora following our Flatpak and Flathub setup guide, remember the runtime copies are a separate update.

Check Ubuntu and RHEL family status

Ubuntu had no USN for this CVE on 21 November. Both LTS releases offered only the archive build as the candidate, which you can read straight from apt:

apt-cache policy $(dpkg-query -W -f='${binary:Package} ' 'libgpgme*' 2>/dev/null)

The dpkg-query part fills in whichever package name your release uses. On 24.04 it also prints an empty libgpgme11 block with no installed version, which is harmless. On 26.04 the installed and candidate versions match, so there is nothing to pull yet:

libgpgme45:
  Installed: 2.0.1-2build1
  Candidate: 2.0.1-2build1
  Version table:
 *** 2.0.1-2build1 500
        500 http://europe-west1.gce.archive.ubuntu.com/ubuntu resolute/main amd64v3 Packages
        100 /var/lib/dpkg/status

Running pro fix CVE-2026-129975 on 26.04 timed out twice with “The read operation timed out”, so don’t read that as a verdict either way. On 24.04 the first run timed out and the second returned Error: CVE-2026-129975 not found., which means Ubuntu’s tracker had no entry yet, not that you’re safe. The 2.3.1 package was sitting in the development release’s proposed pocket, which usually comes before stable backports. For the apt side of 26.04, our Ubuntu 26.04 Snap, Flatpak and APT guide explains where each package source comes from.

Rocky Linux 10.2 stands in for RHEL 10 here. It had no update and no advisory, and its gpgme only had libjcat linked on a minimal install:

rpm -q gpgme
sudo dnf -q check-update gpgme; echo exit=$?
dnf -q repoquery --installed --whatrequires 'libgpgme.so.11()(64bit)'

The updateinfo search for the CVE printed nothing on Rocky, which is how dnf4 says no match. Installing flatpak added it as a second user of libgpgme.so.11:

gpgme-1.23.2-6.el10.x86_64
exit=0
gpgme-0:1.23.2-6.el10.x86_64
libjcat-0:0.2.5-1.el10.x86_64

Upstream also publishes its own Debian style packages for several distros at repos.gnupg.org, but they weren’t part of this test. Mixing a third party libgpgme into a distro that will ship its own fix soon is usually more trouble than waiting a few days, since the next distro update may conflict with it. If you can’t wait, put those packages on one machine first and run the confirm checks below before you roll them out.

Confirm the fix

A version number alone is not proof, because a service you forgot can still be running the old build. Work through these checks in order once your distro ships the update:

  • ✅ The installed version from dpkg -l or rpm -q matches the fixed one in the table.
  • ✅ The package changelog names CVE-2026-129975.
  • ✅ The (deleted) grep over /proc/*/maps prints nothing.
  • ✅ gpg and the GPGME bindings still sign and verify.

For the changelog, apt-get changelog failed on both Debian releases with a 404, because the security build’s changelog wasn’t on the metadata server yet:

Err:1 https://metadata.ftp-master.debian.org gpgme1.0 1.24.2-3+deb13u1 Changelog
  Changelog unavailable for gpgme1.0=1.24.2-3+deb13u1 (404  Not Found [IP: 203.0.113.10 443])

Read the copy the package installed locally instead. It’s always there and always matches what you have:

zcat /usr/share/doc/libgpgme11t64/changelog.Debian.gz | head -15

The top entry names the CVE and the security team upload:

gpgme1.0 (1.24.2-3+deb13u1) trixie-security; urgency=high

  * Non-maintainer upload by the Security Team.
  * Fix a double free in the status line read code (CVE-2026-129975)

 -- Salvatore Bonaccorso <[email protected]>  Thu, 19 Nov 2026 21:58:57 +0100

On Fedora and Rocky, rpm -q --changelog gpgme | head does the same job. Finally, make sure the patched library still works. This creates a throwaway key, then signs and verifies a line through the Python GPGME bindings:

gpg --batch --passphrase '' --quick-generate-key 'Lab Test <[email protected]>' ed25519 sign never
python3 -c 'import gpg; print(gpg.version.versionstr)'
python3 -c 'import gpg; c=gpg.Context(armor=True); s,_=c.sign(b"gpgme check\n", mode=gpg.constants.sig.mode.CLEAR); d,r=c.verify(s); print(d.decode().strip(), r.signatures[0].summary, r.signatures[0].fpr[-16:])'

Run it as a normal user, not root, so the test key lands in a home directory you can delete afterwards. On the patched Debian 13 VM it printed the library version and a good signature:

1.24.2
gpgme check 3 A3880827B8FB00E7

The 3 is the signature summary flags for valid and green. The bindings report the upstream base version, so 1.24.2 is expected even with the Debian patch applied. Install python3-gpg first if it isn’t there.

Rebuild static builds and update Gpg4win

Anything that links GPGME statically keeps the bug until it’s rebuilt, whatever your package manager installs. Check your own binaries with ldd: if a program uses GPGME but shows no libgpgme line, it carries its own copy and you’ll need to rebuild it. Upstream’s advice by case:

  • Rebuild static binaries against GPGME 2.3.1.
  • On an old branch, apply the patch attached to the advisory, which upstream says likely applies cleanly to very old versions.
  • On Windows, update to Gpg4win 5.1.2, which bundles the fixed GPGME, or take the DLL from it.
  • Leave GPGMEPP and QGpgME alone, since they don’t need a new version.

The Debian backport into 1.18.0 for bookworm shows the patch carries back that far in practice, so an old pinned GPGME is not a reason to skip it. If you maintain an internal package, the Debian source package is a good reference for how the patch was applied, because it’s the same small change on two very different branches. The same check, patch and confirm pattern applies to our PHP CVE-2026-115560 guide and the Ruby2Shell CVE-2026-132825 checks, the bug that pushed this disclosure forward.

Avoid these misconceptions about CVE-2026-129975

A few claims keep coming up around this CVE, and the lab answers most of them:

  • “Update Flatpak to fix it.” No Flatpak release fixes this. Flatpak uses the system libgpgme, and Flathub apps use their runtime’s copy.
  • “Thunderbird never touches GPGME.” Its built-in OpenPGP uses RNP, but external GnuPG support loads libgpgme at runtime, and the Ubuntu snap bundles an unpatched copy.
  • “needrestart will tell you what to restart.” It named the tmux server and missed the mutt process inside it.
  • “I need GPGME 2.3.1 exactly.” Stable distros backport the fix, so Debian’s 1.24.2-3+deb13u1 is fixed while plain 2.0.1 on Fedora isn’t.

Re-run the version check when your distro’s tracker changes, and keep the restart check in the same habit. It’s the step most people skip, and it’s the one that decides whether the patch is actually live on your machine.

Keep reading

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs Security Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Security UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch Security nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch GL.iNet Security Notice: Check Your Router for Malware and Update Networking GL.iNet Security Notice: Check Your Router for Malware and Update Flatpak 1.18.6 Sandbox Escape CVEs: Check Version and Patch Security Flatpak 1.18.6 Sandbox Escape CVEs: Check Version and Patch Cybersecurity Home Lab Hardware: $500, $1,000 and $2,000 Builds Kali Linux Cybersecurity Home Lab Hardware: $500, $1,000 and $2,000 Builds

Leave a Comment

Press ESC to close