Page MenuHome GnuPG
Feed Advanced Search

Nov 18 2025

gniibe added a comment to F33097212: temp-output-then-rename-20251117.patch.

At line 133 shouldn't we have used iobuf_cancel there?

Nov 18 2025, 8:08 AM
gniibe changed the status of T7658: Okular: Dirmngr startup timeout on signature validation from Open to Testing.

I believe this bug was fixed by T7829. Please confirm with new gpgwin-5.0.0-beta.

Nov 18 2025, 1:04 AM · gpd5x (gpd-5.0.0), Bug Report, okular

Nov 17 2025

gniibe updated subscribers of T7873: Decrypt to foo.gpg.part files and rename.

@ikloecker says that Kleo already support this feature. (I didn't know that.)
So, compatibility flag to switch on/off the feature would be needed,
or this feature is not needed in GnuPG at all.

Nov 17 2025, 10:26 AM · Feature Request, gnupg26
gniibe added a comment to T7873: Decrypt to foo.gpg.part files and rename.

Here is my attempt to do that:

Nov 17 2025, 8:19 AM · Feature Request, gnupg26

Nov 14 2025

gniibe committed rGd1cde3e36463: build: Silence automake about escaping #. (authored by gniibe).
build: Silence automake about escaping #.
Nov 14 2025, 7:36 AM
gniibe committed rG8a95e963d53a: common: Fix the test of t-stringhelp. (authored by gniibe).
common: Fix the test of t-stringhelp.
Nov 14 2025, 6:35 AM

Nov 12 2025

gniibe added a comment to T7894: libgcrypt, scute, gpgrt/argparse, gnupg/dirmngr: Hard-coded /etc.

I checked the code under gnupg/dirmngr. Those are no harm.

Nov 12 2025, 6:31 AM · libgcrypt, scute, gpgrt, Bug Report

Nov 11 2025

gniibe added a comment to T7905: Radix64 Line-Truncation Enabling Polyglot Attacks.

For someone who considers the rejection is the requirement of the spec., here is a change:

Nov 11 2025, 7:00 AM · gnupg, g10code, Bug Report
gniibe updated the task description for T7905: Radix64 Line-Truncation Enabling Polyglot Attacks.
Nov 11 2025, 6:59 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7902: OpenPGP Cleartext Signature Framework.

Here is a revised patch (hopefully the last one):

Nov 11 2025, 6:37 AM · Not A Bug, OpenPGP, FAQ, gnupg
gniibe committed rG62b8bf2f3905: gpg: Fix armored input parsing. (authored by gniibe).
gpg: Fix armored input parsing.
Nov 11 2025, 6:30 AM
gniibe committed rG9ef87bcdb034: dirmngr: Fix OCSP check. (authored by gniibe).
dirmngr: Fix OCSP check.
Nov 11 2025, 3:45 AM
gniibe committed rGff3068341869: agent: Fix a memory leak. (authored by Sorah Fukumori <her@sorah.jp>).
agent: Fix a memory leak.
Nov 11 2025, 3:45 AM

Nov 10 2025

gniibe added a comment to F31795841: armor-validation-one-pass-sig-2025-11-05.patch.

We can use:

Nov 10 2025, 10:11 AM
gniibe added a member for libassuan: gniibe.
Nov 10 2025, 2:22 AM
gniibe removed a member for nGPH: gniibe.
Nov 10 2025, 2:21 AM

Nov 6 2025

gniibe changed the status of T7893: GnuPG: Decryption fails if the pinentry dialog for the first tried recipient is canceled from Open to Testing.

That's my mistake with KEM API.

Nov 6 2025, 6:14 AM · gnupg26, gnupg
gniibe committed rG12c0b94fcb5f: agent: Fix wiping memory in PKDECRYPT command. (authored by gniibe).
agent: Fix wiping memory in PKDECRYPT command.
Nov 6 2025, 6:12 AM
gniibe added a comment to T7873: Decrypt to foo.gpg.part files and rename.

Here is my idea to implement the feature:
(1) Extend struct iobuf_struct to have a field of temporary output (of int), just after real_fname.

  • OUTPUTFILE: When it's 1, it means that a temporary output file generated with real_fname original suffix removed and appended .tmp

(2) Modify get_output_file in plaintext.c and make_outfile_name in openfile.c, so that OUTPUTFILE semantics above is used and the field in iobuf_struct is marked accordingly.
(3) Modify proc_encrypted in mainproc.c so that it can rename .tmp file to the OUTPUTFILE or it can remove it when failure, when the field is active.

Nov 6 2025, 3:54 AM · Feature Request, gnupg26
gniibe added a comment to T7633: libgcrypt fails to build on NetBSD due to the systems bswap32 macro defintion..

Applied to 1.11 branch.

Nov 6 2025, 2:33 AM · NetBSD, libgcrypt, Bug Report
gniibe added projects to T7882: `rsa-sha2` signature values are improperly truncated : gpgagent, ssh.
Nov 6 2025, 2:07 AM · ssh, gpgagent, Bug Report
gniibe closed T7194: gnupg_ -> gpgrt_ : Pipe API as Resolved.
Nov 6 2025, 1:55 AM · gpgrt, gnupg
gniibe added a comment to T7649: gnupg: Use KEM interface for encryption/decryption.

Let me explain the background.

Nov 6 2025, 12:57 AM · gnupg26

Nov 5 2025

gniibe added a comment to T7894: libgcrypt, scute, gpgrt/argparse, gnupg/dirmngr: Hard-coded /etc.

For gpgrt/argparse this could be an option (to remove hard-coded /etc):

Nov 5 2025, 7:44 AM · libgcrypt, scute, gpgrt, Bug Report
gniibe added a comment to T7902: OpenPGP Cleartext Signature Framework.

Here is a patch (revised since the email of mine):

Nov 5 2025, 6:26 AM · Not A Bug, OpenPGP, FAQ, gnupg
gniibe claimed T7909: Other bugs reported by 49016 et al..
Nov 5 2025, 6:11 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7909: Other bugs reported by 49016 et al..

For t-stringhelp.c, here is a fix.

Nov 5 2025, 6:11 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7909: Other bugs reported by 49016 et al..

For

openpgp_oid_from_str has a wrong memory-safety assumption

Nov 5 2025, 6:00 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7909: Other bugs reported by 49016 et al..

For Integer Overflow in literals_seen, I think that the claim is wrong.
When literals_seen becomes two, GnuPG stops processing to return an error.
It's not possible for GnuPG to keep processing.

Nov 5 2025, 3:51 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7909: Other bugs reported by 49016 et al..

For Integer Truncation of Arguments report, since the int value is limited to one-octet value, we could add check for the length of input when we use strtol.

Nov 5 2025, 3:30 AM · gnupg, g10code, Bug Report
gniibe closed T7845: gpgsm: Use KEM interface for encryption as Resolved.
Nov 5 2025, 2:25 AM · gnupg26
gniibe closed T7845: gpgsm: Use KEM interface for encryption, a subtask of T7649: gnupg: Use KEM interface for encryption/decryption, as Resolved.
Nov 5 2025, 2:25 AM · gnupg26
gniibe closed T7811: gpgsm: Use KEM interface for decryption, a subtask of T7649: gnupg: Use KEM interface for encryption/decryption, as Resolved.
Nov 5 2025, 2:24 AM · gnupg26
gniibe closed T7811: gpgsm: Use KEM interface for decryption as Resolved.
Nov 5 2025, 2:24 AM · gnupg26

Nov 4 2025

gniibe updated the task description for T7909: Other bugs reported by 49016 et al..
Nov 4 2025, 7:32 AM · gnupg, g10code, Bug Report
gniibe created T7909: Other bugs reported by 49016 et al..
Nov 4 2025, 7:18 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7908: GnuPG Accepts Path Separators and Path Traversals in Literal Data "Filename" Field.

Added a compatibility flag in: rGad0c6c33c3d6: gpg: Do not use a default when asking for another output filename.

Nov 4 2025, 7:08 AM · gnupg, Bug Report
gniibe created T7908: GnuPG Accepts Path Separators and Path Traversals in Literal Data "Filename" Field.
Nov 4 2025, 7:07 AM · gnupg, Bug Report
gniibe created T7907: Encrypted Message Malleability Checks are Incorrectly Enforced Causing Plaintext Recovery Attacks.
Nov 4 2025, 7:01 AM · Not A Bug, gnupg
gniibe added a comment to T7906: Memory Corruption in ASCII-Armor Parsing.

Fixed in rG115d138ba599: gpg: Fix possible memory corruption in the armor parser.

Nov 4 2025, 6:57 AM · gnupg, Bug Report
gniibe created T7906: Memory Corruption in ASCII-Armor Parsing.
Nov 4 2025, 6:56 AM · gnupg, Bug Report
gniibe created T7905: Radix64 Line-Truncation Enabling Polyglot Attacks.
Nov 4 2025, 6:50 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7904: GnuPG may downgrade digest algorithm to SHA1.

Fixed in rGdb9705ef594d: gpg: Avoid potential downgrade to SHA1 in 3rd party key signatures.

Nov 4 2025, 6:46 AM · gnupg, Bug Report
gniibe created T7904: GnuPG may downgrade digest algorithm to SHA1.
Nov 4 2025, 6:45 AM · gnupg, Bug Report
gniibe added a comment to T7903: Multiple Plaintext Attack on Detached PGP Signatures in GnuPG.

Fixed in rG8abc320f2a75: gpg: Error out on unverified output for non-detached signatures.

Nov 4 2025, 6:43 AM · Not A Bug, OpenPGP, gnupg
gniibe created T7903: Multiple Plaintext Attack on Detached PGP Signatures in GnuPG.
Nov 4 2025, 6:41 AM · Not A Bug, OpenPGP, gnupg
gniibe added a comment to T7901: Cleartext Signature Forgery in NotDashEscaped header implementation in GnuPG.

This feature should be only enabled with a compatibility flag.

Nov 4 2025, 6:28 AM · gnupg, Bug Report
gniibe added a comment to T7902: OpenPGP Cleartext Signature Framework.

Mitigation would be: adding context validation in add_onepass_sig function, which checks WHAT of armored input.

Nov 4 2025, 6:27 AM · Not A Bug, OpenPGP, FAQ, gnupg
gniibe created T7902: OpenPGP Cleartext Signature Framework.
Nov 4 2025, 6:25 AM · Not A Bug, OpenPGP, FAQ, gnupg
gniibe created T7901: Cleartext Signature Forgery in NotDashEscaped header implementation in GnuPG.
Nov 4 2025, 6:13 AM · gnupg, Bug Report
gniibe shifted T7900: Cleartext Signature Forgery in GnuPG from the S1 Public space to the Restricted Space space.
Nov 4 2025, 6:07 AM · Not A Bug, OpenBSD, gnupg
gniibe created T7900: Cleartext Signature Forgery in GnuPG.
Nov 4 2025, 6:07 AM · Not A Bug, OpenBSD, gnupg
gniibe changed the status of T7882: `rsa-sha2` signature values are improperly truncated from Open to Testing.

Pushed the revised change to master.

Nov 4 2025, 5:56 AM · ssh, gpgagent, Bug Report
gniibe committed rGc7e0ec12609b: agent:ssh: Fix RSA signature handling for newer spec. (authored by gniibe).
agent:ssh: Fix RSA signature handling for newer spec.
Nov 4 2025, 3:34 AM

Nov 3 2025

gniibe closed T7138: Windows (Semi-hosted environment): filename and network access, a subtask of T6508: Port GnuPG to 64-bit Windows, as Resolved.
Nov 3 2025, 3:41 AM · Windows 64, Feature Request, gnupg26
gniibe closed T7138: Windows (Semi-hosted environment): filename and network access as Resolved.

Fixed in 2.5.13.

Nov 3 2025, 3:41 AM · gnupg, Bug Report
gniibe added a comment to T7649: gnupg: Use KEM interface for encryption/decryption.

@onickolay The change was originally introduced for PQC stuff. And then, we applied use of KEM API (of libgcrypt) also for ordinary ECDH, so, it affected ordinary ECDH encryption (between 2.5.9 and 2.5.12).
The intention is follow the recommendation of use of KEM. IIUC, next FIPS certification will require use of KEM, possibly.

Nov 3 2025, 1:37 AM · gnupg26

Oct 30 2025

gniibe claimed T7882: `rsa-sha2` signature values are improperly truncated .

Thank you for your report.

Oct 30 2025, 6:18 AM · ssh, gpgagent, Bug Report
gniibe created T7894: libgcrypt, scute, gpgrt/argparse, gnupg/dirmngr: Hard-coded /etc.
Oct 30 2025, 3:06 AM · libgcrypt, scute, gpgrt, Bug Report
gniibe added a comment to T7889: libgcrypt: HAVE_BROKEN_MLOCK.

Note that:
If we consider backporting this to 1.10/1.11 branch, we also need to apply: rCdef1d4ea8f66: random:jent: Fix build with address sanitizer.

Oct 30 2025, 2:31 AM · backport, libgcrypt, Bug Report
gniibe added a comment to T7889: libgcrypt: HAVE_BROKEN_MLOCK.

@jukivili
Thanks for your feedback.

Oct 30 2025, 2:27 AM · backport, libgcrypt, Bug Report
gniibe updated the task description for T7889: libgcrypt: HAVE_BROKEN_MLOCK.
Oct 30 2025, 2:21 AM · backport, libgcrypt, Bug Report

Oct 29 2025

gniibe added a comment to T7889: libgcrypt: HAVE_BROKEN_MLOCK.

For the initial attempt, I push: rCfe06287003a1: secmem: Handle HAVE_BROKEN_MLOCK for the case with ASAN.
This is better than nothing.

Oct 29 2025, 7:48 AM · backport, libgcrypt, Bug Report
gniibe committed rCdef1d4ea8f66: random:jent: Fix build with address sanitizer. (authored by gniibe).
random:jent: Fix build with address sanitizer.
Oct 29 2025, 7:47 AM
gniibe committed rCfe06287003a1: secmem: Handle HAVE_BROKEN_MLOCK for the case with ASAN. (authored by gniibe).
secmem: Handle HAVE_BROKEN_MLOCK for the case with ASAN.
Oct 29 2025, 7:47 AM
gniibe claimed T7889: libgcrypt: HAVE_BROKEN_MLOCK.
Oct 29 2025, 7:36 AM · backport, libgcrypt, Bug Report
gniibe created T7889: libgcrypt: HAVE_BROKEN_MLOCK.
Oct 29 2025, 7:36 AM · backport, libgcrypt, Bug Report

Oct 23 2025

gniibe committed rC0ceca9993f5a: random:jent: Fix for jent_rng_is_initialized. (authored by gniibe).
random:jent: Fix for jent_rng_is_initialized.
Oct 23 2025, 10:05 AM

Oct 22 2025

gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

Still, there is a fundamental problem with keydb locking.

  • It only assures no-data-corruption.
  • When a process doing write access, another process reading the resource may encounter a problem (inconsistent data read), since data could be changed while accessing.
    • Currently, write access may occur with keybox compress, this means that users are not safe to invoke multiple gpg/gpgsm simultaneously (to be sure).
      • It would be: only keybox compress when users explicitly ask.
    • We could introduce a lock to read access... BUT naively adding a lock (both for read and write or read-multiple-write-one) results possible deadlock in gpgsm
      • in gpgsm, gpgsm_walk_cert_chain and gpgsm_validate_chain access the resource of keydb in a way of:
        • While it has a handle kh, by find_up routine, it may call keydb_store_cert by callback routine; The callback does write access to the resource opening another handle.
        • Currently, it works because of no lock for read access and keydb_store_cert appends data at the end.
Oct 22 2025, 9:20 AM · gpd5x (gpd-5.0.0), gnupg26
gniibe committed rG0d887e6bea46: po: Update Japanese Translation. (authored by gniibe).
po: Update Japanese Translation.
Oct 22 2025, 5:00 AM
gniibe committed rG4a2dda2002c4: kbx,gpg,gpgsm: Add FP-close method for keydb to close before unlock. (authored by gniibe).
kbx,gpg,gpgsm: Add FP-close method for keydb to close before unlock.
Oct 22 2025, 5:00 AM
gniibe committed rG3db6f9f080bc: gpgsm: Fix delete and store certificate locking glitches. (authored by gniibe).
gpgsm: Fix delete and store certificate locking glitches.
Oct 22 2025, 4:38 AM
gniibe committed rG2d9e1295a1f4: gpg,gpgsm: Serialize write access to keybox/keyring to protect. (authored by gniibe).
gpg,gpgsm: Serialize write access to keybox/keyring to protect.
Oct 22 2025, 4:38 AM
gniibe committed rGef42a1e218ce: gpg,gpgsm: No more internal-lock when KEEP_LOCK is enabled. (authored by gniibe).
gpg,gpgsm: No more internal-lock when KEEP_LOCK is enabled.
Oct 22 2025, 4:38 AM
gniibe committed rGa0beed35d6c6: kbx,gpg,gpgsm: Introduce keybox_compress_when_no_other_users. (authored by gniibe).
kbx,gpg,gpgsm: Introduce keybox_compress_when_no_other_users.
Oct 22 2025, 4:38 AM
gniibe changed the status of T7855: keybox/keydb locking issue in 2.6 , a subtask of T2196: keydb locking can result in deadlock in 2.2, from Open to Testing.
Oct 22 2025, 4:38 AM · gnupg22 (gnupg-2.2.52), Bug Report
gniibe changed the status of T7855: keybox/keydb locking issue in 2.6 , a subtask of T7827: Kleopatra: Add workaround for locking issue on key generation, from Open to Testing.
Oct 22 2025, 4:38 AM · gpd5x (gpd-5.0.0), vsd33 (vsd-3.3.3), vsd34, kleopatra
gniibe changed the status of T7855: keybox/keydb locking issue in 2.6 from Open to Testing.

All changes in gniibe/t7855 are pushed into master.

Oct 22 2025, 4:38 AM · gpd5x (gpd-5.0.0), gnupg26

Oct 21 2025

gniibe changed the status of T7829: w32: daemon (gpg-agent/keyboxd/dirmngr) startup and connection race when there is a socket file already, a subtask of T7658: Okular: Dirmngr startup timeout on signature validation, from Open to Testing.
Oct 21 2025, 9:18 AM · gpd5x (gpd-5.0.0), Bug Report, okular
gniibe changed the status of T7829: w32: daemon (gpg-agent/keyboxd/dirmngr) startup and connection race when there is a socket file already from Open to Testing.

Fixed in master: rGae431b04370f: w32:common: Take care of possible race on startup under Windows.

Oct 21 2025, 9:18 AM · gpd5x (gpd-5.0.0), gnupg22 (gnupg-2.2.52), Bug Report, okular
gniibe changed the status of T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs from Open to Testing.

This issue should be fixed in 2.6, too.

Oct 21 2025, 7:14 AM · gnupg, vsd, kleopatra
gniibe committed rG4050139d46fb: gpg: Minor clean up for keydb_lock API. (authored by gniibe).
gpg: Minor clean up for keydb_lock API.
Oct 21 2025, 7:14 AM
gniibe committed rG9fd630fb23b7: common,w32: Always use share mode readwrite for the keybox. (authored by werner).
common,w32: Always use share mode readwrite for the keybox.
Oct 21 2025, 7:14 AM
gniibe committed rG39cc15029017: build,common,g13,sm,tools: Require GpgRT 1.56. (authored by gniibe).
build,common,g13,sm,tools: Require GpgRT 1.56.
Oct 21 2025, 7:14 AM
gniibe committed rG8a5d2674c3be: common: New function gnupg_remove_ext. (authored by werner).
common: New function gnupg_remove_ext.
Oct 21 2025, 7:14 AM
gniibe changed the status of T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs, a subtask of T7855: keybox/keydb locking issue in 2.6 , from Open to Testing.
Oct 21 2025, 6:50 AM · gpd5x (gpd-5.0.0), gnupg26
gniibe changed the status of T7138: Windows (Semi-hosted environment): filename and network access, a subtask of T6508: Port GnuPG to 64-bit Windows, from Open to Testing.
Oct 21 2025, 4:57 AM · Windows 64, Feature Request, gnupg26
gniibe changed the status of T7138: Windows (Semi-hosted environment): filename and network access from Open to Testing.
Oct 21 2025, 4:57 AM · gnupg, Bug Report
gniibe committed rG61ff3759e827: common,dirmngr:w32: Fix for semi-hosted environment. (authored by gniibe).
common,dirmngr:w32: Fix for semi-hosted environment.
Oct 21 2025, 4:57 AM
gniibe added a comment to T7138: Windows (Semi-hosted environment): filename and network access.

Pushed the change to gnupg master: rG61ff3759e827: common,dirmngr:w32: Fix for semi-hosted environment.

Oct 21 2025, 4:56 AM · gnupg, Bug Report
gniibe claimed T7138: Windows (Semi-hosted environment): filename and network access.

In libgpg-error, I pushed thread-safe version : rE0313b660f8bd: w32: Don't convert slash->backslash when it's under Wine.
I'm going to push similar code to gnupg master.

Oct 21 2025, 3:26 AM · gnupg, Bug Report

Oct 17 2025

gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

Lastly, pushed a change into gniibe/t7855 branch.
rGf861b2a33f96: gpg,gpgsm: Fix thinko for FP closing under no lock.

Oct 17 2025, 9:01 AM · gpd5x (gpd-5.0.0), gnupg26
gniibe committed rG89f653784031: tests:w32: Fix the add-recipeint test for Windows. (authored by gniibe).
tests:w32: Fix the add-recipeint test for Windows.
Oct 17 2025, 4:31 AM

Oct 16 2025

gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

I pushed further changes into gniibe/t7855 branch.
rG2fe62809014e: gpg,gpgsm: Serialize write access to keybox/keyring to protect.

Oct 16 2025, 9:30 AM · gpd5x (gpd-5.0.0), gnupg26

Oct 15 2025

gniibe triaged T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs as High priority.
Oct 15 2025, 9:37 AM · gnupg, vsd, kleopatra
gniibe added a subtask for T7855: keybox/keydb locking issue in 2.6 : T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs.
Oct 15 2025, 9:36 AM · gpd5x (gpd-5.0.0), gnupg26
gniibe added a parent task for T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs: T7855: keybox/keydb locking issue in 2.6 .
Oct 15 2025, 9:36 AM · gnupg, vsd, kleopatra
gniibe added a comment to T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs.

I'm fixing this issue under T7855. So, I move this ticket as a child of T7855.

Oct 15 2025, 9:36 AM · gnupg, vsd, kleopatra
gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

For remaining changes in 2.2, I pushed changes into gniibe/t7855 branch.
rGbd65b06b74c2: gpg,gpgsm: Don't lock recursively when KEEP_LOCK is enabled.
rG423fd047da87: kbx,gpg,gpgsm: Add FP-close method for keydb to close before unlock.
rG966258ac5f99: gpgsm: Fix delete and store certificate locking glitches.

Oct 15 2025, 8:10 AM · gpd5x (gpd-5.0.0), gnupg26
gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

I pushed changes into gniibe/t7855 for compressing the keybox.
rG8cc2a0e0ffee: gpg: Minor clean up for keydb_lock API.
rGe4d3c3aa2220: kbx,gpg,gpgsm: Introduce keybox_compress_when_no_other_users.
rG3e441d5b299f: kbx,gpg,gpgsm: More changes for compressing the keybox.

Oct 15 2025, 2:37 AM · gpd5x (gpd-5.0.0), gnupg26