CVE-2021-3505 Weak cryptography in libtpms

Medium 5.5 Published Updated

A flaw in libtpms causes RSA keys to have reduced strength, potentially compromising data confidentiality for users of the TPM 2 implementation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3505?

CVE-2021-3505 is a medium-severity vulnerability in Fedoraproject Fedora, published on 19 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-331

Which versions are affected by CVE-2021-3505?

It affects 3 products.

Products include Fedoraproject Fedora, Libtpms Project Libtpms, Redhat Enterprise Linux.

How do I fix CVE-2021-3505?

Upgrade to a fixed version.

Is CVE-2021-3505 being exploited?

There is no known exploitation of CVE-2021-3505 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-3505, GHSA-239j-gmhr-4pcm, OESA-2022-1959.

Is CVE-2021-3505 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free