summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Anusuri <vanusuri@mvista.com>2025-04-12 13:30:38 +0530
committerSteve Sakoman <steve@sakoman.com>2025-05-27 09:38:57 -0700
commitac204a6bf9af67f648f9a7b7be3c19cba3dde621 (patch)
treef816043c0db461d958a56699d5f2b49ab808cf34
parentfa7dd6d5dacdd71bf9c5bb64e7ac63c44a8c175c (diff)
downloadpoky-ac204a6bf9af67f648f9a7b7be3c19cba3dde621.tar.gz
openssh: Fix for CVE-2025-32728
Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/fc86875e6acb36401dfc1dfb6b628a9d1460f367] (From OE-Core rev: 6565ae2b01d6eb1e3a83ed387a5e3b765f85b8cf) Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-connectivity/openssh/openssh/CVE-2025-32728.patch44
-rw-r--r--meta/recipes-connectivity/openssh/openssh_9.6p1.bb1
2 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2025-32728.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2025-32728.patch
new file mode 100644
index 0000000000..72fc0073e8
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/CVE-2025-32728.patch
@@ -0,0 +1,44 @@
1From fc86875e6acb36401dfc1dfb6b628a9d1460f367 Mon Sep 17 00:00:00 2001
2From: "djm@openbsd.org" <djm@openbsd.org>
3Date: Wed, 9 Apr 2025 07:00:03 +0000
4Subject: [PATCH] upstream: Fix logic error in DisableForwarding option. This
5 option
6
7was documented as disabling X11 and agent forwarding but it failed to do so.
8Spotted by Tim Rice.
9
10OpenBSD-Commit-ID: fffc89195968f7eedd2fc57f0b1f1ef3193f5ed1
11
12Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/fc86875e6acb36401dfc1dfb6b628a9d1460f367]
13CVE: CVE-2025-32728
14Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
15---
16 session.c | 5 +++--
17 1 file changed, 3 insertions(+), 2 deletions(-)
18
19diff --git a/session.c b/session.c
20index aa342e8..eb932b8 100644
21--- a/session.c
22+++ b/session.c
23@@ -2191,7 +2191,8 @@ session_auth_agent_req(struct ssh *ssh, Session *s)
24 if ((r = sshpkt_get_end(ssh)) != 0)
25 sshpkt_fatal(ssh, r, "%s: parse packet", __func__);
26 if (!auth_opts->permit_agent_forwarding_flag ||
27- !options.allow_agent_forwarding) {
28+ !options.allow_agent_forwarding ||
29+ options.disable_forwarding) {
30 debug_f("agent forwarding disabled");
31 return 0;
32 }
33@@ -2586,7 +2587,7 @@ session_setup_x11fwd(struct ssh *ssh, Session *s)
34 ssh_packet_send_debug(ssh, "X11 forwarding disabled by key options.");
35 return 0;
36 }
37- if (!options.x11_forwarding) {
38+ if (!options.x11_forwarding || options.disable_forwarding) {
39 debug("X11 forwarding disabled in server configuration file.");
40 return 0;
41 }
42--
432.25.1
44
diff --git a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
index 6ae4c81a42..afcd50c7e6 100644
--- a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
@@ -31,6 +31,7 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar
31 file://0001-Fix-missing-header-for-systemd-notification.patch \ 31 file://0001-Fix-missing-header-for-systemd-notification.patch \
32 file://CVE-2025-26466.patch \ 32 file://CVE-2025-26466.patch \
33 file://CVE-2025-26465.patch \ 33 file://CVE-2025-26465.patch \
34 file://CVE-2025-32728.patch \
34 " 35 "
35SRC_URI[sha256sum] = "910211c07255a8c5ad654391b40ee59800710dd8119dd5362de09385aa7a777c" 36SRC_URI[sha256sum] = "910211c07255a8c5ad654391b40ee59800710dd8119dd5362de09385aa7a777c"
36 37