CWE
399 415
Advisory Published
CVE Published
Updated

CVE-2012-4559: Double Free

First published: Tue Oct 30 2012(Updated: )

Florian Weimer of the Red Hat Product Security Team reported several instances of code in libssh where a heap region is deallocated twice, first in the main path and then on the error path. This could crash the process using libssh, or possible allow for the execution of arbitrary code. The identified affected variables are: agent.c:agent_sign_data(): request channels.c:channel_request(): req auth.c:ssh_userauth_pubkey(): user, service, method, algo, pkstr sftp.c:sftp_parse_attr_3(): longname, name sftp.c:sftp_mkdir(): buffer, path keyfiles.c:try_publickey_from_file(): pubkey sftp.c:sftp_mkdir() has been corrected via the following git commit: <a href="http://git.libssh.org/projects/libssh.git/commit/?h=v0-5&amp;id=4d8420f3282ed07fc99fc5e930c17df27ef1e9b2">http://git.libssh.org/projects/libssh.git/commit/?h=v0-5&amp;id=4d8420f3282ed07fc99fc5e930c17df27ef1e9b2</a>

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
redhat/libssh<0.5.3
0.5.3
Ubuntu<=0.5.2
Ubuntu=0.4.7
Ubuntu=0.4.8
Ubuntu=0.5.0
Ubuntu=0.5.0-rc1
Ubuntu=0.5.1

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.

Reference Links

Frequently Asked Questions

  • What is the severity of CVE-2012-4559?

    CVE-2012-4559 has been classified with a critical severity due to the potential for arbitrary code execution or process crashes.

  • How do I fix CVE-2012-4559?

    To fix CVE-2012-4559, upgrade libssh to version 0.5.4 or higher, which contains the necessary security patches.

  • Which versions of libssh are affected by CVE-2012-4559?

    Versions of libssh prior to 0.5.4, including 0.5.3 and earlier, are affected by CVE-2012-4559.

  • What are the potential risks of CVE-2012-4559?

    The potential risks of CVE-2012-4559 include application crashes or the execution of arbitrary code, compromising system integrity.

  • Is my system vulnerable to CVE-2012-4559?

    If you are using libssh version 0.5.3 or earlier, your system is vulnerable to CVE-2012-4559.

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