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).
Published: 2022-12-19
Score: 6.2 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

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

Thu, 17 Apr 2025 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 02 Apr 2025 19:00:00 +0000

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

Subscriptions

Fedoraproject Fedora
Openatom Openeuler
cve-icon MITRE

Status: PUBLISHED

Assigner: openEuler

Published:

Updated: 2025-04-17T14:58:03.494Z

Reserved: 2021-05-28T00:00:00.000Z

Link: CVE-2021-33640

cve-icon Vulnrichment

Updated: 2024-08-03T23:58:21.909Z

cve-icon NVD

Status : Modified

Published: 2022-12-19T16:15:10.840

Modified: 2025-04-02T18:33:53.340

Link: CVE-2021-33640

cve-icon Redhat

Severity : Moderate

Publid Date: 2022-12-09T00:00:00Z

Links: CVE-2021-33640 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses