Skip to content
OpenAdvisories
Unscored CVE-2021-33646 EUVD-2021-20323GHSA-x27v-rjqh-f4xc

The th_read() function doesn’t free a variable t->th_buf.gnu_longname after allocating memory, which may cause a memory leak.

Published Aug 9, 2022 · Updated Nov 3, 2025 · Assigned by openEuler

Description

The th_read() function doesn’t free a variable t->th_buf.gnu_longname after allocating memory, which may cause a memory leak.

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

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 7

References