6.2medium
After tarclose(), libtar.c releases the memory pointed to by pointer t.
- Severity
- 6.2medium CVSS:3.1 by openEuler
- Exploit likelihood
- 0.69% (higher than 48% of CVEs)
- Published
- Last changed
- Assigned by
- openEuler
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).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| openEuler openEuler 22.03 LTS | libtar 1.2.20-21 | CVE List |
| openEuler openEuler 20.03 LTS SP1 | libtar 1.2.20-19 | CVE List |
| openEuler openEuler 20.03 LTS SP3 | libtar 1.2.20-19 | CVE List |
| openatom openeuler | 20.03, 22.03 | NVD |
| fedoraproject fedora | 36, 37 | NVD |
All scores
| openEuler | 6.2medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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).
NVD (es)
Después de tar_close(), libtar.c libera la memoria a la que apunta el puntero t. Después de llamar a tar_close() en la función list(), continúa usando el puntero t: free_longlink_longname(t->th_buf). Como resultado, la memoria liberada se utiliza (use after free).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-33640 changed 2025-04-17 | CVE Terms of Use |
| NVD | CVE-2021-33640 changed 2026-06-17 | Public domain |