CVEfocus › CVE database › CVE-2021-33640

CVE-2021-33640

CVSS 6.2 MediumEPSS 0.7% (higher than 48% of CVEs)Published 2022-12-19Updated 2025-04-17Assigner: openEuler

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

CWE-416

What to do

None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 8libtarNot affected
Red Hat Enterprise Linux 7libtarWill not fix
Out of support scope
Red Hat Enterprise Linux 7libtar-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6libtarWill not fix
Out of support scope
Red Hat Enterprise Linux 6libtar-develWill not fix
Out of support scope

What the vendor says

As published in the CVE record by openEuler, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.