summaryrefslogtreecommitdiff
path: root/meta/recipes-connectivity/openssh/openssh-6.1p1/openssh-CVE-2011-4327.patch
diff options
context:
space:
mode:
authorAndrei Dinu <andrei.adrianx.dinu@intel.com>2013-01-28 10:50:04 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-28 12:46:46 +0000
commit5534deb69b0a2835fbbf149a00d1f6ba61cc8160 (patch)
tree43e323e5f0ff016a6a780eab701f6f451f459a2a /meta/recipes-connectivity/openssh/openssh-6.1p1/openssh-CVE-2011-4327.patch
parentec81b985bb29a8562366f5343171e68a1f9cc4e9 (diff)
downloadopenembedded-core-5534deb69b0a2835fbbf149a00d1f6ba61cc8160.tar.gz
openembedded-core-5534deb69b0a2835fbbf149a00d1f6ba61cc8160.tar.bz2
openembedded-core-5534deb69b0a2835fbbf149a00d1f6ba61cc8160.zip
openssh : upgrade to 6.1p1
Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssh/openssh-6.1p1/openssh-CVE-2011-4327.patch')
-rw-r--r--meta/recipes-connectivity/openssh/openssh-6.1p1/openssh-CVE-2011-4327.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh-6.1p1/openssh-CVE-2011-4327.patch b/meta/recipes-connectivity/openssh/openssh-6.1p1/openssh-CVE-2011-4327.patch
new file mode 100644
index 0000000000..8489edcc82
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh-6.1p1/openssh-CVE-2011-4327.patch
@@ -0,0 +1,27 @@
+openssh-CVE-2011-4327
+
+A security flaw was found in the way ssh-keysign,
+a ssh helper program for host based authentication,
+attempted to retrieve enough entropy information on configurations that
+lacked a built-in entropy pool in OpenSSL (a ssh-rand-helper program would
+be executed to retrieve the entropy from the system environment).
+A local attacker could use this flaw to obtain unauthorized access to host keys
+via ptrace(2) process trace attached to the 'ssh-rand-helper' program.
+
+https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2011-4327
+http://www.openssh.com/txt/portable-keysign-rand-helper.adv
+
+Signed-off-by: Li Wang <li.wang@windriver.com>
+--- a/ssh-keysign.c
++++ b/ssh-keysign.c
+@@ -170,6 +170,10 @@
+ key_fd[i++] = open(_PATH_HOST_DSA_KEY_FILE, O_RDONLY);
+ key_fd[i++] = open(_PATH_HOST_ECDSA_KEY_FILE, O_RDONLY);
+ key_fd[i++] = open(_PATH_HOST_RSA_KEY_FILE, O_RDONLY);
++ if (fcntl(key_fd[0], F_SETFD, FD_CLOEXEC) != 0 ||
++ fcntl(key_fd[1], F_SETFD, FD_CLOEXEC) != 0 ||
++ fcntl(key_fd[2], F_SETFD, FD_CLOEXEC) != 0)
++ fatal("fcntl failed");
+
+ original_real_uid = getuid(); /* XXX readconf.c needs this */
+ if ((pw = getpwuid(original_real_uid)) == NULL)