[Bug 2686] SSHD segfaults when trying to load RSA1 host keys

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Mar 2 04:34:48 AEDT 2017


https://bugzilla.mindrot.org/show_bug.cgi?id=2686

--- Comment #2 from Jakub Jelen <jjelen at redhat.com> ---
With the above patch I am failing just litle bit further (but not
segfault fortunately):

Mar 01 18:05:49 rhel7 sshd[23583]: fatal: notify_hostkeys: couldn't put
hostkey 0: unknown or unsupported key type

Basically reverting the SSH1 these bits makes it pass for me:

@@ -847,7 +848,7 @@ notify_hostkeys(struct ssh *ssh)
        for (i = nkeys = 0; i < options.num_host_key_files; i++) {
                key = get_hostkey_public_by_index(i, ssh);
                if (key == NULL || key->type == KEY_UNSPEC ||
-                   sshkey_is_cert(key))
+                   key->type == KEY_RSA1 || sshkey_is_cert(key))
                        continue;
                fp = sshkey_fingerprint(key, options.fingerprint_hash,
                    SSH_FP_DEFAULT);

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list