| Summary: | SSHD segfaults when trying to load RSA1 host keys | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Jakub Jelen <jjelen> | ||||||
| Component: | sshd | Assignee: | Damien Miller <djm> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | enhancement | CC: | djm, dtucker | ||||||
| Priority: | P5 | Keywords: | patch | ||||||
| Version: | 7.4p1 | ||||||||
| Hardware: | Other | ||||||||
| OS: | Linux | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 2647 | ||||||||
| Attachments: |
|
||||||||
|
Description
Jakub Jelen
2017-03-02 03:46:53 AEDT
well ... or just don't load the RSA1 keys in first place in sshd ... it might cause more problems in other code. 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);
Created attachment 2963 [details]
don't load RSA1 hostkeys
This skips RSA1 keys when they are loaded.
Applied. This will be in OpenSSH 7.5, due next week. closing resolved bugs as of 8.6p1 release |