LWN.net Logo

opensc: insecure key generation

Package(s):opensc CVE #(s):CVE-2009-0368 CVE-2008-2235
Created:June 1, 2009 Updated:August 3, 2009
Description:

From a message on the OpenSC mailing list:

The security problem in short: you need a combination of

1.) a tool that starts a key generation with public exponent set to 1 (an invalid value that causes an insecure rsa key)

2.) a PKCS#11 module that accepts that this public exponent and forwards it to the card

3.) a card that accepts the public exponent and generates the rsa key.

OpenSC is insecure because due to a code bug in pkcs11-tool it had the wrong public exponent. But OpenSC PKCS#11 module is secure, it ignores the public exponent. So only if you generate your keys with pkcs11-tool from OpenSC 0.11.7 (which very few people do), and only if you used it with some other vendors PKCS#11 module, and only if the card accepted the bogus value too, then your rsa key is insecure.

Alerts:
Gentoo 200908-01 2009-08-01
Fedora FEDORA-2009-4892 2009-05-12
Fedora FEDORA-2009-4919 2009-05-12
Fedora FEDORA-2009-4883 2009-05-12

(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds