What’s Vulnerable › Vulnerabilities
CVE-2016-6129
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2017-02-13 · updated 2026-06-17
- Weakness: CWE-20
Description
The rsa_verify_hash_ex function in rsa_verify_hash.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.
Affected products
- Libtomcrypt: through 1.17
- Linaro/OP-TEE OP-TEE: before 2.2.0 — fixed in 2.2.0
How to fix
Upgrade to a fixed version: Linaro/OP-TEE OP-TEE 2.2.0. Check the vendor advisory for mitigations.
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1370955
- https://github.com/libtom/libtomcrypt/commit/5eb9743410ce4657e9d54fef26a2ee31a1b5dd0
- https://www.op-tee.org/advisories/
- https://bugzilla.redhat.com/show_bug.cgi?id=1370955
- https://github.com/libtom/libtomcrypt/commit/5eb9743410ce4657e9d54fef26a2ee31a1b5dd0
- https://www.op-tee.org/advisories/
Get alerted when CVE-2016-6129 or the next vulnerability affects your stack