# CVE-2021-33645: The thread() function doesn’t free a variable t-thbuf.gnulonglink after allocating memory, which may cause a memory leak.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.00%, higher than 81% of CVEs (2026-11-30)
- Published: 2022-08-09T00:00:00.000Z
- Modified: 2026-06-17T03:54:57.293Z
- Weaknesses: CWE-401
- Assigned by: openEuler

## Description

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

(As written by CVE List.)

## Affected

- libtar: <1.2.21
- feep libtar: before 1.2.21
- openatom openeuler: 20.03; 22.03
- fedoraproject fedora: 35; 36; 37

## References

- <https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1807> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5YSHZY753R7XW6CIKJVAWI373WW3YRRJ/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OD4HEBSTI22FNYKOKK7W3X6ZQE6FV3XC/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7Q26QDNOJDOFYWMJWEIK5XR62M2FF6IJ/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4S4PJRCJLEAWN2EKXGLSOBTL7O57V7NC/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7WX5YE66CT7Y5C2HTHXSFDKQWYWYWJ2T/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00026.html>

## Sources

- CVE List: [CVE-2021-33645](https://www.cve.org/CVERecord?id=CVE-2021-33645), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2021-33645](https://nvd.nist.gov/vuln/detail/CVE-2021-33645), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-33645 · Whole record: https://cve.day/CVE-2021-33645.json · Rebuilt by cve.day 2026-11-25T22:58:07.745Z
