public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openssh] f44: Backport 2 medium CVE fixes
@ 2026-10-22 10:53 Dmitry Belyavskiy
0 siblings, 0 replies; only message in thread
From: Dmitry Belyavskiy @ 2026-10-22 10:53 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/openssh
Branch : f44
Commit : 0c7c4ba26cb734ed30e51094a9fb94d6700cdd78
Author : Dmitry Belyavskiy <dbelyavs@redhat.com>
Date : 2026-10-22T12:53:00+02:00
Stats : +57/-1 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/openssh/c/0c7c4ba26cb734ed30e51094a9fb94d6700cdd78?branch=f44
Log:
Backport 2 medium CVE fixes
Fix CVE-2026-106585: Denial of service via oversized decompressed packets
Fix CVE-2026-106552: Arbitrary file write via directory traversal during sftp recursive copy
---
diff --git a/0065-openssh-10.6p1-CVE-2026-106585.patch b/0065-openssh-10.6p1-CVE-2026-106585.patch
new file mode 100644
index 0000000..1805395
--- /dev/null
+++ b/0065-openssh-10.6p1-CVE-2026-106585.patch
@@ -0,0 +1,13 @@
+diff --git a/packet.c b/packet.c
+index 38a8c31bdc1f..d63c579de1f2 100644
+--- a/packet.c
++++ b/packet.c
+@@ -913,6 +913,8 @@ uncompress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out)
+ if ((r = sshbuf_put(out, buf, sizeof(buf) -
+ ssh->state->compression_in_stream.avail_out)) != 0)
+ return r;
++ if (sshbuf_len(out) >= PACKET_MAX_SIZE)
++ return SSH_ERR_INVALID_FORMAT;
+ break;
+ case Z_BUF_ERROR:
+ /*
diff --git a/0066-openssh-10.6p1-CVE-2026-106552.patch b/0066-openssh-10.6p1-CVE-2026-106552.patch
new file mode 100644
index 0000000..e458c63
--- /dev/null
+++ b/0066-openssh-10.6p1-CVE-2026-106552.patch
@@ -0,0 +1,35 @@
+diff --git a/sftp-client.c b/sftp-client.c
+index e001b53daffd..791b37c6d854 100644
+--- a/sftp-client.c
++++ b/sftp-client.c
+@@ -791,7 +791,8 @@ sftp_lsreaddir(struct sftp_conn *conn, const char *path, int print_flag,
+ * These can be used to attack recursive ops
+ * (e.g. send '../../../../etc/passwd')
+ */
+- if (strpbrk(filename, SFTP_DIRECTORY_CHARS) != NULL) {
++ if (*filename == '\0' ||
++ strpbrk(filename, SFTP_DIRECTORY_CHARS) != NULL) {
+ error("Server sent suspect path \"%s\" "
+ "during readdir of \"%s\"", filename, path);
+ } else if (dir) {
+diff --git a/sftp.c b/sftp.c
+index 831e16d5e49c..ecbaefd61180 100644
+--- a/sftp.c
++++ b/sftp.c
+@@ -699,6 +699,16 @@ process_get(struct sftp_conn *conn, const char *src, const char *dst,
+ goto out;
+ }
+
++ /*
++ * Special handling for destinations of '..' and remote roots.
++ * In particular, never select the local root as an implicit
++ * destination for a remote root.
++ */
++ if (strcmp(filename, "..") == 0 ||
++ (filename[0] != '\0' &&
++ filename[strspn(filename, "/")] == '\0'))
++ filename = ".";
++
+ if (g.gl_matchc == 1 && dst) {
+ if (local_is_dir(dst)) {
+ abs_dst = sftp_path_append(dst, filename);
diff --git a/openssh.spec b/openssh.spec
index 8a08d3e..f3326b4 100644
--- a/openssh.spec
+++ b/openssh.spec
@@ -43,7 +43,7 @@
Summary: An open source implementation of SSH protocol version 2
Name: openssh
Version: %{openssh_ver}
-Release: 15%{?dist}
+Release: 16%{?dist}
URL: http://www.openssh.com/portable.html
Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
Source1: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz.asc
@@ -198,6 +198,10 @@ Patch0062: 0062-openssh-10.4p1-CVE-2026-59995.patch
Patch0063: 0063-openssh-10.4p1-CVE-2026-59999.patch
# upstream 9910d5ef53124ce1157d57bc11e222658aa41299
Patch0064: 0064-openssh-10.5p1-CVE-2026-73282.patch
+# upstream e0f85d8
+Patch0065: 0065-openssh-10.6p1-CVE-2026-106585.patch
+# upstream c07ea21
+Patch0066: 0066-openssh-10.6p1-CVE-2026-106552.patch
#https://bugzilla.mindrot.org/show_bug.cgi?id=2581
Patch1000: 1000-openssh-6.7p1-coverity.patch
@@ -601,6 +605,10 @@ test -f %{sysconfig_anaconda} && \
%attr(0755,root,root) %{_libdir}/sshtest/sk-dummy.so
%changelog
+* Thu Oct 22 2026 Dmitry Belyavskiy <dbelyavs@redhat.com> - 10.2p1-16
+- Fix CVE-2026-106585: Denial of service via oversized decompressed packets
+ Fix CVE-2026-106552: Arbitrary file write via directory traversal during sftp recursive copy
+
* Thu Sep 24 2026 Dmitry Belyavskiy <dbelyavs@redhat.com> - 10.2p1-15
- Make PKCS#11 URI tests passing in GNOME environment
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-22 10:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22 10:53 [rpms/openssh] f44: Backport 2 medium CVE fixes Dmitry Belyavskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox