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] f43: fix CVE-2026-129975: double free in read_status() via crafted signature
Date: Tue, 24 Nov 2026 12:54:59 GMT [thread overview]
Message-ID: <179552489963.1.11184785759972453385.rpms-gpgme-d784afe57595@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-24 12:54 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=179552489963.1.11184785759972453385.rpms-gpgme-d784afe57595@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