public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Hlavinka <mhlavink@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gpgme] f44: fix CVE-2026-129975: double free in read_status() via crafted signature
Date: Tue, 24 Nov 2026 10:42:35 GMT	[thread overview]
Message-ID: <179551695593.1.13821682930713646330.rpms-gpgme-c6a5b605c0b4@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gpgme
Branch : f44
Commit : c6a5b605c0b47a0711f5f252647289a833e912ad
Author : Michal Hlavinka <mhlavink@redhat.com>
Date   : 2026-11-24T11:42:19+01:00
Stats  : +49/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/gpgme/c/c6a5b605c0b47a0711f5f252647289a833e912ad?branch=f44

Log:
fix CVE-2026-129975: double free in read_status() via crafted signature

---
diff --git a/gpgme-2.0.1-14499348.patch b/gpgme-2.0.1-14499348.patch
new file mode 100644
index 0000000..337a75f
--- /dev/null
+++ b/gpgme-2.0.1-14499348.patch
@@ -0,0 +1,42 @@
+diff --git a/src/engine-gpg.c b/src/engine-gpg.c
+index eea97bc7..66e567b0 100644
+--- a/src/engine-gpg.c
++++ b/src/engine-gpg.c
+@@ -1494,7 +1494,9 @@ read_status (engine_gpg_t gpg)
+       buffer = realloc (buffer, bufsize);
+       if (!buffer)
+ 	return gpg_error_from_syserror ();
+-    }
++      gpg->status.bufsize = bufsize;
++      gpg->status.buffer = buffer;
++   }
+ 
+   nread = _gpgme_io_read (gpg->status.fd[0],
+ 			  buffer + readpos, bufsize-readpos);
+@@ -1606,8 +1608,6 @@ read_status (engine_gpg_t gpg)
+     }
+ 
+   /* Update the gpg object.  */
+-  gpg->status.bufsize = bufsize;
+-  gpg->status.buffer = buffer;
+   gpg->status.readpos = readpos;
+   return 0;
+ }
+@@ -1647,6 +1647,8 @@ read_colon_line (engine_gpg_t gpg)
+       buffer = realloc (buffer, bufsize);
+       if (!buffer)
+ 	return gpg_error_from_syserror ();
++      gpg->colon.bufsize = bufsize;
++      gpg->colon.buffer  = buffer;
+     }
+ 
+   nread = _gpgme_io_read (gpg->colon.fd[0], buffer+readpos, bufsize-readpos);
+@@ -1726,8 +1728,6 @@ read_colon_line (engine_gpg_t gpg)
+     }
+ 
+   /* Update the gpg object.  */
+-  gpg->colon.bufsize = bufsize;
+-  gpg->colon.buffer  = buffer;
+   gpg->colon.readpos = readpos;
+   return 0;
+ }

diff --git a/gpgme.spec b/gpgme.spec
index 4d6b1c3..6454931 100644
--- a/gpgme.spec
+++ b/gpgme.spec
@@ -13,7 +13,7 @@ Name:           gpgme
 Summary:        GnuPG Made Easy - high level crypto API
 Version:        2.0.1
 %global spversion 2.0.0
-Release:        5%{?dist}
+Release:        6%{?dist}
 
 # MIT: src/cJSON.{c,h} (used by gpgme-json)
 License:        LGPL-2.1-or-later AND MIT
@@ -47,6 +47,9 @@ Patch3002:      gpgme-2.0.1-soname2.patch
 # for qgpgme <= 2.0.0, rhbz#2464335
 # https://github.com/gpg/gpgmeqt/commit/150b23c105f3ea7034e6f106e60686aea4e4a13e
 Patch3003:      qgpgme-2.0-fixdnparsing.patch
+# for gpgme < 2.3.0, rhbz#2581988
+# https://github.com/gpg/gpgme/commit/14499348b966cd7b3d72afee15a5cd51cdd0a727.diff
+Patch3004:      gpgme-2.0.1-14499348.patch
 
 BuildRequires:  make
 BuildRequires:  cmake
@@ -425,6 +428,9 @@ popd
 %{python3_sitearch}/gpg/
 
 %changelog
+* Tue Nov 24 2026 Michal Hlavinka <mhlavink@redhat.com> - 2.0.1-6
+- fix CVE-2026-129975: double free in read_status() via crafted signature
+
 * Sat Jun 20 2026 Neal Gompa <ngompa@fedoraproject.org> - 2.0.1-5
 - Obsolete compatibility package from older Fedora/EPEL
 

                 reply	other threads:[~2026-11-24 10:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179551695593.1.13821682930713646330.rpms-gpgme-c6a5b605c0b4@fedoraproject.org \
    --to=mhlavink@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox