CVE-2021-33640

CriticalCVSS 9.8/10Last modified Jun 17, 2026

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

Metrics

CVSS 3.1 9.8/10CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Dec 19, 2022
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2021

CVE-2021-336417.8When processing files, malloc stores the data of the current line. When processing comments, malloc incorrectly accesses the released memoryCVE-2021-336425.5When a file is processed, an infinite loop occurs in next_inline() of the more_curly() function.CVE-2021-336439.1An 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 CVE-2021-336448.1An 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 CVE-2021-336457.5The th_read() function doesn’t free a variable t->th_buf.gnu_longlink after allocating memory, which may cause a memory leak.CVE-2021-336467.5The th_read() function doesn’t free a variable t->th_buf.gnu_longname after allocating memory, which may cause a memory leak.CVE-2021-336477.5When performing the inference shape operation of the Tile operator, if the input data type is not int or int32, it will access data outside CVE-2021-336487.5When performing the inference shape operation of Affine, Concat, MatMul, ArgMinMax, EmbeddingLookup, and Gather operators, if the input shapCVE-2021-336497.5When performing the inference shape operation of the Transpose operator, if the value in the perm element is greater than or equal to the siCVE-2021-336507.5When performing the inference shape operation of the SparseToDense operator, if the number of inputs is less than three, it will access dataCVE-2021-336517.5When performing the analytical operation of the DepthwiseConv2D operator, if the attribute depth_multiplier is 0, it will cause a division bCVE-2021-336527.5When the Reduce operator run operation is executed, if there is a value of 0 in the parameter axis_sizes element, it will cause a division b
CVE-2021-33640: Critical severity, CVSS 9.8 | Vulnix