git.iko.soy/typeable/nixpkgs
on master help sign in
openssh: Patch CVE-2016-8858

Also add myself as a maintainer.

commit7374105a96ee7d925b3e0530685c21566fa2a32c authorAneesh Agrawal <aneeshusa@gmail.com> dateThu 20 Oct 2016, 14:49 (10 years ago) parent4de7cbd
2 files changed+13−1
pkgs/tools/networking/openssh/default.nix+2−1 pkgs/tools/networking/openssh/fix-CVE-2016-8858.patch+11
pkgs/tools/networking/openssh/default.nix+2−1
@@ -50,6 +50,7 @@ stdenv.mkDerivation rec {
5050
5151 # See discussion in https://github.com/NixOS/nixpkgs/pull/16966
5252 ./dont_create_privsep_path.patch
53+ ./fix-CVE-2016-8858.patch
5354 ]
5455 ++ optional withGssapiPatches gssapiSrc;
5556
@@ -92,7 +93,7 @@ stdenv.mkDerivation rec {
9293 description = "An implementation of the SSH protocol";
9394 license = stdenv.lib.licenses.bsd2;
9495 platforms = platforms.unix;
95− maintainers = with maintainers; [ eelco ];
96+ maintainers = with maintainers; [ eelco aneeshusa ];
9697 broken = hpnSupport; # probably after 6.7 update
9798 };
9899}
pkgs/tools/networking/openssh/fix-CVE-2016-8858.patchnew file+11
@@ -0,0 +1,11 @@
1+diff -u -r1.126 -r1.127
2+--- ssh/kex.c 2016/09/28 21:44:52 1.126
3++++ ssh/kex.c 2016/10/10 19:28:48 1.127
4+@@ -461,6 +461,7 @@
5+ if (kex == NULL)
6+ return SSH_ERR_INVALID_ARGUMENT;
7+
8++ ssh_dispatch_set(ssh, SSH2_MSG_KEXINIT, NULL);
9+ ptr = sshpkt_ptr(ssh, &dlen);
10+ if ((r = sshbuf_put(kex->peer, ptr, dlen)) != 0)
11+ return r;