Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
HighPublic exploit

Stack-based buffer overflow in GnuPG tpm2daemon PKDECRYPT

IdentifiersCVE-2026-24882CWE-121· Stack-based Buffer Overflow

CVE-2026-24882 is a stack-based buffer overflow in GnuPG before 2.5.17 affecting tpm2daemon, the helper process used for cryptographic operations when private keys are stored in a TPM. The flaw occurs during handling of the PKDECRYPT command for TPM-backed RSA and ECC keys. Other GnuPG components communicate with tpm2daemon over the local Assuan IPC socket. During a PKDECRYPT request, tpm2daemon copies attacker-supplied ciphertext into fixed-size TPM work buffers without properly validating the ciphertext length. If the supplied ciphertext exceeds the TPM buffer size, the copy operation writes past the end of a stack buffer and corrupts adjacent stack memory. The vulnerable condition affects both supported TPM decrypt paths, tpm2_rsa_decrypt and tpm2_ecc_decrypt.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

A local attacker able to access the tpm2daemon Assuan socket can send an oversized ciphertext in a crafted PKDECRYPT request and trigger stack memory corruption in tpm2daemon. This can cause process crash and denial of service, and is potentially exploitable for arbitrary code execution in the context of the tpm2daemon process.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce exposure by avoiding or disabling use of TPM-backed RSA and ECC keys in GnuPG where feasible, and restrict access to the local tpm2daemon Assuan socket and PKDECRYPT functionality to trusted local users and processes only. Additional OS-level hardening and IPC access controls may reduce exploitability until the update can be applied.

Remediation

Patch, then assume compromise.

Upgrade GnuPG to version 2.5.17 or later, which fixes the tpm2daemon PKDECRYPT stack-based buffer overflow. Apply the vendor security release across systems using TPM-backed keys, and ensure all affected GnuPG components are updated consistently.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
GnupgGnupgapplication
Gpg4winGpg4winapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity16

Community discussion across Reddit, Mastodon, and other social sources.