From 87425e5010427951b50bcd9e375083386b77ea933effac0ca2bb2410fa595b11 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Fri, 8 Jan 2021 17:48:27 +0000 Subject: [PATCH] Accepting request 861491 from home:hpjansson:branches:network - Update openssh-8.1p1-audit.patch (bsc#1180501). This fixes occasional crashes on connection termination caused by accessing freed memory. OBS-URL: https://build.opensuse.org/request/show/861491 OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=221 --- openssh-8.1p1-audit.patch | 8 +++++--- openssh.changes | 7 +++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/openssh-8.1p1-audit.patch b/openssh-8.1p1-audit.patch index fcf3a91..4b47951 100644 --- a/openssh-8.1p1-audit.patch +++ b/openssh-8.1p1-audit.patch @@ -1,5 +1,5 @@ diff --git a/Makefile.in b/Makefile.in -index 9d3f569..5a0e0b6 100644 +index 88aba09..b815eac 100644 --- a/Makefile.in +++ b/Makefile.in @@ -115,7 +115,7 @@ LIBSSH_OBJS=${LIBOPENSSH_OBJS} \ @@ -1673,7 +1673,7 @@ index 485590c..73c095e 100644 struct Session; diff --git a/packet.c b/packet.c -index e7abb34..3e9c95e 100644 +index e7abb34..997c338 100644 --- a/packet.c +++ b/packet.c @@ -81,6 +81,7 @@ @@ -1753,7 +1753,7 @@ index e7abb34..3e9c95e 100644 state->newkeys[mode] = NULL; } /* note that both bytes and the seqnr are not reset */ -@@ -2205,6 +2221,71 @@ ssh_packet_get_output(struct ssh *ssh) +@@ -2205,6 +2221,73 @@ ssh_packet_get_output(struct ssh *ssh) return (void *)ssh->state->output; } @@ -1783,7 +1783,9 @@ index e7abb34..3e9c95e 100644 + return; + + cipher_free(state->receive_context); ++ state->receive_context = NULL; + cipher_free(state->send_context); ++ state->send_context = NULL; + + sshbuf_free(state->input); + state->input = NULL; diff --git a/openssh.changes b/openssh.changes index 1accd97..58e5361 100644 --- a/openssh.changes +++ b/openssh.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Jan 8 01:37:02 UTC 2021 - Hans Petter Jansson + +- Update openssh-8.1p1-audit.patch (bsc#1180501). This fixes + occasional crashes on connection termination caused by accessing + freed memory. + ------------------------------------------------------------------- Fri Nov 27 11:36:56 UTC 2020 - Thorsten Kukuk