CVE-2021-33644

libtar: out-of-bounds read in gnu_longname

Published Aug 9, 2022 CVSS 3.1 · 8.1 High EPSS 1.6% KEV · Not listed
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.

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-20321 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.
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