| Summary: | Short RSA key in RevokedKeys prevents everyone from logging in | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Colin Coghill <colin> | ||||
| Component: | sshd | Assignee: | Damien Miller <djm> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | normal | CC: | djm, dtucker | ||||
| Priority: | P5 | ||||||
| Version: | 7.6p1 | ||||||
| Hardware: | Other | ||||||
| OS: | Linux | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 2893 | ||||||
| Attachments: |
|
||||||
|
Description
Colin Coghill
2018-08-21 09:59:49 AEST
Created attachment 3178 [details]
ignore invalid key length errors in sshkey_in_file()
This silently ignores SSH_ERR_KEY_LENGTH errors in sshkey_in_file().
This function is currently used in two places: revocation and listing CA keys.
Ignoring SSH_ERR_KEY_LENGTH is safe in the CA path because we'd never accept one of those keys as a CA key.
Ignoring the error in the revocation path is safe because we refuse those keys for authentication too. IMO it's worth allowing revoked keys lists with invalid short keys present as it supports sharing revocation lists between different OpenSSH versions (some of which may not ban short keys).
Fix committed, this will be in the openssh-7.9 release Close RESOLVED bugs with the release of openssh-8.0 |