[Bug 864] sshd segfaults on connect on SunOS

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat May 8 14:11:49 EST 2004


http://bugzilla.mindrot.org/show_bug.cgi?id=864





------- Additional Comments From djm at mindrot.org  2004-05-08 14:11 -------
Looking more at the debug trace causes me to seriously suspect a problem in
OpenSSL. Notice where we cross from OpenSSH to OpenSSL:

> #0  0x8bc60 in getrn ()
> #1  0x8babc in lh_retrieve ()
> #2  0x68a9c in def_get_class ()
> #3  0x68c04 in int_new_ex_data ()
> #4  0x69314 in CRYPTO_new_ex_data ()
> #5  0x47bb8 in RSA_new_method ()
> #6  0x48080 in RSA_new ()
> #7  0x323cc in key_new (type=1) at key.c:61

The line is question is simply: 

>		if ((rsa = RSA_new()) == NULL)
>			fatal("key_new: RSA_new failed");

I.e there are no parameters coming from OpenSSH that could be pointing to bad
places. The problem could still be corruption happening elsewhere in OpenSSH,
but that is less likely. You could test for this by linking with ElectricFence
or similar.

Can you create keys using "openssl genrsa 1024"?




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list