CVE-2021-33646 json
The th_read() function doesn’t free a variable t->th_buf.gnu_longname after allocating memory, which may cause a memory leak.
published 2022-08-09 4 y ago modified 2026-06-17 4 mo ago also EUVD-2021-20323
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.0%
- EPSS 2.0% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
The th_read() function doesn’t free a variable t->th_buf.gnu_longname after allocating memory, which may cause a memory leak.
Patch / fix
- feep libtar 1.2.21
- libtar Debian 12 1.2.20-8+deb12u1
debian advisories DEBIAN-CVE-2021-33646
- libtar Ubuntu 20.04 LTS 1.2.20-8ubuntu0.20.04.1
- libtar Ubuntu 22.04 LTS 1.2.20-8ubuntu0.22.04.1
- libtar Ubuntu 24.04 LTS 1.2.20-8.1ubuntu0.24.04.1
- libtar Ubuntu Pro 16.04 LTS 1.2.20-4ubuntu0.1~esm1
- libtar Ubuntu Pro 18.04 LTS 1.2.20-7ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2021-33646
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libtar RHEL 8 1.2.20-17.el8
red hat advisories RHSA-2023:2898
- libtar AlmaLinux 8 1.2.20-17.el8
almalinux advisories ALSA-2023:2898
- libtar Rocky Linux 8 1.2.20-17.el8
rocky linux advisories RLSA-2023:2898
- libtar CBL-Mariner 2.0 1.2.20-10
- libtar Azure Linux 3.0 1.2.20-11
azure linux advisories AZL-10545AZL-34949
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-33646 updated cvss 7.5
libtar: memory leak found in th_read() function
-
Red Hat Enterprise Linux 6 libtar Red Hat Enterprise Linux 7 libtaraffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux AppStream (v. 8) libtar 1.2.20-17.el8fixed: vendor fix RHSA-2023:2898
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.00% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected products
- n/a libtar
Classification
- Weakness
-
- CWE-401 Missing Release of Memory after Effective Lifetime
References
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/5YSHZY753R7XW6CIKJVAWI373WW3YRRJ/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/OD4HEBSTI22FNYKOKK7W3X6ZQE6FV3XC/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/7Q26QDNOJDOFYWMJWEIK5XR62M2FF6IJ/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/4S4PJRCJLEAWN2EKXGLSOBTL7O57V7NC/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/7WX5YE66CT7Y5C2HTHXSFDKQWYWYWJ2T/
vendor-advisory
-
openeuler.org
/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1807
third-party-advisory
- lists.debian.org /debian-lts-announce/2025/01/msg00026.html
Sources
- CVE List CVE-2021-33646
- NVD CVE-2021-33646
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.