Bug 1402029
Summary: | openssh-7.3p1-6.fc25.x86_64 fails to receive rsa certificate added to a remotely forwarded agent. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Peter Moody <pmoody> | ||||
Component: | openssh | Assignee: | Jakub Jelen <jjelen> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 24 | CC: | evan, jjelen, mattias.ellert, mgrepl, plautrba, tmraz | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | openssh-7.3p1-7.fc25 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-12-09 22:30:09 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: | |||||||
Attachments: |
|
Description
Peter Moody
2016-12-06 15:29:21 UTC
the user who originally reported the bug to me replied that he can repro the issue with the following commands. # in terminal one $ ssh-agent -d -a /tmp/ssh.sock # in terminal two $ SSH_AUTH_SOCK=/tmp/ssh.sock ssh -A localhost # auth $ mkdir keys ; chmod 0700 keys $ ssh-keygen -f keys/user_ca $ ssh-keygen -f keys/test_user_key $ ssh-keygen -s keys/user_ca -I user_foo -n foo -V +1w keys/test_user_key.pub $ ssh-add keys/test_user_key Created attachment 1229459 [details]
proposed dist-git patch
Thank you for letting me know about the problem and filling the reproducer. It fails for both Fedora 25 and 26.
The problem is, that the ssh-agent API does not contain N and E RSA parameters and the net OpenSSL API required them. We set them to 0 (or undefined), which led the later function RSA_blinding_on() to the failure, because it is using the N value as a random seed (or something like that).
The attached patch solves the problems for me. I will try to put together also some unit test to make sure we will not break such use case again.
openssh-7.3p1-7.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-af7b5cd77d openssh-7.3p1-7.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-af7b5cd77d I'm the user who originally had problems, and I can confirm that the new build fixes the issue for me. openssh-7.3p1-7.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. |