Version in base suite: 1.24.2-3 Base version: gpgme1.0_1.24.2-3 Target version: gpgme1.0_1.24.2-3+deb13u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/g/gpgme1.0/gpgme1.0_1.24.2-3.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/g/gpgme1.0/gpgme1.0_1.24.2-3+deb13u1.dsc changelog | 7 + patches/Fix-a-double-free-in-the-status-line-read-code.patch | 63 +++++++++++ patches/series | 1 3 files changed, 71 insertions(+) dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpgsbuq1i3/gpgme1.0_1.24.2-3.dsc: no acceptable signature found dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpgsbuq1i3/gpgme1.0_1.24.2-3+deb13u1.dsc: no acceptable signature found diff -Nru gpgme1.0-1.24.2/debian/changelog gpgme1.0-1.24.2/debian/changelog --- gpgme1.0-1.24.2/debian/changelog 2025-05-07 15:49:48.000000000 +0000 +++ gpgme1.0-1.24.2/debian/changelog 2026-11-19 20:58:57.000000000 +0000 @@ -1,3 +1,10 @@ +gpgme1.0 (1.24.2-3+deb13u1) trixie-security; urgency=high + + * Non-maintainer upload by the Security Team. + * Fix a double free in the status line read code (CVE-2026-129975) + + -- Salvatore Bonaccorso Thu, 19 Nov 2026 21:58:57 +0100 + gpgme1.0 (1.24.2-3) unstable; urgency=medium * Fix hanging state machine. diff -Nru gpgme1.0-1.24.2/debian/patches/Fix-a-double-free-in-the-status-line-read-code.patch gpgme1.0-1.24.2/debian/patches/Fix-a-double-free-in-the-status-line-read-code.patch --- gpgme1.0-1.24.2/debian/patches/Fix-a-double-free-in-the-status-line-read-code.patch 1970-01-01 00:00:00.000000000 +0000 +++ gpgme1.0-1.24.2/debian/patches/Fix-a-double-free-in-the-status-line-read-code.patch 2026-11-19 20:57:50.000000000 +0000 @@ -0,0 +1,63 @@ +From 14499348b966cd7b3d72afee15a5cd51cdd0a727 Mon Sep 17 00:00:00 2001 +From: Werner Koch +Date: Sat, 14 Nov 2026 13:43:00 +0100 +Subject: [PATCH] Fix a double free in the status line read code. + +* src/engine-gpg.c (read_status): Immediately assign the realloced +buffer to the context and not just at the end. +(read_colon_line): Ditto. +-- + +This fixes a 24 years old bug introduced with +Fixes-commit: f12433c1e476f52c92496a885c1ffcd10fa2a322 +GnuPG-bug-id: T8557 +Reported-by: Johan Carlsson (https://hackerone.com/joaxcar?type=user) +--- + src/engine-gpg.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +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; + } +-- +2.47.3 + diff -Nru gpgme1.0-1.24.2/debian/patches/series gpgme1.0-1.24.2/debian/patches/series --- gpgme1.0-1.24.2/debian/patches/series 2025-05-07 15:46:06.000000000 +0000 +++ gpgme1.0-1.24.2/debian/patches/series 2026-11-19 20:57:55.000000000 +0000 @@ -9,3 +9,4 @@ 30-0002-cpp-Validate-the-transition-map.patch 30-0003-cpp-Add-missing-transition-remove-two-ignored-and-wr.patch 31-cpp-Ensure-correct-expiration-time-on-32-bit-arch-wi.patch +Fix-a-double-free-in-the-status-line-read-code.patch