CVE-2021-33640Use After Free in Azl3 Libtar 1.2.20-11 ON Azure Linux 3.0

CWE-416Use After Free4 documents4 sources
Severity
9.8CRITICALNVD
EPSS
0.3%
top 48.51%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedDec 19

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

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages13 packages

Also affects: Fedora 36, 37

🔴Vulnerability Details

1
GHSA
GHSA-pjrv-5vw3-5frj: After tar_close(), libtar2022-12-19

📋Vendor Advisories

2
Microsoft
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 resul2022-12-13
Red Hat
libtar: fixes for CVE-2021-33645 and CVE-2021-33646 introduced new use-after-free bugs in libtar2022-12-09
CVE-2021-33640 — Use After Free | cvebase