Requesting backport of read_key_file memory leak fix to 2.4

Sorah Fukumori her at sorah.jp
Sun Nov 9 15:24:04 CET 2025


Hello,

Can the commit 137481fa1002c417cd2c0661b9eefd893b0149d3 have a review
for backport to the stable branch (STABLE-BRANCH-2-4)?
This bug can be reproduced on 2.4.8, and I'd like to get it fixed on
2.4 before it reaches EOL.

# I am unsure of a formalized way to request backports, pardon me if
I'm doing it wrong.

Thanks,
Sorah

---------- Forwarded message ---------
From: NIIBE Yutaka <gniibe at fsij.org>
Date: Tue, 14 Jan 2025 at 11:07
Subject: Re: [PATCH gnupg] agent: Fix a memory leak
To: Sorah Fukumori <her at sorah.jp>, <gnupg-devel at gnupg.org>


Hello,

Sorah Fukumori wrote:
> * agent/findkey.c (read_key_file): Free the buffer,
>   which were forgotten to be freed at commit 434a641d40c on T6944.
>   Otherwise the 'keyinfo --list' agent command gradually leads to
>   memory exhaustion.

Thank you, good catch.  I applied it to master, in the commit:

        137481fa1002c417cd2c0661b9eefd893b0149d3
--


-- 
Sorah Fukumori https://sorah.jp/



More information about the Gnupg-devel mailing list