CVE-2021-33640
published medium CVSS 3.1 · 6.2libtar: fixes for CVE-2021-33645 and CVE-2021-33646 introduced new use-after-free bugs in libtar
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| openEuler | — | openEuler 22.03 LTS libtar 1.2.20-21 | Affected | Not stated | openEuler |
| openEuler | — | openEuler 20.03 LTS SP1 libtar 1.2.20-19 | Affected | Not stated | openEuler |
| openEuler | — | openEuler 20.03 LTS SP3 libtar 1.2.20-19 | Affected | Not stated | openEuler |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | libtaraarch64 | Advisory build | 1.2.20-3.1 | OPENSUSE-SU-2026:11092-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libtarppc64le | Advisory build | 1.2.20-3.1 | OPENSUSE-SU-2026:11092-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libtars390x | Advisory build | 1.2.20-3.1 | OPENSUSE-SU-2026:11092-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libtarx86_64 | Advisory build | 1.2.20-3.1 | OPENSUSE-SU-2026:11092-1 |
Show 8 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | libtar-develaarch64 | Advisory build | 1.2.20-3.1 | OPENSUSE-SU-2026:11092-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libtar-develppc64le | Advisory build | 1.2.20-3.1 | OPENSUSE-SU-2026:11092-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libtar-devels390x | Advisory build | 1.2.20-3.1 | OPENSUSE-SU-2026:11092-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libtar-develx86_64 | Advisory build | 1.2.20-3.1 | OPENSUSE-SU-2026:11092-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libtar1aarch64 | Advisory build | 1.2.20-3.1 | OPENSUSE-SU-2026:11092-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libtar1ppc64le | Advisory build | 1.2.20-3.1 | OPENSUSE-SU-2026:11092-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libtar1s390x | Advisory build | 1.2.20-3.1 | OPENSUSE-SU-2026:11092-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libtar1x86_64 | Advisory build | 1.2.20-3.1 | OPENSUSE-SU-2026:11092-1 |
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).
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.2 / 10
- Severity
- medium
- Provider
- openEuler · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| openEuler | openEuler 22.03 LTS | libtar 1.2.20-21 (affected) | openEuler · cna |
| openEuler | openEuler 20.03 LTS SP1 | libtar 1.2.20-19 (affected) | openEuler · cna |
| openEuler | openEuler 20.03 LTS SP3 | libtar 1.2.20-19 (affected) | openEuler · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
3- FEDORA-2022-88772d0a2d https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4S4PJRCJLEAWN2EKXGLSOBTL7O57V7NC/
- FEDORA-2022-ccc68b06cc https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7WX5YE66CT7Y5C2HTHXSFDKQWYWYWJ2T/
- https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2021-33640&packageName=libtar
Provider assertions
3openEuler · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e8a79e8199ab3c04ffe4c681cbf3e9b5ba723c770fdc11168c94ab22e8a9a0a9
- Ingested
- 23 Sep 2026, 07:54:43 UTC
- Source record
- Official CVE record