Security advisory
A flaw was found in the libtpms code that may cause access beyond the boundary of internal buffers. The vulnerability is triggered by specially-crafted TPM2 command packets that then trigger the issue when the state of the TPM2's volatile state is written. The highest threat from this vulnerability is to system availability. This issue affects libtpms versions before 0.8.5, before 0.7.9 and before 0.6.6.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3746
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 04:33 UTC · Revision 1
Source evidence
A flaw was found in the libtpms code that may cause access beyond the boundary of internal buffers. The vulnerability is triggered by specially-crafted TPM2 command packets that then trigger the issue when the state of the TPM2's volatile state is written. The highest threat from this vulnerability is to system availability. This issue affects libtpms versions before 0.8.5, before 0.7.9 and before 0.6.6.
osv:CVE-2021-3746
Complete source record
{
"id": "b32fac724d23fddae44ee99318ba74d603a27c063a4ab144300e535a49f4d058",
"url": "https://osv.dev/vulnerability/CVE-2021-3746",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3746",
"summary": "A flaw was found in the libtpms code that may cause access beyond the boundary of internal buffers. The vulnerability is triggered by specially-crafted TPM2 command packets that then trigger the issue when the state of the TPM2's volatile state is written. The highest threat from this vulnerability is to system availability. This issue affects libtpms versions before 0.8.5, before 0.7.9 and before 0.6.6.",
"evidence": "osv:CVE-2021-3746",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-3746",
"aliases": [
"CVE-2021-3746"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/stefanberger/libtpms",
"type": "GIT",
"events": [
{
"introduced": "0b60a4479009c9aa98210fac763a536fefd9228b"
},
{
"fixed": "24adfb75804f573c63f16b3065165754dddfb1f7"
},
{
"introduced": "d061d8065b74a16d918a007e844b1ab66f4bdb8b"
},
{
"fixed": "3461a606f488bc6321f09b2b967688c158d2ce26"
},
{
"introduced": "3fd4b94903061e156e64dc6a738237df2aebba09"
},
{
"fixed": "18ba4c0206cea9ea235056ec6fd06c6494d6ed14"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:libtpms_project:libtpms:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.6.0"
},
{
"fixed": "0.6.6"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:libtpms_project:libtpms:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.7.0"
},
{
"fixed": "0.7.9"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:libtpms_project:libtpms:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.8.0"
},
{
"fixed": "0.8.5"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v0.6.5",
"v0.7.8",
"v0.8.4",
"v0.6.4",
"v0.8.3",
"v0.7.7",
"v0.8.2",
"v0.8.1",
"v0.7.6",
"v0.6.3",
"v0.8.0",
"v0.7.5",
"v0.7.4",
"v0.7.3",
"v0.6.2",
"v0.7.2",
"v0.7.1",
"v0.6.1",
"v0.7.0",
"v0.6.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3746.json"
}
}
],
"modified": "2026-10-24T10:30:20.097167229Z",
"provider": "osv",
"references": [
"https://bugzilla.redhat.com/show_bug.cgi?id=1998588"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "34"
},
{
"last_affected": "34"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:-:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:advanced_virtualization:*:*:*"
],
"vendor_product": "redhat:enterprise_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
},
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-3746",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 430180,
"published_at": "2021-10-19T15:15:08.003+00:00"
}