Memory leak in libtar
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 fixed, 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-401.
Summary
The th_read() function doesn’t free a variable t->th_buf.gnu_longname after allocating memory, which may cause a memory leak.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | libtar | before 1.2.21 | 1.2.21 | Patch available | CNA |
- libtar Vendor— Affected before 1.2.21 Fixed in 1.2.21 Patch available CNA
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:feep:libtar:*:*:*:*:*:*:*:* | before 1.2.21 | Vulnerable | Feep |
| cpe:2.3:o:openatom:openeuler:20.03:sp1:*:*:lts:*:*:* | 20.03 sp1 | Vulnerable | Openatom |
| cpe:2.3:o:openatom:openeuler:20.03:sp3:*:*:lts:*:*:* | 20.03 sp3 | Vulnerable | Openatom |
| cpe:2.3:o:openatom:openeuler:22.03:*:*:*:lts:*:*:* | 22.03 | Vulnerable | Openatom |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* | 37 | Vulnerable | Fedoraproject |
- cpe:2.3:a:feep:libtar:*:*:*:*:*:*:*:* Versions before 1.2.21 Vulnerable ·Feep
- cpe:2.3:o:openatom:openeuler:20.03:sp1:*:*:lts:*:*:* Versions 20.03 sp1 Vulnerable ·Openatom
- cpe:2.3:o:openatom:openeuler:20.03:sp3:*:*:lts:*:*:* Versions 20.03 sp3 Vulnerable ·Openatom
- cpe:2.3:o:openatom:openeuler:22.03:*:*:*:lts:*:*:* Versions 22.03 Vulnerable ·Openatom
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* Versions 37 Vulnerable ·Fedoraproject
Remediation
- Fix · CNA libtar Fixed in 1.2.21
Red Hat 1 advisory
- RHSA-2023:2898 Released 2023-05-16 · Red Hat rating Moderatelibtar security update
- Red Hat Enterprise Linux AppStream (v. 8) libtar-1.2.20-17.el8
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
libtar — FEDORA-2022-88772d0a2d
4 records Highest priority Priority MEDIUM 1 MEDIUM, 3 LOW
Other records, highest priority first
- TI-2021-13017 Out-of-bounds read in libtarPriority MEDIUM 49
- TI-2021-13018 Out-of-bounds read in libtarPriority LOW 38
- TI-2021-13019 Memory leak in libtarPriority LOW 37
- Advisory ·
libtar — FEDORA-2022-fe1a4e3cf0
4 records Highest priority Priority MEDIUM 1 MEDIUM, 3 LOW
Other records, highest priority first
- TI-2021-13017 Out-of-bounds read in libtarPriority MEDIUM 49
- TI-2021-13018 Out-of-bounds read in libtarPriority LOW 38
- TI-2021-13019 Memory leak in libtarPriority LOW 37
Show 3 more groups
- Advisory ·
libtar — FEDORA-2022-44a20bba43
4 records Highest priority Priority MEDIUM 1 MEDIUM, 3 LOW
Other records, highest priority first
- TI-2021-13017 Out-of-bounds read in libtarPriority MEDIUM 49
- TI-2021-13018 Out-of-bounds read in libtarPriority LOW 38
- TI-2021-13019 Memory leak in libtarPriority LOW 37
- Advisory ·
libtar — FEDORA-2022-ccc68b06cc
4 records Highest priority Priority MEDIUM 1 MEDIUM, 3 LOW
Other records, highest priority first
- TI-2021-13017 Out-of-bounds read in libtarPriority MEDIUM 49
- TI-2021-13018 Out-of-bounds read in libtarPriority LOW 38
- TI-2021-13019 Memory leak in libtarPriority LOW 37
- Advisory ·
libtar — FEDORA-2022-50e8a1b51d
4 records Highest priority Priority MEDIUM 1 MEDIUM, 3 LOW
Other records, highest priority first
- TI-2021-13017 Out-of-bounds read in libtarPriority MEDIUM 49
- TI-2021-13018 Out-of-bounds read in libtarPriority LOW 38
- TI-2021-13019 Memory leak in libtarPriority LOW 37
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2023:2898 |
Timeline
- 2026-10-02 Threatist record created from CVE-2021-33646
- 2026-10-03 Alias added: GHSA-x27v-rjqh-f4xc
References
Sources
- CVE-2021-33646 · CVE Program
- CVE-2021-33646 · NVD
- FIRST EPSS
- GHSA-x27v-rjqh-f4xc · GitHub Advisory Database · CC BY 4.0
- CVE-2021-33646 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences