diff options
-rw-r--r-- | meta/recipes-connectivity/openssh/openssh/CVE-2015-8325.patch | 33 | ||||
-rw-r--r-- | meta/recipes-connectivity/openssh/openssh_7.1p2.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2015-8325.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2015-8325.patch new file mode 100644 index 0000000000..05e08534c9 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2015-8325.patch | |||
@@ -0,0 +1,33 @@ | |||
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 | Upstream-Status: Backport | ||
14 | CVE: CVE-2015-8325 | ||
15 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
16 | |||
17 | --- | ||
18 | session.c | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | Index: openssh-7.1p2/session.c | ||
22 | =================================================================== | ||
23 | --- openssh-7.1p2.orig/session.c | ||
24 | +++ openssh-7.1p2/session.c | ||
25 | @@ -1315,7 +1315,7 @@ do_setup_env(Session *s, const char *she | ||
26 | * Pull in any environment variables that may have | ||
27 | * been set by PAM. | ||
28 | */ | ||
29 | - if (options.use_pam) { | ||
30 | + if (options.use_pam && !options.use_login) { | ||
31 | char **p; | ||
32 | |||
33 | p = fetch_pam_child_environment(); | ||
diff --git a/meta/recipes-connectivity/openssh/openssh_7.1p2.bb b/meta/recipes-connectivity/openssh/openssh_7.1p2.bb index fa449ba8ae..10b78c5bfb 100644 --- a/meta/recipes-connectivity/openssh/openssh_7.1p2.bb +++ b/meta/recipes-connectivity/openssh/openssh_7.1p2.bb | |||
@@ -29,6 +29,7 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar | |||
29 | file://CVE-2016-6210_p2.patch \ | 29 | file://CVE-2016-6210_p2.patch \ |
30 | file://CVE-2016-6210_p3.patch \ | 30 | file://CVE-2016-6210_p3.patch \ |
31 | file://CVE-2016-6515.patch \ | 31 | file://CVE-2016-6515.patch \ |
32 | file://CVE-2015-8325.patch \ | ||
32 | " | 33 | " |
33 | 34 | ||
34 | PAM_SRC_URI = "file://sshd" | 35 | PAM_SRC_URI = "file://sshd" |