Skip to content
OpenAdvisories
Medium · 6.5 CVE-2021-33643 EUVD-2021-20320GHSA-j7g9-fcw9-wxcf

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…

Published Aug 9, 2022 · Updated Jun 23, 2026 · Assigned by openEuler

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.

Affected products

VendorProductAffectedFixed
— libtar <1.2.21 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 libtar 1.2.20-8+deb12u1 —
Debian 11 libtar 1.2.20-8+deb12u1~deb11u1 DLA-4033-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS libtar 1.2.20-8.1ubuntu0.24.04.1 USN-7398-1
Ubuntu 22.04 LTS libtar 1.2.20-8ubuntu0.22.04.1 USN-7398-1
Ubuntu 20.04 LTS libtar 1.2.20-8ubuntu0.20.04.1 USN-7398-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS libtar 1.2.20-7ubuntu0.1~esm1 USN-7398-1
Ubuntu Pro 16.04 LTS libtar 1.2.20-4ubuntu0.1~esm1 USN-7398-1
ReleasePackageFixed inAdvisory
RHEL 8 libtar 1.2.20-17.el8 RHSA-2023:2898

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 libtar 1.2.20-17.el8 ALSA-2023:2898

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libtar 1.2.20-17.el8 RLSA-2023:2898
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libtar 1.2.20-3.1 openSUSE-SU-2026:11092-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libtar 1.2.20-11 —
Azure Linux 2 (CBL-Mariner) libtar 1.2.20-10 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 libtar 1.2.20-17.el8 ELSA-2023-2898

Advisories 8

References