CVE-2021-33643 Memory corruption in libtar

Medium 6.5 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 leaks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-33643?

CVE-2021-33643 is a medium-severity memory corruption vulnerability in Fedoraproject Fedora, published on 9 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

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_longlink, causing an out-of-bounds read.

Weakness: CWE-125

Which versions are affected by CVE-2021-33643?

It affects 3 products.

Products include Fedoraproject Fedora, Feep Libtar, Openatom Openeuler.

How do I fix CVE-2021-33643?

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-33643 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-10542, AZL-34946, DEBIAN-CVE-2021-33643, GHSA-j7g9-fcw9-wxcf, UBUNTU-CVE-2021-33643.

Is CVE-2021-33643 in your software?

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

Check your SBOMs for free