EBCDIC overread (CVE-2016-2176)
ASN1 strings longer than 1024 bytes can cause an overread in applications using X509_NAME_oneline() on EBCDIC systems, potentially returning arbitrary stack data in the buffer.
- Fixed in 4 hours
- Paid in 4 hours
- Disclosed after 7 hours
Summary by the program
Severity: Low
ASN1 Strings that are over 1024 bytes can cause an overread in applications using the X509_NAME_oneline() function on EBCDIC systems. This could result in arbitrary stack data being returned in the buffer.
OpenSSL 1.0.2 users should upgrade to 1.0.2h OpenSSL 1.0.1 users should upgrade to 1.0.1t
This issue was reported to OpenSSL on 5th March 2016 by Guido Vranken. The fix was developed by Matt Caswell of the OpenSSL development team.
Note
As per our previous announcements and our Release Strategy (https://www.openssl.org/policies/releasestrat.html), support for OpenSSL version 1.0.1 will cease on 31st December 2016. No security updates for that version will be provided after that date. Users of 1.0.1 are advised to upgrade.
Support for versions 0.9.8 and 1.0.0 ended on 31st December 2015. Those versions are no longer receiving security updates.
The report
https://github.com/openssl/openssl/commit/ea96ad5a206b7b5f25dad230333e8ff032df3219
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
Impact
This could result in arbitrary stack data being returned in the buffer.
What the attacker needed
EBCDIC system; ASN1 string over 1024 bytes; application uses X509_NAME_oneline()
The fix
The issue was fixed in OpenSSL 1.0.2h and 1.0.1t; users 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.
On some older computer systems that use a different character encoding (EBCDIC), a function that converts certificate names to text can read past the end of a buffer when the name is very long. This means it might include random data from memory in the output, which could leak sensitive information.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.