CVE-2014-8132: Double Free

Published Oct 28, 2014
·
Updated

Description of problem:

Maybe it is possible to send a malicious kexinit package to eventually cause a server to a double-free.

I guess this is only a DoS.

Source code:

http://git.libssh.org/projects/libssh.git/

Patch:

From f6b9f851b962e3a587f3f99b7cb97d130f0c77b9 Mon Sep 17 00:00:00 2001 From: Jon Simons <jon> Date: Sat, 18 Oct 2014 23:23:26 -0700 Subject: [PATCH] kex: fixup error path in sshpacketkexinit

Before this change, dangling pointers can be unintentionally left in the respective nextcrypto kex methods slots. Ensure to set all slots to NULL in the error-out path.

Signed-off-by: Jon Simons <jon> --- src/kex.c | 5 +++++ 1 file changed, 5 insertions(+)

diff --git a/src/kex.c b/src/kex.c index f1a1b56..ee00ec3 100644 --- a/src/kex.c +++ b/src/kex.c @@ -443,6 +443,11 @@ SSHPACKETCALLBACK(sshpacketkexinit){ error: sshstringfree(str); for (i = 0; i < SSHKEXMETHODS; i++) { + if (serverkex) { + session->nextcrypto->clientkex.methods[i] = NULL; + } else { / client / + session->nextcrypto->serverkex.methods[i] = NULL; + } SAFEFREE(strings[i]); } -- 1.9.1

Other sources

Double free vulnerability in the sshpacketkexinit function in kex.c in libssh 0.5.x and 0.6.x before 0.6.4 allows remote attackers to cause a denial of service via a crafted kexinit packet.

MITRE

Affected Software

20 affected components
libssh libssh=0.5.0
libssh libssh=0.5.2
libssh libssh=0.5.3
libssh libssh=0.5.4
libssh libssh=0.5.5
libssh libssh=0.6.0
libssh libssh=0.6.1
libssh libssh=0.6.2
libssh libssh=0.6.3
Debian Debian Linux=7.0
Debian Debian Linux=8.0
openSUSE openSUSE=12.3
openSUSE openSUSE=13.1
openSUSE openSUSE=13.2
Fedoraproject Fedora=19
Fedoraproject Fedora=20
Fedoraproject Fedora=21
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=14.10

Event History

Oct 28, 2014
Data Sourced
via Red Hat·02:30 PM
DescriptionSeverityAffected Software
Dec 29, 2014
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2014-8132?

CVE-2014-8132 is classified as a denial of service vulnerability.

2

How do I fix CVE-2014-8132?

To fix CVE-2014-8132, update libssh to version 0.6.4 or later.

3

Which versions of libssh are affected by CVE-2014-8132?

CVE-2014-8132 affects libssh versions 0.5.0 through 0.6.3.

4

What type of attack does CVE-2014-8132 enable?

CVE-2014-8132 allows an attacker to send a malicious kexinit package that can lead to a denial of service.

5

Is CVE-2014-8132 a remote code execution vulnerability?

No, CVE-2014-8132 is not a remote code execution vulnerability; it is primarily a DoS issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203