CVE-2021-33646

libtar: memory leak found in th_read() function

Published Aug 9, 2022 CVSS 3.1 · 7.5 High EPSS 2.0% KEV · Not listed
Description
The th_read() function doesn’t free a variable t->th_buf.gnu_longname after allocating memory, which may cause a memory leak.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4033-1 libtar security update
EUVD EUVD EUVD-2021-20323 The th_read() function doesn’t free a variable t->th_buf.gnu_longname after allocating memory, which may cause a memory leak.
Ubuntu USN Ubuntu USN USN-7398-1 libtar vulnerabilities
History
Type Values Removed Values Added
First Time appeared Openatom
Openatom openeuler
CPEs cpe:2.3:o:huawei:openeuler:20.03:sp1:*:*:lts:*:*:*
cpe:2.3:o:huawei:openeuler:20.03:sp3:*:*:lts:*:*:*
cpe:2.3:o:huawei:openeuler:22.03:*:*:*:lts:*:*:*
cpe:2.3:o:openatom:openeuler:20.03:sp1:*:*:lts:*:*:*
cpe:2.3:o:openatom:openeuler:20.03:sp3:*:*:lts:*:*:*
cpe:2.3:o:openatom:openeuler:22.03:*:*:*:lts:*:*:*
Vendors & Products Huawei
Huawei openeuler
Openatom
Openatom openeuler
Weaknesses

Sources

Status
PUBLISHED
Assigner
openEuler
Published
Updated
Nov 3, 2025, 8:33 PM
Reserved
May 28, 2021, 12:00 AM
Status
Modified
Published
Aug 10, 2022, 8:15 PM
Modified
Jun 17, 2026, 3:54 AM
Severity
Moderate
Public date
Aug 10, 2022, 12:00 AM