diff options
| author | Leo Famulari <leo@famulari.name> | 2016-12-19 10:33:17 -0500 |
|---|---|---|
| committer | Leo Famulari <leo@famulari.name> | 2016-12-19 10:54:11 -0500 |
| commit | 43686dcb2f99b2700255de7f4eedd608f6847078 (patch) | |
| tree | e78f47eaa68fe39782ae63bda399d4a25d0bab7a | |
| parent | 307349f6f7acc44e5271c2acc3291c7020269c7b (diff) | |
gnu: openssh: Update to 7.4p1.
* gnu/packages/ssh.scm (openssh): Update to 7.4p1.
[source]: Remove 'openssh-memory-exhaustion.patch'.
* gnu/packages/patches/openssh-memory-exhaustion.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Remove it.
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/patches/openssh-memory-exhaustion.patch | 39 | ||||
| -rw-r--r-- | gnu/packages/ssh.scm | 5 |
3 files changed, 2 insertions, 43 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index 49fd2337cd3..c076ab969df 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -752,7 +752,6 @@ dist_patch_DATA = \ | |||
| 752 | %D%/packages/patches/openjpeg-CVE-2016-9850-CVE-2016-9851.patch \ | 752 | %D%/packages/patches/openjpeg-CVE-2016-9850-CVE-2016-9851.patch \ |
| 753 | %D%/packages/patches/openjpeg-use-after-free-fix.patch \ | 753 | %D%/packages/patches/openjpeg-use-after-free-fix.patch \ |
| 754 | %D%/packages/patches/openocd-nrf52.patch \ | 754 | %D%/packages/patches/openocd-nrf52.patch \ |
| 755 | %D%/packages/patches/openssh-memory-exhaustion.patch \ | ||
| 756 | %D%/packages/patches/openssl-runpath.patch \ | 755 | %D%/packages/patches/openssl-runpath.patch \ |
| 757 | %D%/packages/patches/openssl-1.1.0-c-rehash-in.patch \ | 756 | %D%/packages/patches/openssl-1.1.0-c-rehash-in.patch \ |
| 758 | %D%/packages/patches/openssl-c-rehash-in.patch \ | 757 | %D%/packages/patches/openssl-c-rehash-in.patch \ |
diff --git a/gnu/packages/patches/openssh-memory-exhaustion.patch b/gnu/packages/patches/openssh-memory-exhaustion.patch deleted file mode 100644 index 91fe294ca4a..00000000000 --- a/gnu/packages/patches/openssh-memory-exhaustion.patch +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | Fix a memory exhaustion bug in the key exchange, whereby an unauthenticated user | ||
| 2 | could potentially consume 38400 MB of memory on the server: | ||
| 3 | |||
| 4 | http://seclists.org/oss-sec/2016/q4/185 | ||
| 5 | |||
| 6 | Patch adapted from upstream source repository: | ||
| 7 | |||
| 8 | https://github.com/openssh/openssh-portable/commit/ec165c392ca54317dbe3064a8c200de6531e89ad | ||
| 9 | |||
| 10 | From ec165c392ca54317dbe3064a8c200de6531e89ad Mon Sep 17 00:00:00 2001 | ||
| 11 | From: "markus@openbsd.org" <markus@openbsd.org> | ||
| 12 | Date: Mon, 10 Oct 2016 19:28:48 +0000 | ||
| 13 | Subject: [PATCH] upstream commit | ||
| 14 | |||
| 15 | Unregister the KEXINIT handler after message has been | ||
| 16 | received. Otherwise an unauthenticated peer can repeat the KEXINIT and cause | ||
| 17 | allocation of up to 128MB -- until the connection is closed. Reported by | ||
| 18 | shilei-c at 360.cn | ||
| 19 | |||
| 20 | Upstream-ID: 43649ae12a27ef94290db16d1a98294588b75c05 | ||
| 21 | --- | ||
| 22 | kex.c | 3 ++- | ||
| 23 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 24 | |||
| 25 | diff --git a/kex.c b/kex.c | ||
| 26 | index 3f97f8c..6a94bc5 100644 | ||
| 27 | --- a/kex.c | ||
| 28 | +++ b/kex.c | ||
| 29 | @@ -481,6 +481,7 @@ kex_input_kexinit(int type, u_int32_t seq, void *ctxt) | ||
| 30 | if (kex == NULL) | ||
| 31 | return SSH_ERR_INVALID_ARGUMENT; | ||
| 32 | |||
| 33 | + ssh_dispatch_set(ssh, SSH2_MSG_KEXINIT, NULL); | ||
| 34 | ptr = sshpkt_ptr(ssh, &dlen); | ||
| 35 | if ((r = sshbuf_put(kex->peer, ptr, dlen)) != 0) | ||
| 36 | return r; | ||
| 37 | -- | ||
| 38 | 2.10.1 | ||
| 39 | |||
diff --git a/gnu/packages/ssh.scm b/gnu/packages/ssh.scm index ea5ec811d15..0fe6598bb28 100644 --- a/gnu/packages/ssh.scm +++ b/gnu/packages/ssh.scm | |||
| @@ -112,7 +112,7 @@ a server that supports the SSH-2 protocol.") | |||
| 112 | (define-public openssh | 112 | (define-public openssh |
| 113 | (package | 113 | (package |
| 114 | (name "openssh") | 114 | (name "openssh") |
| 115 | (version "7.3p1") | 115 | (version "7.4p1") |
| 116 | (source (origin | 116 | (source (origin |
| 117 | (method url-fetch) | 117 | (method url-fetch) |
| 118 | (uri (let ((tail (string-append name "-" version ".tar.gz"))) | 118 | (uri (let ((tail (string-append name "-" version ".tar.gz"))) |
| @@ -122,9 +122,8 @@ a server that supports the SSH-2 protocol.") | |||
| 122 | tail) | 122 | tail) |
| 123 | (string-append "http://ftp2.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/" | 123 | (string-append "http://ftp2.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/" |
| 124 | tail)))) | 124 | tail)))) |
| 125 | (patches (search-patches "openssh-memory-exhaustion.patch")) | ||
| 126 | (sha256 (base32 | 125 | (sha256 (base32 |
| 127 | "1k5y1wi29d47cgizbryxrhc1fbjsba2x8l5mqfa9b9nadnd9iyrz")))) | 126 | "1l8r3x4fr2kb6xm95s7kjdif1wp6f94d4kljh4qjj9109shw87qv")))) |
| 128 | (build-system gnu-build-system) | 127 | (build-system gnu-build-system) |
| 129 | (inputs `(("groff" ,groff) | 128 | (inputs `(("groff" ,groff) |
| 130 | ("openssl" ,openssl) | 129 | ("openssl" ,openssl) |
