CVE-2021-33644 Memory corruption in libtar

High 8.1 Published Updated

An attacker can trigger an out-of-bounds read in libtar by submitting a crafted tar file with a zero size header, potentially causing crashes or data exposure.

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-33644?

CVE-2021-33644 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, published on 9 Aug 2022. 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

An attacker who submits a crafted tar file with size in header struct being 0 may be able to trigger an calling of malloc(0) for a variable gnu_longname, causing an out-of-bounds read.

Weakness: CWE-125

Which versions are affected by CVE-2021-33644?

It affects 3 products.

Products include Fedoraproject Fedora, Feep Libtar, Openatom Openeuler.

How do I fix CVE-2021-33644?

Apply the vendor's patch.

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

Is CVE-2021-33644 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-10543, AZL-34947, DEBIAN-CVE-2021-33644, GHSA-f326-p7mm-52h2, UBUNTU-CVE-2021-33644.

Is CVE-2021-33644 in your software?

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

Check your SBOMs for free