Advisory Published
Updated

REDHAT-BUG-1158089

First published: Tue 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: <a href="http://git.libssh.org/projects/libssh.git/">http://git.libssh.org/projects/libssh.git/</a> Patch: From f6b9f851b962e3a587f3f99b7cb97d130f0c77b9 Mon Sep 17 00:00:00 2001 From: Jon Simons &lt;jon&gt; Date: Sat, 18 Oct 2014 23:23:26 -0700 Subject: [PATCH] kex: fixup error path in ssh_packet_kexinit Before this change, dangling pointers can be unintentionally left in the respective next_crypto kex methods slots. Ensure to set all slots to NULL in the error-out path. Signed-off-by: Jon Simons &lt;jon&gt; --- 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 @@ SSH_PACKET_CALLBACK(ssh_packet_kexinit){ error: ssh_string_free(str); for (i = 0; i &lt; SSH_KEX_METHODS; i++) { + if (server_kex) { + session-&gt;next_crypto-&gt;client_kex.methods[i] = NULL; + } else { /* client */ + session-&gt;next_crypto-&gt;server_kex.methods[i] = NULL; + } SAFE_FREE(strings[i]); } -- 1.9.1

Affected SoftwareAffected VersionHow to fix
Ubuntu

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-1158089?

    The severity of REDHAT-BUG-1158089 is primarily classified as a Denial of Service (DoS) vulnerability.

  • How do I fix REDHAT-BUG-1158089?

    To fix REDHAT-BUG-1158089, you should apply the latest patches provided by the Libssh project.

  • What are the potential impacts of exploiting REDHAT-BUG-1158089?

    Exploitation of REDHAT-BUG-1158089 can lead to a double-free vulnerability, which may result in a crash of the server.

  • Which software versions are affected by REDHAT-BUG-1158089?

    The specific versions of Libssh affected by REDHAT-BUG-1158089 are not detailed, but it is important to check for updates on the official Libssh platform.

  • Is REDHAT-BUG-1158089 being actively monitored?

    Yes, REDHAT-BUG-1158089 is under active monitoring and being addressed in regular security updates.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203