Segmentation fault for invalid PSS parameters
The RSA PSS signature verification code dereferences a NULL pointer when given an ASN.1 signature with invalid PSS parameters. An attacker could crash any certificate verification operation, causing a denial of service in OpenSSL clients and servers that verify certificates.
- Fixed in 2 months
- Paid in 2 months
- Disclosed after 47 days
The signature verification routines will crash with a NULL pointer dereference if presented with an ASN.1 signature using the RSA PSS algorithm and invalid parameters. Since these routines are used to verify certificate signature algorithms this can be used to crash any certificate verification operation and exploited in a DoS attack. Any application which performs certificate verification is vulnerable including OpenSSL clients and servers which enable client authentication.
This issue affects OpenSSL version: 1.0.2
OpenSSL 1.0.2 users should upgrade to 1.0.2a
This issue was was reported to OpenSSL on 31st January 2015 by Brian Carpenter and a fix developed by Stephen Henson of the OpenSSL development team.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the RSA PSS parameter parsing did not validate the parameters before the verification code used them, leading to a NULL pointer dereference.
Impact
Any application performing certificate verification, including OpenSSL clients and servers with client authentication enabled, could be crashed, causing a denial of service.
What the attacker needed
Ability to supply a crafted certificate or signature; target verifies certificates
The fix
The issue was fixed in OpenSSL 1.0.2a, and users of 1.0.2 should upgrade.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A program that checks digital signatures can be sent a malformed signature that makes it crash instead of politely rejecting it. Because the same checking code runs whenever a certificate is verified, an attacker can knock over any service that does certificate checks. This is a denial-of-service bug: the goal is to stop the service working, not to steal data.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.