CVE-2021-33640 Use after free in openEuler 20.03 LTS SP1
A use-after-free vulnerability in libtar allows attackers to potentially execute arbitrary code or cause a denial of service via crafted tar archives.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-33640?
CVE-2021-33640 is a medium-severity use after free vulnerability in Fedoraproject Fedora, published on 19 Dec 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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).
Weakness: CWE-416
Which versions are affected by CVE-2021-33640?
It affects 2 products.
Products include Fedoraproject Fedora, Openatom Openeuler.
How do I fix CVE-2021-33640?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2021-33640 being exploited?
There is no known exploitation of CVE-2021-33640 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as AZL-12933, AZL-34950, GHSA-pjrv-5vw3-5frj, MGASA-2022-0488, OESA-2022-2129, OESA-2023-1008.