public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gpgme] f43: fix CVE-2026-129975: double free in read_status() via crafted signature
@ 2026-11-24 12:54 Michal Hlavinka
  0 siblings, 0 replies; only message in thread
From: Michal Hlavinka @ 2026-11-24 12:54 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/gpgme
Branch : f43
Commit : d784afe57595589ea9e9d926b2ce1fec273ae132
Author : Michal Hlavinka <mhlavink@redhat.com>
Date   : 2026-11-24T13:52:56+01:00
Stats  : +48/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/gpgme/c/d784afe57595589ea9e9d926b2ce1fec273ae132?branch=f43

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

---
diff --git a/gpgme-2.3-14499348.patch b/gpgme-2.3-14499348.patch
new file mode 100644
index 0000000..337a75f
--- /dev/null
+++ b/gpgme-2.3-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 911e2dd..0839b33 100644
--- a/gpgme.spec
+++ b/gpgme.spec
@@ -12,7 +12,7 @@
 Name:           gpgme
 Summary:        GnuPG Made Easy - high level crypto API
 Version:        1.24.3
-Release:        6%{?dist}
+Release:        7%{?dist}
 
 # MIT: src/cJSON.{c,h} (used by gpgme-json)
 License:        LGPL-2.1-or-later AND MIT
@@ -33,7 +33,8 @@ Patch1004:      0002-setup_py_extra_opts.patch
 ## temporary downstream fixes
 # Skip lang/qt/tests/t-remarks on gnupg 2.4+
 Patch3001:      1001-qt-skip-test-remarks-for-gnupg2-2.4.patch
-
+# CVE-2026-129975, for < 2.3, rhbz#2581988
+Patch3002:      gpgme-2.3-14499348.patch
 
 BuildRequires:  make
 BuildRequires:  cmake
@@ -329,6 +330,9 @@ popd
 %{python3_sitearch}/gpg/
 
 %changelog
+* Tue Nov 24 2026 Michal Hlavinka <mhlavink@redhat.com> - 1.24.3-7
+- fix CVE-2026-129975: double free in read_status() via crafted signature
+
 * Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 1.24.3-6
 - Rebuilt for Python 3.14.0rc3 bytecode
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-24 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 12:54 [rpms/gpgme] f43: fix CVE-2026-129975: double free in read_status() via crafted signature Michal Hlavinka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox