CVE-2021-33645Missing Release of Memory after Effective Lifetime in Libtar

Severity
7.5HIGHNVD
OSV9.1
EPSS
0.2%
top 53.12%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedAug 10
Latest updateMar 31

Description

The th_read() function doesn’t free a variable t->th_buf.gnu_longlink after allocating memory, which may cause a memory leak.

CVSS vector

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

Affected Packages15 packages

NVDfeep/libtar< 1.2.21
debiandebian/libtar< libtar 1.2.20-8+deb12u1 (bookworm)
Debianfeep/libtar< 1.2.20-8+deb12u1~deb11u1+1
Ubuntufeep/libtar< 1.2.20-8ubuntu0.20.04.1+4
CVEListV5feep/libtar<1.2.21

Also affects: Fedora 35, 36, 37

🔴Vulnerability Details

3
OSV
libtar vulnerabilities2025-03-31
GHSA
GHSA-j8q5-rwmr-9hg8: The th_read() function doesn’t free a variable t->th_buf2022-08-11
OSV
CVE-2021-33645: The th_read() function doesn’t free a variable t->th_buf2022-08-10

📋Vendor Advisories

5
Ubuntu
libtar vulnerabilities2025-03-31
Red Hat
libtar: fixes for CVE-2021-33645 and CVE-2021-33646 introduced new use-after-free bugs in libtar2022-12-09
Red Hat
libtar: memory leak found in th_read() function2022-08-10
Microsoft
The th_read() function doesn’t free a variable t->th_buf.gnu_longlink after allocating memory which may cause a memory leak.2022-08-09
Debian
CVE-2021-33645: libtar - The th_read() function doesn’t free a variable t->th_buf.gnu_longlink after allo...2021
CVE-2021-33645 — Feep Libtar vulnerability | cvebase