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).
References
Link | Resource |
---|---|
https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2021-33640&packageName=libtar | Vendor Advisory |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4S4PJRCJLEAWN2EKXGLSOBTL7O57V7NC/ | Mailing List Third Party Advisory |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7WX5YE66CT7Y5C2HTHXSFDKQWYWYWJ2T/ | Mailing List Third Party Advisory |
Configurations
Information
Published : 2022-12-19 08:15
Updated : 2022-12-29 10:54
NVD link : CVE-2021-33640
Mitre link : CVE-2021-33640
JSON object : View
CWE
CWE-416
Use After Free
Products Affected
fedoraproject
- fedora
huawei
- openeuler