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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libtomcrypt | 1.17-8 | — |
| Debian 13 | libtomcrypt | 1.17-8 | — |
| Debian 12 | libtomcrypt | 1.17-8 | — |
| Debian 7 | libtomcrypt | 1.17-3.2+deb7u1 | DLA-612-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | libtomcrypt | 1.17-7ubuntu0.1 | — |
| Ubuntu 14.04 LTS | libtomcrypt | 1.17-5ubuntu0.1 | — |
Advisories 1
- DLA-612-1 libtomcrypt - security update Debian Security (DSA / DLA) · Mar 9, 2026