5.5medium
A flaw was found in libtpms in versions before 0.8.0.
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.40% (higher than 36% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
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
| Product or package | Versions | Reported by |
|---|---|---|
| libtpms | libtpms 0.8.0 | CVE List |
| libtpms_project libtpms | before 0.8.0 | NVD |
| redhat enterprise_linux | 8.0 | NVD |
| fedoraproject fedora | 33 | NVD |
All scores
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.1low CVSS:2.0 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
Se encontró un fallo en libtpms en versiones anteriores a 0.8.0. La implementación de TPM 2 devuelve claves de 2048 bits con una intensidad de bits de ~1984 debido a un error en la especificación TCG. El error está en el algoritmo de creación de claves en la función RsaAdjustPrimeCandidate(), que es llamado antes de la comprobación del número primo. La mayor amenaza de esta vulnerabilidad es la confidencialidad de los datos
References
| https://bugzilla.redhat.com/show_bug.cgi?id=1950046 | issue-tracking, patch, third-party-advisory | |
| https://github.com/stefanberger/libtpms/issues/183 | exploit, patch, third-party-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NUCZX4S53TUNTSGTCRDNOQZV2V2RI4RJ/ | vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-3505 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-3505 changed 2026-06-17 | Public domain |