CVE-2021-33640

libtar: fixes for CVE-2021-33645 and CVE-2021-33646 introduced new use-after-free bugs in libtar

Published Dec 19, 2022 CVSS 3.1 · 6.2 Medium EPSS < 1% KEV · Not listed
Description
After tar_close(), libtar.c releases the memory pointed to by pointer t. After tar_close() is called in the list() function, it continues to use pointer t: free_longlink_longname(t->th_buf) . As a result, the released memory is used (use-after-free).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-20317 After tar_close(), libtar.c releases the memory pointed to by pointer t. After tar_close() is called in the list() function, it continues to use pointer t: free_longlink_longname(t->th_buf) . As a result, the released memory is used (use-after-free).
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

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:sp2:*:*: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:sp2:*:*: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
Apr 17, 2025, 2:58 PM
Reserved
May 28, 2021, 12:00 AM
Status
Modified
Published
Dec 19, 2022, 4:15 PM
Modified
Jun 17, 2026, 3:54 AM
Severity
Moderate
Public date
Dec 9, 2022, 12:00 AM