File openssh-7.2p2-kex_resource_depletion.patch of Package openssh.29886
From eb69f1fc8983373f3ca3c37ee81563d7e46c3bd5 Mon Sep 17 00:00:00 2001
From: Old openssh patches <pcerny@suse.com>
Date: Wed, 26 Oct 2022 09:55:25 +0200
Subject: [PATCH] openssh-7.2p2-kex_resource_depletion
# HG changeset patch
# Parent 60b2988645245873e56e7df004c9141bc0adcb1f
Prevent memory depletion during key exchange
CVE-2016-8858
bsc#1005480
upstream commit ec165c392ca54317dbe3064a8c200de6531e89ad
---
kex.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kex.c b/kex.c
index a920a43b..29dd6e97 100644
--- a/kex.c
+++ b/kex.c
@@ -531,6 +531,7 @@ kex_input_kexinit(int type, u_int32_t seq, void *ctxt)
if (kex == NULL)
return SSH_ERR_INVALID_ARGUMENT;
+ ssh_dispatch_set(ssh, SSH2_MSG_KEXINIT, NULL);
ptr = sshpkt_ptr(ssh, &dlen);
if ((r = sshbuf_put(kex->peer, ptr, dlen)) != 0)
return r;
--
2.38.0