libtpms — security advisory
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.
- Products
- libtpms
- Affected versions
- Not specified
- Fixed versions
- 0.8.0~dev1-1
- CVEs
- CVE-2021-3505
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:43 UTC · Revision 1
Source evidence
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:DEBIAN-CVE-2021-3505
libtpms
Fixed versions: 0.8.0~dev1-1
libtpms
Fixed versions: 0.8.0~dev1-1
libtpms
Fixed versions: 0.8.0~dev1-1
Complete source record
{
"id": "d264c06694204453c4ff9f685329c4d4f0a8b73983b65f400c56898ea4eb248c",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-3505",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2021-3505",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2021-3505",
"products": [
{
"name": {
"value": "libtpms",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.8.0~dev1-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libtpms",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.8.0~dev1-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libtpms",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.8.0~dev1-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2021-3505",
"aliases": [
"DEBIAN-CVE-2021-3505"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.8.0~dev1-1"
}
]
}
],
"package": {
"name": "libtpms",
"purl": "pkg:deb/debian/libtpms?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3505.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.8.0~dev1-1"
}
]
}
],
"package": {
"name": "libtpms",
"purl": "pkg:deb/debian/libtpms?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3505.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.8.0~dev1-1"
}
]
}
],
"package": {
"name": "libtpms",
"purl": "pkg:deb/debian/libtpms?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3505.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:03:37.791860008Z",
"provider": "osv",
"upstream": [
"CVE-2021-3505"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-3505"
]
},
"related_cves": [
{
"value": "CVE-2021-3505",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 422060,
"published_at": "2021-04-19T21:15:13.27+00:00"
}