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). (CVE-2021-33640)
- https://bugs.mageia.org/show_bug.cgi?id=31337
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/4S4PJRCJLEAWN2EKXGLSOBTL7O57V7NC/
- https://www.cve.org/CVERecord?id=CVE-2021-33640
- 8/core/libtar-1.2.20-9.2.mga8
Get the latest Linux and open source security news straight to your inbox.