
CVE catalog
CVE-2021-3505
libtpms: CVE-2021-3505
- Severity
- Medium · CVSS 4
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.40% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libtpms | sid | 0.10.2-5 | fixed |
| Debian | libtpms | forky | 0.10.2-5 | fixed |
| Debian | libtpms | trixie | 0.9.2-3.2 | fixed |
| Debian | libtpms | bookworm | 0.9.2-3.1+deb12u1 | fixed |
| Debian | libtpms | bookworm-security | 0.9.2-3.1~deb12u1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libtpms | source | sid | 0.8.0~dev1-1 | not yet assigned | Not reported | Not reported |
| Debian | libtpms | source | forky | 0.8.0~dev1-1 | not yet assigned | Not reported | Not reported |
| Debian | libtpms | source | trixie | 0.8.0~dev1-1 | not yet assigned | Not reported | Not reported |
| Debian | libtpms | source | bookworm | 0.8.0~dev1-1 | not yet assigned | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libtpms0]Fixed
Source package: [libtpms]
Details (4)
0.9.2-3.1+deb12u1· amd64 · bookwormFixed · Fixed:
0.8.0~dev1-1dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12
0.9.2-3.1+deb12u1· arm64 · bookwormFixed · Fixed:
0.8.0~dev1-1dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12
0.9.2-3.1~deb12u1· amd64 · bookworm-securityFixed · Fixed:
0.8.0~dev1-1dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12
0.9.2-3.1~deb12u1· arm64 · bookworm-securityFixed · Fixed:
0.8.0~dev1-1dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12
- [libtpms-dev]Fixed
Source package: [libtpms]
Details (4)
0.9.2-3.1+deb12u1· amd64 · bookwormFixed · Fixed:
0.8.0~dev1-1dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12
0.9.2-3.1+deb12u1· arm64 · bookwormFixed · Fixed:
0.8.0~dev1-1dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12
0.9.2-3.1~deb12u1· amd64 · bookworm-securityFixed · Fixed:
0.8.0~dev1-1dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12
0.9.2-3.1~deb12u1· arm64 · bookworm-securityFixed · Fixed:
0.8.0~dev1-1dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12
[Debian 13 (Trixie)]
- [libtpms0]Fixed
Source package: [libtpms]
Details (2)
0.9.2-3.2· amd64 · trixieFixed · Fixed:
0.8.0~dev1-1dsa · libtpms · debian · 13
0.9.2-3.2· arm64 · trixieFixed · Fixed:
0.8.0~dev1-1dsa · libtpms · debian · 13
- [libtpms-dev]Fixed
Source package: [libtpms]
Details (2)
0.9.2-3.2· amd64 · trixieFixed · Fixed:
0.8.0~dev1-1dsa · libtpms · debian · 13
0.9.2-3.2· arm64 · trixieFixed · Fixed:
0.8.0~dev1-1dsa · libtpms · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2024_11004-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-3505]
- [https://security-tracker.debian.org/tracker/CVE-2021-3505]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-3505.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]