public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gpgme] f44: fix CVE-2026-129975: double free in read_status() via crafted signature
@ 2026-11-24 10:42 Michal Hlavinka
0 siblings, 0 replies; only message in thread
From: Michal Hlavinka @ 2026-11-24 10:42 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-24 10:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 10:42 [rpms/gpgme] f44: 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