public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/proftpd] f44: Fix regression in the handling of private keys
@ 2026-10-28 14:16 Paul Howarth
  0 siblings, 0 replies; only message in thread
From: Paul Howarth @ 2026-10-28 14:16 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/proftpd
            Branch : f44
            Commit : 06fe2446f617801b1710a991d7e484d576c2ad0b
            Author : Paul Howarth <paul@city-fan.org>
            Date   : 2026-10-28T13:48:30+00:00
            Stats  : +40/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/proftpd/c/06fe2446f617801b1710a991d7e484d576c2ad0b?branch=f44

            Log:
            Fix regression in the handling of private keys

Fix regression in the handling of private keys formatted using the
OpenSSH-specific private key format, and which are not passphrase-protected.

https://github.com/proftpd/proftpd/issues/2411

---
diff --git a/933abc9a.patch b/933abc9a.patch
new file mode 100644
index 0000000..2b045dd
--- /dev/null
+++ b/933abc9a.patch
@@ -0,0 +1,28 @@
+From 933abc9ae115ffc59e4b2a98495ec267bf341d23 Mon Sep 17 00:00:00 2001
+From: TJ Saunders <tj@castaglia.org>
+Date: Tue, 27 Oct 2026 12:56:31 -0700
+Subject: [PATCH] Issue #2411: Fix regression in the handling of private keys
+ formatted using the OpenSSH-specific private key format, and which are not
+ passphrase-protected.
+
+---
+ contrib/mod_sftp/keys.c | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/contrib/mod_sftp/keys.c b/contrib/mod_sftp/keys.c
+index 5e848a84d..af842926b 100644
+--- a/contrib/mod_sftp/keys.c
++++ b/contrib/mod_sftp/keys.c
+@@ -3093,8 +3093,10 @@ static int decrypt_openssh_data(pool *p, const char *path,
+   uint32_t buflen, key_len, rounds, salt_len;
+   size_t passphrase_len;
+ 
+-  if (encrypted_data == NULL ||
+-      kdf_data == NULL) {
++  /* Note: kdf_data CAN legitimately be NULL here, as for keys which
++   * are not passphrase-encrypted (Issue #2411).
++   */
++  if (encrypted_data == NULL) {
+     pr_trace_msg(trace_channel, 3,
+       "'%s' key is missing required data", path);
+     errno = EINVAL;

diff --git a/proftpd.spec b/proftpd.spec
index 62a4626..32eddc3 100644
--- a/proftpd.spec
+++ b/proftpd.spec
@@ -17,7 +17,7 @@
 %undefine _strict_symbol_defs_build
 
 #global prever rc4
-%global baserelease 1
+%global baserelease 2
 %global mod_procfs_version 0.3
 %global mod_proxy_version 0.9.7
 %global mod_vroot_version 0.9.12
@@ -45,6 +45,7 @@ Source12:		http://github.com/Castaglia/proftpd-mod_procfs/archive/v%{mod_procfs_
 Patch1:			proftpd-1.3.8-shellbang.patch
 Patch2:			mod_proxy-certificate.patch
 Patch3:			proftpd-1.3.4rc1-mod_vroot-test.patch
+Patch6:			https://github.com/proftpd/proftpd/commit/933abc9a.patch
 
 BuildRequires:		coreutils
 BuildRequires:		gcc
@@ -229,6 +230,11 @@ mv contrib/README contrib/README.contrib
 # If we're running the full test suite, include the mod_vroot test
 %patch -P 3 -p1 -b .test_vroot
 
+# Fix regression in the handling of private keys formatted using the OpenSSH-specific
+# private key format, and which are not passphrase-protected
+# https://github.com/proftpd/proftpd/issues/2411
+%patch -P6 -p1 -b .gh2411
+
 # Tweak logrotate script for systemd compatibility (#802178)
 sed -i -e '/killall/s/test.*/systemctl try-reload-or-restart proftpd.service/' \
 	contrib/dist/rpm/proftpd.logrotate
@@ -468,6 +474,11 @@ fi
 %{_mandir}/man1/ftpwho.1*
 
 %changelog
+* Wed Oct 28 2026 Paul Howarth <paul@city-fan.org> - 1.3.9e-2
+- Fix regression in the handling of private keys formatted using the
+  OpenSSH-specific private key format, and which are not passphrase-protected
+  (GH#2411)
+
 * Tue Oct 27 2026 Paul Howarth <paul@city-fan.org> - 1.3.9e-1
 - Update to 1.3.9e
   - Insufficient validation of FTP RANG, REST parameters could lead to use of

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

only message in thread, other threads:[~2026-10-28 14:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 14:16 [rpms/proftpd] f44: Fix regression in the handling of private keys Paul Howarth

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