CVE-2016-6129: Input Validation

Published Aug 28, 2016
·
Updated

It has been reported that libtomcrypt may be vulnerable to a Bleichenbacher attack due to a vulnerability in rsaverifyhash.c

CERT has provided the details from Intel Security Advanced Threat Research team. ---------------------------------------------------------------------- Bleichenbacher signature forgery attack in OP-TEE Background The implementation for RSA signature verification of PKCS 1 v1.5 in the Open Portable Trusted Execution Environment (https://github.com/OP-TEE/opteeos) appears to be vulnerable to a Bleichenbacher signature forgery attack. The vulnerability may result in RSA signature or public certificate forgery when a low public exponent (for example, e = 3) is used. Vulnerability The function rsaverifyhashex (https://github.com/OPTEE/opteeos/blob/master/core/lib/libtomcrypt/src/pk/rsa/rsaverifyhash.c) does not check the number of remaining bytes in the decrypted message after ASN.1 encoded data. The function decodes the ASN.1 message and checks that it has the correct structure and values (OID and hash). This permits additional data after the ASN.1 message that can be used to forge a PKCS1 v1.5 signature for keys with a low public exponent. The original variant of the attack is described here: https://www.ietf.org/mail-archive/web/openpgp/current/msg00999.html

----------------------------------------------------------------------

Other sources

The rsaverifyhashex function in rsaverifyhash.c in LibTomCrypt, as used in OP-TEE before 2.2.0, does not validate that the message length is equal to the ASN.1 encoded data length, which makes it easier for remote attackers to forge RSA signatures or public certificates by leveraging a Bleichenbacher signature forgery attack.

MITRE

Affected Software

3 affected components
OP-TEE Op-tee Os<=2.1.0
LibTom LibTomCrypt<=1.17
TrustedFirmware OP-TEE<2.2.0

Event History

Aug 28, 2016
Data Sourced
via Red Hat·11:50 PM
DescriptionSeverityAffected Software
Feb 13, 2017
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Data Sourced
via NVD·06:59 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2016-6129?

CVE-2016-6129 is classified as a medium severity vulnerability due to its potential exploitation via a Bleichenbacher attack.

2

What software is affected by CVE-2016-6129?

CVE-2016-6129 affects libtomcrypt versions up to 1.17 and OP-TEE OS versions up to 2.1.0.

3

How do I fix CVE-2016-6129?

To fix CVE-2016-6129, update libtomcrypt to a later version beyond 1.17 and OP-TEE OS to a later version than 2.1.0.

4

What is the nature of the vulnerability in CVE-2016-6129?

CVE-2016-6129 involves a flaw in rsa_verify_hash.c that may allow for a Bleichenbacher attack, compromising RSA signature verification.

5

Is there a workaround for CVE-2016-6129 if I cannot update?

There are no known effective workarounds for CVE-2016-6129, so it is recommended to apply the necessary updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203