libssh and libssh2 both have a bits/bytes confusion bug and generate an
abnormaly short ephemeral secret for the diffie-hellman-group1 and
diffie-hellman-group14 key exchange methods. The resulting secret is
128 bits long, instead of the recommended sizes of 1024 and 2048 bits
respectively.
Additionally, a double free on dangling pointers in initial key
exchange packets within libssh could leave dangling pointers in the
session crypto structures. It is possible to send a malicious kexinit
package to eventually cause a server to do a double-free before this
fix. This could be used for a Denial of Service attack.
[ 1 ] CVE-2014-8132 http://nvd.nist.gov/nvd.cfm?cvename=CVE-2014-8132 [ 2 ] CVE-2016-0739 http://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-0739 [ 3 ] CVE-2016-0787 http://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-0787
This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:
https://security.gentoo.org/glsa/201606-12
style>.gentoo_availability{display:block;}
Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users' machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.
Get the latest Linux and open source security news straight to your inbox.
There is no known workaround at this time.