summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2025-03-12 19:37:52 +0100
committerSteve Sakoman <steve@sakoman.com>2025-03-22 07:06:30 -0700
commit2b1149f032cc405c9d91c168d7eb9d0b3d896794 (patch)
treef27fba957bee5625530339acd6b51d13931d4367 /meta
parent9ddadbdeb45f335f3be01b7b33ab4e0ecfef97b6 (diff)
downloadpoky-2b1149f032cc405c9d91c168d7eb9d0b3d896794.tar.gz
openssh: patch CVE-2025-26466
Pick commit: https://github.com/openssh/openssh-portable/commit/6ce00f0c2ecbb9f75023dbe627ee6460bcec78c2 (From OE-Core rev: ec3912dcaaab85f1ac8907aa5b0b536c32540ff1) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-connectivity/openssh/openssh/CVE-2025-26466.patch36
-rw-r--r--meta/recipes-connectivity/openssh/openssh_9.8p1.bb1
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2025-26466.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2025-26466.patch
new file mode 100644
index 0000000000..1c81515638
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/CVE-2025-26466.patch
@@ -0,0 +1,36 @@
1From 6ce00f0c2ecbb9f75023dbe627ee6460bcec78c2 Mon Sep 17 00:00:00 2001
2From: "djm@openbsd.org" <djm@openbsd.org>
3Date: Tue, 18 Feb 2025 08:02:12 +0000
4Subject: [PATCH 1/2] upstream: Don't reply to PING in preauth phase or during
5 KEX
6
7Reported by the Qualys Security Advisory team. ok markus@
8
9OpenBSD-Commit-ID: c656ac4abd1504389d1733d85152044b15830217
10
11CVE: CVE-2025-26466
12Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/6ce00f0c2ecbb9f75023dbe627ee6460bcec78c2]
13Signed-off-by: Peter Marko <peter.marko@siemens.com>
14---
15 packet.c | 8 ++++++++
16 1 file changed, 8 insertions(+)
17
18diff --git a/packet.c b/packet.c
19index 486f85157..9dea2cfc5 100644
20--- a/packet.c
21+++ b/packet.c
22@@ -1865,6 +1865,14 @@ ssh_packet_read_poll_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p)
23 if ((r = sshpkt_get_string_direct(ssh, &d, &len)) != 0)
24 return r;
25 DBG(debug("Received SSH2_MSG_PING len %zu", len));
26+ if (!ssh->state->after_authentication) {
27+ DBG(debug("Won't reply to PING in preauth"));
28+ break;
29+ }
30+ if (ssh_packet_is_rekeying(ssh)) {
31+ DBG(debug("Won't reply to PING during KEX"));
32+ break;
33+ }
34 if ((r = sshpkt_start(ssh, SSH2_MSG_PONG)) != 0 ||
35 (r = sshpkt_put_string(ssh, d, len)) != 0 ||
36 (r = sshpkt_send(ssh)) != 0)
diff --git a/meta/recipes-connectivity/openssh/openssh_9.8p1.bb b/meta/recipes-connectivity/openssh/openssh_9.8p1.bb
index 83145dbd18..3d6cb9f245 100644
--- a/meta/recipes-connectivity/openssh/openssh_9.8p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_9.8p1.bb
@@ -26,6 +26,7 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar
26 file://0001-Cast-to-sockaddr-in-systemd-interface.patch \ 26 file://0001-Cast-to-sockaddr-in-systemd-interface.patch \
27 file://0001-regress-banner.sh-log-input-and-output-files-on-erro.patch \ 27 file://0001-regress-banner.sh-log-input-and-output-files-on-erro.patch \
28 file://0001-regress-test-exec-use-the-absolute-path-in-the-SSH-e.patch \ 28 file://0001-regress-test-exec-use-the-absolute-path-in-the-SSH-e.patch \
29 file://CVE-2025-26466.patch \
29 " 30 "
30SRC_URI[sha256sum] = "dd8bd002a379b5d499dfb050dd1fa9af8029e80461f4bb6c523c49973f5a39f3" 31SRC_URI[sha256sum] = "dd8bd002a379b5d499dfb050dd1fa9af8029e80461f4bb6c523c49973f5a39f3"
31 32