CVE-2021-3746 Memory corruption in libtpms

Medium 6.5 Published Updated

A buffer overflow in libtpms allows attackers to cause a denial of service via crafted TPM2 command packets.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-3746?

CVE-2021-3746 is a medium-severity memory corruption vulnerability in Fedoraproject Fedora, published on 19 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-119

Which versions are affected by CVE-2021-3746?

It affects 3 products.

Linux distribution packages (3)
libtpms SUSE:Linux Enterprise Micro 5.1All versions0.8.2-3.3.1
libtpms SUSE:Linux Enterprise Module for Server Applications 15 SP3All versions0.8.2-3.3.1
libtpms openSUSE:Leap 15.3All versions0.8.2-3.3.1

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

How do I fix CVE-2021-3746?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-3746 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-3746, GHSA-9ffq-6fp7-34mv, SUSE-SU-2021:3004-1, SUSE-SU-2021:3004-2, openSUSE-SU-2021:3004-1.

Is CVE-2021-3746 in your software?

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

Check your SBOMs for free