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).
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: openEuler

Published: 2022-12-19T00:00:00

Updated: 2024-08-03T23:58:21.909Z

Reserved: 2021-05-28T00:00:00

Link: CVE-2021-33640

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2022-12-19T16:15:10.840

Modified: 2023-11-07T03:35:53.527

Link: CVE-2021-33640

cve-icon Redhat

Severity : Moderate

Publid Date: 2022-12-09T00:00:00Z

Links: CVE-2021-33640 - Bugzilla