Bug 1197072
Summary: | ssh client using HostbasedAuthentication aborts in FIPS mode | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Stanislav Zidek <szidek> | ||||||
Component: | openssh | Assignee: | Jakub Jelen <jjelen> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Stanislav Zidek <szidek> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 6.6 | CC: | jjelen, plautrba | ||||||
Target Milestone: | rc | Keywords: | Patch | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | openssh-5.3p1-106.el6 | Doc Type: | Bug Fix | ||||||
Doc Text: |
Cause: ssh client is loading RSA1 keys that are not allowed to use in FIPS mode, if they exists.
Consequence: ssh client crashes when trying to use disallowed hash.
Fix: Do not load RSA1 keys in FIPS mode.
Result: RSA1 keys are ignored in FIPS mode.
|
Story Points: | --- | ||||||
Clone Of: | |||||||||
: | 1197666 (view as bug list) | Environment: | |||||||
Last Closed: | 2015-07-22 06:47:10 UTC | Type: | Bug | ||||||
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: | |||||||||
Bug Blocks: | 1197666 | ||||||||
Attachments: |
|
Description
Stanislav Zidek
2015-02-27 13:04:49 UTC
Created attachment 996817 [details]
proposed patch
This makes sense to me. We can't load RSA1 key in FIPS mode. Also sounds reasonable for RHEL-6.7.
But there is that comment "closes fd" so we should close fd as well even if we are in fips mode (as it is solved in your referenced bugzilla). Also we need to return and not to let it fallback into key_load_private_pem and generate errors
Unfortunately, I don't have FIPS machine around. Stanislav, can you try it with this patch?
OK. Tested with rhel6 and it solves this issue for me. This issue applies also for rhel7 in this border condition so I'm cloning bug to rhel7. (In reply to Jakub Jelen from comment #1) > Created attachment 996817 [details] > proposed patch > > Unfortunately, I don't have FIPS machine around. Stanislav, can you try it > with this patch? Jakub, your patch works as expected, solves the problem for me. Thanks! Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1335.html |