summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssh/openssh/CVE-2015-5600.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/openssh/openssh/CVE-2015-5600.patch')
-rw-r--r--meta/recipes-connectivity/openssh/openssh/CVE-2015-5600.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2015-5600.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2015-5600.patch
new file mode 100644
index 0000000000..fa1c85e237
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/CVE-2015-5600.patch
@@ -0,0 +1,50 @@
1From b47bdee5621f95387c9ac5b999fd859ccb1213a9 Mon Sep 17 00:00:00 2001
2From: "djm@openbsd.org" <djm@openbsd.org>
3Date: Sat, 18 Jul 2015 07:57:14 +0000
4Subject: [PATCH] CVE-2015-5600
5
6only query each keyboard-interactive device once per
7 authentication request regardless of how many times it is listed; ok markus@
8
9Source:
10http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/auth2-chall.c?f=h#rev1.43
11http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/auth2-chall.c.diff?r2=1.43&r1=1.42&f=u
12
13Upstream-Status: Backport
14---
15 auth2-chall.c | 9 +++++++--
16 1 file changed, 7 insertions(+), 2 deletions(-)
17
18diff --git a/auth2-chall.c b/auth2-chall.c
19index ea4eb6952f8c13928c3fc595007f2d844dde422f..065361d3ec22f4f131308d1b4497afada3c3cb78 100644
20--- a/auth2-chall.c
21+++ b/auth2-chall.c
22@@ -83,6 +83,7 @@ struct KbdintAuthctxt
23 void *ctxt;
24 KbdintDevice *device;
25 u_int nreq;
26+ u_int devices_done;
27 };
28
29 #ifdef USE_PAM
30@@ -169,11 +170,15 @@ kbdint_next_device(Authctxt *authctxt, KbdintAuthctxt *kbdintctxt)
31 if (len == 0)
32 break;
33 for (i = 0; devices[i]; i++) {
34- if (!auth2_method_allowed(authctxt,
35+ if ((kbdintctxt->devices_done & (1 << i)) != 0 ||
36+ !auth2_method_allowed(authctxt,
37 "keyboard-interactive", devices[i]->name))
38 continue;
39- if (strncmp(kbdintctxt->devices, devices[i]->name, len) == 0)
40+ if (strncmp(kbdintctxt->devices, devices[i]->name,
41+ len) == 0) {
42 kbdintctxt->device = devices[i];
43+ kbdintctxt->devices_done |= 1 << i;
44+ }
45 }
46 t = kbdintctxt->devices;
47 kbdintctxt->devices = t[len] ? xstrdup(t+len+1) : NULL;
48--
492.6.2
50