CVE-2021-3505
published 2021-04-19CVE-2021-3505: 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…
PriorityP424medium5.5CVSS 3.1
AVLACLPRLUINSUCHINAN
EPSS
0.40%
32.7th percentile
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
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | libtpms | < libtpms 0.8.0~dev1-1 (bookworm) | libtpms 0.8.0~dev1-1 (bookworm) |
| fedoraproject | fedora | — | — |
| libtpms_project | libtpms | < 0.8.0 | 0.8.0 |
| libtpms_project | libtpms | — | — |
| libtpms_project | libtpms | >= 0 < 0.8.0~dev1-1 | 0.8.0~dev1-1 |
| libtpms_project | libtpms | >= 0 < 0.8.0~dev1-1 | 0.8.0~dev1-1 |
| libtpms_project | libtpms | >= 0 < 0.8.0~dev1-1 | 0.8.0~dev1-1 |
| redhat | enterprise_linux | — | — |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
nvdv2.02.1LOWAV:L/AC:L/Au:N/C:P/I:N/A:N
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Debian
CVE-2021-3505: libtpms - A flaw was found in libtpms in versions before 0.8.0. The TPM 2 implementation r...
vendor_debian·2021·CVSS 5.5
CVE-2021-3505 [MEDIUM] CVE-2021-3505: libtpms - A flaw was found in libtpms in versions before 0.8.0. The TPM 2 implementation r...
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.
Scope: local
bookworm: resolved (fixed in 0.8.0~dev1-1)
forky: resolved (fixed in 0.8.0~dev1-1)
sid: resolved (fixed in 0.8.0~dev1-1)
trixie: resolved (fixed in 0.8.0~dev1-1)
Red Hat
libtpms: RSA keys weaker than expected
vendor_redhat·2020-04-14·CVSS 5.5
CVE-2021-3505 [MEDIUM] CWE-331 libtpms: RSA keys weaker than expected
libtpms: RSA keys weaker than expected
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.
A flaw was found in libtpms. 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.
Statement: Versions of `libtpms` prior to 0.8.0 generate weaker than expected
GHSA
GHSA-239j-gmhr-4pcm: A flaw was found in libtpms in versions before 0
ghsa_unreviewed·2022-05-24
CVE-2021-3505 [MEDIUM] CWE-331 GHSA-239j-gmhr-4pcm: A flaw was found in libtpms in versions before 0
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.
OSV
CVE-2021-3505: A flaw was found in libtpms in versions before 0
osv·2021-04-19·CVSS 5.5
CVE-2021-3505 [MEDIUM] CVE-2021-3505: A flaw was found in libtpms in versions before 0
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://bugzilla.redhat.com/show_bug.cgi?id=1950046https://github.com/stefanberger/libtpms/issues/183https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NUCZX4S53TUNTSGTCRDNOQZV2V2RI4RJ/https://bugzilla.redhat.com/show_bug.cgi?id=1950046https://github.com/stefanberger/libtpms/issues/183https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NUCZX4S53TUNTSGTCRDNOQZV2V2RI4RJ/
2021-04-19
Published