All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] openssh: fix CVE-2016-6515
@ 2016-08-23  1:59 kai.kang
  2016-08-23  1:59 ` [PATCH 1/1] " kai.kang
  0 siblings, 1 reply; 4+ messages in thread
From: kai.kang @ 2016-08-23  1:59 UTC (permalink / raw)
  To: openembedded-core

From: Kai Kang <kai.kang@windriver.com>

The following changes since commit 70ccc66126552c0b9b606c7010ea6c3e737b2463:

  systemd-compat-units: Only enable for systemd in DISTRO_FEATURES (2016-08-18 16:52:06 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib kangkai/openssh
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/openssh

Kai Kang (1):
  openssh: fix CVE-2016-6515

 .../openssh/openssh/fix-CVE-2016-6515.patch        | 57 ++++++++++++++++++++++
 meta/recipes-connectivity/openssh/openssh_7.2p2.bb |  1 +
 2 files changed, 58 insertions(+)
 create mode 100644 meta/recipes-connectivity/openssh/openssh/fix-CVE-2016-6515.patch

-- 
2.9.3



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] openssh: fix CVE-2016-6515
  2016-08-23  1:59 [PATCH 0/1] openssh: fix CVE-2016-6515 kai.kang
@ 2016-08-23  1:59 ` kai.kang
  2016-08-23 16:33   ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: kai.kang @ 2016-08-23  1:59 UTC (permalink / raw)
  To: openembedded-core

From: Kai Kang <kai.kang@windriver.com>

Backport patch to fix CVE-2016-6515 from:

https://anongit.mindrot.org/openssh.git/commit/?id=fcd135c

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 .../openssh/openssh/fix-CVE-2016-6515.patch        | 57 ++++++++++++++++++++++
 meta/recipes-connectivity/openssh/openssh_7.2p2.bb |  1 +
 2 files changed, 58 insertions(+)
 create mode 100644 meta/recipes-connectivity/openssh/openssh/fix-CVE-2016-6515.patch

diff --git a/meta/recipes-connectivity/openssh/openssh/fix-CVE-2016-6515.patch b/meta/recipes-connectivity/openssh/openssh/fix-CVE-2016-6515.patch
new file mode 100644
index 0000000..466d572
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/fix-CVE-2016-6515.patch
@@ -0,0 +1,57 @@
+Upstream-Status: Backport
+
+Backport patch to fix CVE-2016-6515 from:
+
+https://anongit.mindrot.org/openssh.git/commit/?id=fcd135c
+
+Signed-off-by: Kai Kang <kai.kang@windriver.com>
+---
+From fcd135c9df440bcd2d5870405ad3311743d78d97 Mon Sep 17 00:00:00 2001
+From: "dtucker@openbsd.org" <dtucker@openbsd.org>
+Date: Thu, 21 Jul 2016 01:39:35 +0000
+Subject: upstream commit
+
+Skip passwords longer than 1k in length so clients can't
+easily DoS sshd by sending very long passwords, causing it to spend CPU
+hashing them. feedback djm@, ok markus@.
+
+Brought to our attention by tomas.kuthan at oracle.com, shilei-c at
+360.cn and coredump at autistici.org
+
+Upstream-ID: d0af7d4a2190b63ba1d38eec502bc4be0be9e333
+---
+ auth-passwd.c | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/auth-passwd.c b/auth-passwd.c
+index 530b5d4..996c2cf 100644
+--- a/auth-passwd.c
++++ b/auth-passwd.c
+@@ -1,4 +1,4 @@
+-/* $OpenBSD: auth-passwd.c,v 1.44 2014/07/15 15:54:14 millert Exp $ */
++/* $OpenBSD: auth-passwd.c,v 1.45 2016/07/21 01:39:35 dtucker Exp $ */
+ /*
+  * Author: Tatu Ylonen <ylo@cs.hut.fi>
+  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
+@@ -66,6 +66,8 @@ extern login_cap_t *lc;
+ #define DAY		(24L * 60 * 60) /* 1 day in seconds */
+ #define TWO_WEEKS	(2L * 7 * DAY)	/* 2 weeks in seconds */
+ 
++#define MAX_PASSWORD_LEN	1024
++
+ void
+ disable_forwarding(void)
+ {
+@@ -87,6 +89,9 @@ auth_password(Authctxt *authctxt, const char *password)
+ 	static int expire_checked = 0;
+ #endif
+ 
++	if (strlen(password) > MAX_PASSWORD_LEN)
++		return 0;
++
+ #ifndef HAVE_CYGWIN
+ 	if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES)
+ 		ok = 0;
+-- 
+cgit v0.12
+
diff --git a/meta/recipes-connectivity/openssh/openssh_7.2p2.bb b/meta/recipes-connectivity/openssh/openssh_7.2p2.bb
index 3df825b..d48c5fb 100644
--- a/meta/recipes-connectivity/openssh/openssh_7.2p2.bb
+++ b/meta/recipes-connectivity/openssh/openssh_7.2p2.bb
@@ -25,6 +25,7 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar
            file://CVE-2015-8325.patch \
            file://openssh-7.1p1-conditional-compile-des-in-cipher.patch \
            file://openssh-7.1p1-conditional-compile-des-in-pkcs11.patch \
+           file://fix-CVE-2016-6515.patch \
            "
 
 PAM_SRC_URI = "file://sshd"
-- 
2.9.3



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] openssh: fix CVE-2016-6515
  2016-08-23  1:59 ` [PATCH 1/1] " kai.kang
@ 2016-08-23 16:33   ` Burton, Ross
  2016-08-24  2:28     ` Kang Kai
  0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2016-08-23 16:33 UTC (permalink / raw)
  To: Kang Kai; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]

On 23 August 2016 at 02:59, <kai.kang@windriver.com> wrote:

> From: Kai Kang <kai.kang@windriver.com>
>
> Backport patch to fix CVE-2016-6515 from:
>
> https://anongit.mindrot.org/openssh.git/commit/?id=fcd135c
>

We've already had an upgrade to 7.3 in master(-next), so this would only be
appropriate for the stable branches.

Ross

[-- Attachment #2: Type: text/html, Size: 951 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] openssh: fix CVE-2016-6515
  2016-08-23 16:33   ` Burton, Ross
@ 2016-08-24  2:28     ` Kang Kai
  0 siblings, 0 replies; 4+ messages in thread
From: Kang Kai @ 2016-08-24  2:28 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 666 bytes --]

On 2016年08月24日 00:33, Burton, Ross wrote:
>
> On 23 August 2016 at 02:59, <kai.kang@windriver.com 
> <mailto:kai.kang@windriver.com>> wrote:
>
>     From: Kai Kang <kai.kang@windriver.com
>     <mailto:kai.kang@windriver.com>>
>
>     Backport patch to fix CVE-2016-6515 from:
>
>     https://anongit.mindrot.org/openssh.git/commit/?id=fcd135c
>     <https://anongit.mindrot.org/openssh.git/commit/?id=fcd135c>
>
>
> We've already had an upgrade to 7.3 in master(-next), so this would 
> only be appropriate for the stable branches.

Yes, openssh 7.3p1 contains this patch. Thanks.

--Kai

>
> Ross


-- 
Regards,
Neil | Kai Kang


[-- Attachment #2: Type: text/html, Size: 2244 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-24  2:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-23  1:59 [PATCH 0/1] openssh: fix CVE-2016-6515 kai.kang
2016-08-23  1:59 ` [PATCH 1/1] " kai.kang
2016-08-23 16:33   ` Burton, Ross
2016-08-24  2:28     ` Kang Kai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.