mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
openssh: Fix CVE-2025-32728
Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/fc86875e6acb36401dfc1dfb6b628a9d1460f367] (From OE-Core rev: 68413e1413eb87254d68f30920574b0e2c766782) Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
ab9a994a8c
commit
0fa8a4465e
@@ -0,0 +1,44 @@
|
|||||||
|
From fc86875e6acb36401dfc1dfb6b628a9d1460f367 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "djm@openbsd.org" <djm@openbsd.org>
|
||||||
|
Date: Wed, 9 Apr 2025 07:00:03 +0000
|
||||||
|
Subject: [PATCH] upstream: Fix logic error in DisableForwarding option. This
|
||||||
|
option
|
||||||
|
|
||||||
|
was documented as disabling X11 and agent forwarding but it failed to do so.
|
||||||
|
Spotted by Tim Rice.
|
||||||
|
|
||||||
|
OpenBSD-Commit-ID: fffc89195968f7eedd2fc57f0b1f1ef3193f5ed1
|
||||||
|
|
||||||
|
Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/fc86875e6acb36401dfc1dfb6b628a9d1460f367]
|
||||||
|
CVE: CVE-2025-32728
|
||||||
|
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
|
||||||
|
---
|
||||||
|
session.c | 5 +++--
|
||||||
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/session.c b/session.c
|
||||||
|
index e67d24d..625e97f 100644
|
||||||
|
--- a/session.c
|
||||||
|
+++ b/session.c
|
||||||
|
@@ -2182,7 +2182,8 @@ session_auth_agent_req(struct ssh *ssh, Session *s)
|
||||||
|
if ((r = sshpkt_get_end(ssh)) != 0)
|
||||||
|
sshpkt_fatal(ssh, r, "%s: parse packet", __func__);
|
||||||
|
if (!auth_opts->permit_agent_forwarding_flag ||
|
||||||
|
- !options.allow_agent_forwarding) {
|
||||||
|
+ !options.allow_agent_forwarding ||
|
||||||
|
+ options.disable_forwarding) {
|
||||||
|
debug_f("agent forwarding disabled");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
@@ -2568,7 +2569,7 @@ session_setup_x11fwd(struct ssh *ssh, Session *s)
|
||||||
|
ssh_packet_send_debug(ssh, "X11 forwarding disabled by key options.");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
- if (!options.x11_forwarding) {
|
||||||
|
+ if (!options.x11_forwarding || options.disable_forwarding) {
|
||||||
|
debug("X11 forwarding disabled in server configuration file.");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
@@ -38,6 +38,7 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar
|
|||||||
file://CVE-2023-51385.patch \
|
file://CVE-2023-51385.patch \
|
||||||
file://CVE-2024-6387.patch \
|
file://CVE-2024-6387.patch \
|
||||||
file://CVE-2025-26465.patch \
|
file://CVE-2025-26465.patch \
|
||||||
|
file://CVE-2025-32728.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[sha256sum] = "fd497654b7ab1686dac672fb83dfb4ba4096e8b5ffcdaccd262380ae58bec5e7"
|
SRC_URI[sha256sum] = "fd497654b7ab1686dac672fb83dfb4ba4096e8b5ffcdaccd262380ae58bec5e7"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user