Bug 894407 (CVE-2013-0176)

Summary: CVE-2013-0176 libssh: NULL dereference leads to denial of service
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: asn, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-05 21:56:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 902992    
Bug Blocks:    
Attachments:
Description Flags
Patch for CVE-2013-0176 none

Description Vincent Danen 2013-01-11 16:44:18 UTC
A NULL dereference was found in libssh 0.5.3's publickey_from_privatekey() function.  When a server using libssh receives a "Client: Key Exchange Init", the server sets up the session and tries to set the algorithms by matching what the user specified vs what is supported in crypt_set_algorithms_server().  If there is no match, it will lead to a NULL dereference when receiving the "Client: Diffie-Hellman Key Exchange Init" packet, which will cause the program using libssh to crash.

Comment 2 Andreas Schneider 2013-01-14 13:40:17 UTC
Created attachment 678235 [details]
Patch for CVE-2013-0176

Comment 5 Andreas Schneider 2013-01-22 15:24:57 UTC
Fedora bugs are created automatically?

Comment 6 Vincent Danen 2013-01-22 21:40:33 UTC
Created libssh tracking bugs for this issue

Affects: fedora-all [bug 902992]

Comment 7 Vincent Danen 2013-01-22 21:40:59 UTC
Sorry, no, I forgot about the time.  =(

Comment 8 Fedora Update System 2013-02-02 04:19:45 UTC
libssh-0.5.4-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2013-02-02 04:28:16 UTC
libssh-0.5.4-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.