git.iko.soy/typeable/nixpkgs
on master help sign in
openssh: 7.2p2 -> 7.3p1 (#17493)

Also remove patch for CVE-2015-8325 that has been fixed upstream.

commitf6eae2efab68638259f27e0c56c3534155063543 authorAneesh Agrawal <aneeshusa@gmail.com> dateSun 7 Aug 2016, 13:55 (10 years ago) parent6a86737
2 files changed+3−31
pkgs/tools/networking/openssh/CVE-2015-8325.patch−28 pkgs/tools/networking/openssh/default.nix+3−3
pkgs/tools/networking/openssh/CVE-2015-8325.patchdeleted−28
@@ -1,28 +0,0 @@
1−From 85bdcd7c92fe7ff133bbc4e10a65c91810f88755 Mon Sep 17 00:00:00 2001
2−From: Damien Miller <djm@mindrot.org>
3−Date: Wed, 13 Apr 2016 10:39:57 +1000
4−Subject: [PATCH] ignore PAM environment vars when UseLogin=yes
5−
6−If PAM is configured to read user-specified environment variables
7−and UseLogin=yes in sshd_config, then a hostile local user may
8−attack /bin/login via LD_PRELOAD or similar environment variables
9−set via PAM.
10−
11−CVE-2015-8325, found by Shayan Sadigh, via Colin Watson
12−---
13− session.c | 2 +-
14− 1 file changed, 1 insertion(+), 1 deletion(-)
15−
16−diff --git a/session.c b/session.c
17−index 4859245..4653b09 100644
18−--- a/session.c
19−+++ b/session.c
20−@@ -1322,7 +1322,7 @@ do_setup_env(Session *s, const char *shell)
21− * Pull in any environment variables that may have
22− * been set by PAM.
23− */
24−- if (options.use_pam) {
25−+ if (options.use_pam && !options.use_login) {
26− char **p;
27−
28− p = fetch_pam_child_environment();
pkgs/tools/networking/openssh/default.nix+3−3
@@ -27,11 +27,12 @@ with stdenv.lib;
2727stdenv.mkDerivation rec {
2828 # Please ensure that openssh_with_kerberos still builds when
2929 # bumping the version here!
30− name = "openssh-7.2p2";
30+ name = "openssh-${version}";
31+ version = "7.3p1";
3132
3233 src = fetchurl {
3334 url = "mirror://openbsd/OpenSSH/portable/${name}.tar.gz";
34− sha256 = "132lh9aanb0wkisji1d6cmsxi520m8nh7c7i9wi6m1s3l38q29x7";
35+ sha256 = "1k5y1wi29d47cgizbryxrhc1fbjsba2x8l5mqfa9b9nadnd9iyrz";
3536 };
3637
3738 prePatch = optionalString hpnSupport
@@ -44,7 +45,6 @@ stdenv.mkDerivation rec {
4445 [
4546 ./locale_archive.patch
4647 ./fix-host-key-algorithms-plus.patch
47− ./CVE-2015-8325.patch
4848
4949 # See discussion in https://github.com/NixOS/nixpkgs/pull/16966
5050 ./dont_create_privsep_path.patch