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).
problem types: CWE-416 Use After Free
affected:
{
vendor: openEuler
product: openEuler 22.03 LTS
versions:
version:  libtar 1.2.20-21, status: affected
}
{
vendor: openEuler
product: openEuler 20.03 LTS SP1
versions:
version:  libtar 1.2.20-19, status: affected
}
{
vendor: openEuler
product: openEuler 20.03 LTS SP3
versions:
version:  libtar 1.2.20-19, status: affected
}
metrics:
cvssV3_1: [
version: 3.1
vectorString: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
attackVector: LOCAL
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: NONE
integrityImpact: NONE
availabilityImpact: HIGH
baseScore: 6.2
baseSeverity: MEDIUM
]