Vulnerability · Published Apr 19, 2021 · Assigned by redhat
CVE-2021-3505
Medium 5.5
In plain English
A medium-severity security flaw in libtpms. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.4%top 65.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
A flaw was found in libtpms in versions before 0.8.0. The TPM 2 implementation returns 2048 bit keys with ~1984 bit strength due to a bug in the TCG specification. The bug is in the key creation algorithm in RsaAdjustPrimeCandidate(), which is called before the prime number check. The highest threat from this vulnerability is to data confidentiality.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libtpms | 0.8.0~dev1-1 | DEBIAN-CVE-2021-3505 |
| Debian:13 | libtpms | 0.8.0~dev1-1 | DEBIAN-CVE-2021-3505 |
| Debian:14 | libtpms | 0.8.0~dev1-1 | DEBIAN-CVE-2021-3505 |
Affected products (as reported)
Weakness: CWE-331
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1950046 x_refsource_MISC
- https://github.com/stefanberger/libtpms/issues/183 x_refsource_MISC
- FEDORA-2021-cfdc434610 vendor-advisory, x_refsource_FEDORA