-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSA key creation fails intermittently when enabling blinding (primarily on Ubuntu 20.04) #5521
Comments
|
Full stack trace: |
|
Are you able to get which version of OpenSSL is in use here? |
|
@alex thanks for the update... is there other way to find out which openssl is used. Is there a way to track down which tests / call is not leaving the stack clean. There are random tests failure...so is not a single test that fails. Also, the tests that fails is always green when executed alone. The error is due to a side effect. I tried disabling all the tests that are triggering an error...but it still fails. I am continuing to track down what call is having he side effects |
|
The call that's failing matches up with the OpenSSL error stack, so I think it's a legitimate failure. Fair warning: I think this might be an OpenSSL bug! If it only happens on PyPy, that contributes to my OpenSSL theory: all other Pythons get a wheel which statically links a newer OpenSSL, PyPy gets a distro OpenSSL. I'm about to compare the versions to see if maybe they fixed a bug in this area. |
|
Thanks for the info. On Python 3.8 with OpenSSL 1.1.1h the tests are green. |
|
Hokay. I claim openssl/openssl@35bb0e4 fixes this bug. Specifically, if you look at how Unfortunately, this really does mean it's an OpenSSL bug, and we're somewhat limited in our ability to fix it. Next step is maybe to see if the Ubuntu folks would be interested in backporting it I suppose. |
|
Great work. Thanks for your help. For Ubuntu, I guess that we only need to wait for an update. Latest Ubuntu still has 1.1.1f https://packages.ubuntu.com/groovy/openssl I see 1.1.1h was accepted to Debian Unstable https://alioth-lists.debian.net/pipermail/pkg-openssl-devel/2020-October/007393.html ...so I guess at some point it will also reach Ubuntu |
|
I think it'd be appropriate to ask Ubuntu/Debian to backport this fix to
their stable releases.
…On Tue, Oct 27, 2020 at 10:42 AM Adi Roiban ***@***.***> wrote:
Great work. Thanks for your help.
For Ubuntu, I guess that we only need to wait for an update.
Latest Ubuntu still has 1.1.1f https://packages.ubuntu.com/groovy/openssl
I see 1.1.1h was accepted to Debian Unstable
https://alioth-lists.debian.net/pipermail/pkg-openssl-devel/2020-October/007393.html
...so I guess at some point it will also reach Ubuntu
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5521 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAGBBKJA2BVF65B7DVMRDSM3L3ZANCNFSM4TA2KXAA>
.
--
All that is necessary for evil to succeed is for good people to do nothing.
|
|
I've opened https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1901723 to track this. |
|
@xnox thank you. |
|
Thanks a lot for looking into this. If I may contribute a small & reproducible example (instead of running the entire twisted test suite 😄) from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.backends import default_backend
rsa.RSAPublicNumbers(n=10, e=3).public_key(default_backend()) |
|
This appears to also produce the following error, which is pretty cool: |
|
After discussion with @reaperhulk, I think we're going to disable blinding for public keys as a short term mitigation. Blinding will remain enabled for private keys, so hopefully ubuntu will still backport the fix. |
Some tests randomly fail on Twisted with the following error
I am running the tests on Twisted latest trunk branch.
I have updated cryptography with the latest dev version and I still get random failures
I am running on Ubuntu 20.04 with
To reproduce this I did
The last trial step needs to be executed multiple times...but it fails 1 out of 3 runs on my system.
The same error is observed on GitHub actions VMs See for example https://github.com/twisted/twisted/runs/1311722807?check_suite_focus=true#step:8:16044
Thanks
The text was updated successfully, but these errors were encountered: