CVE catalog

CVE-2021-3505

libtpms: CVE-2021-3505

[CVE catalog]

Severity
Medium · CVSS 4CVSS: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.

DistributionPackageReleaseVersionStatus
Debianlibtpmssid0.10.2-5fixed
Debianlibtpmsforky0.10.2-5fixed
Debianlibtpmstrixie0.9.2-3.2fixed
Debianlibtpmsbookworm0.9.2-3.1+deb12u1fixed
Debianlibtpmsbookworm-security0.9.2-3.1~deb12u1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibtpmssourcesid0.8.0~dev1-1not yet assignedNot reportedNot reported
Debianlibtpmssourceforky0.8.0~dev1-1not yet assignedNot reportedNot reported
Debianlibtpmssourcetrixie0.8.0~dev1-1not yet assignedNot reportedNot reported
Debianlibtpmssourcebookworm0.8.0~dev1-1not yet assignedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libtpms0]Fixed

    Source package: [libtpms]

    Details (4)
    • 0.9.2-3.1+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 0.8.0~dev1-1

      dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12

    • 0.9.2-3.1+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 0.8.0~dev1-1

      dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12

    • 0.9.2-3.1~deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 0.8.0~dev1-1

      dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12

    • 0.9.2-3.1~deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 0.8.0~dev1-1

      dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12

  • Source package: [libtpms]

    Details (4)
    • 0.9.2-3.1+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 0.8.0~dev1-1

      dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12

    • 0.9.2-3.1+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 0.8.0~dev1-1

      dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12

    • 0.9.2-3.1~deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 0.8.0~dev1-1

      dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12

    • 0.9.2-3.1~deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 0.8.0~dev1-1

      dsa · libtpms · debian · bookworm; dsa · libtpms · debian · 12

[Debian 13 (Trixie)]

  • [libtpms0]Fixed

    Source package: [libtpms]

    Details (2)
    • 0.9.2-3.2 · amd64 · trixie

      Fixed · Fixed: 0.8.0~dev1-1

      dsa · libtpms · debian · 13

    • 0.9.2-3.2 · arm64 · trixie

      Fixed · Fixed: 0.8.0~dev1-1

      dsa · libtpms · debian · 13

  • Source package: [libtpms]

    Details (2)
    • 0.9.2-3.2 · amd64 · trixie

      Fixed · Fixed: 0.8.0~dev1-1

      dsa · libtpms · debian · 13

    • 0.9.2-3.2 · arm64 · trixie

      Fixed · Fixed: 0.8.0~dev1-1

      dsa · libtpms · debian · 13

Observed:

References