CVE-2021-33640
JSON

6.2medium

After tarclose(), libtar.c releases the memory pointed to by pointer t.

Severity
6.2medium CVSS:3.1 by openEuler
Exploit likelihood
0.69% (higher than 48% of CVEs)
Published
Last changed
Assigned by
openEuler

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

Affected

Product or packageVersionsReported by
openEuler openEuler 22.03 LTS libtar 1.2.20-21CVE List
openEuler openEuler 20.03 LTS SP1 libtar 1.2.20-19CVE List
openEuler openEuler 20.03 LTS SP3 libtar 1.2.20-19CVE List
openatom openeuler20.03, 22.03NVD
fedoraproject fedora36, 37NVD

All scores

openEuler6.2medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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

NVD (es)

Después de tar_close(), libtar.c libera la memoria a la que apunta el puntero t. Después de llamar a tar_close() en la función list(), continúa usando el puntero t: free_longlink_longname(t->th_buf). Como resultado, la memoria liberada se utiliza (use after free).

References

Sources

SourceRecordLicence
CVE ListCVE-2021-33640 changed 2025-04-17CVE Terms of Use
NVDCVE-2021-33640 changed 2026-06-17Public domain