{"api_version":"1","generated_at":"2026-05-13T10:12:44+00:00","cve":"CVE-2021-33640","urls":{"html":"https://cve.report/CVE-2021-33640","api":"https://cve.report/api/cve/CVE-2021-33640.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-33640","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-33640"},"summary":{"title":"CVE-2021-33640","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).","state":"PUBLIC","assigner":"securities@openeuler.org","published_at":"2022-12-19 16:15:00","updated_at":"2023-11-07 03:35:00"},"problem_types":["CWE-416"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7WX5YE66CT7Y5C2HTHXSFDKQWYWYWJ2T/","name":"FEDORA-2022-ccc68b06cc","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 36 Update: libtar-1.2.20-26.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4S4PJRCJLEAWN2EKXGLSOBTL7O57V7NC/","name":"FEDORA-2022-88772d0a2d","refsource":"","tags":[],"title":"[SECURITY] Fedora 37 Update: libtar-1.2.20-26.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7WX5YE66CT7Y5C2HTHXSFDKQWYWYWJ2T/","name":"FEDORA-2022-ccc68b06cc","refsource":"","tags":[],"title":"[SECURITY] Fedora 36 Update: libtar-1.2.20-26.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4S4PJRCJLEAWN2EKXGLSOBTL7O57V7NC/","name":"FEDORA-2022-88772d0a2d","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 37 Update: libtar-1.2.20-26.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2021-33640&packageName=libtar","name":"https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2021-33640&packageName=libtar","refsource":"MISC","tags":[],"title":"CVE Detail","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-33640","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33640","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"33640","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"36","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"33640","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"37","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"33640","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"huawei","cpe5":"openeuler","cpe6":"20.03","cpe7":"sp1","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"33640","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"huawei","cpe5":"openeuler","cpe6":"20.03","cpe7":"sp2","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"33640","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"huawei","cpe5":"openeuler","cpe6":"22.03","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-33640","qid":"283563","title":"Fedora Security Update for libtar (FEDORA-2022-ccc68b06cc)"},{"cve":"CVE-2021-33640","qid":"283564","title":"Fedora Security Update for libtar (FEDORA-2022-88772d0a2d)"},{"cve":"CVE-2021-33640","qid":"672599","title":"EulerOS Security Update for libtar (EulerOS-SA-2023-1324)"},{"cve":"CVE-2021-33640","qid":"672709","title":"EulerOS Security Update for libtar (EulerOS-SA-2023-1448)"},{"cve":"CVE-2021-33640","qid":"672751","title":"EulerOS Security Update for libtar (EulerOS-SA-2023-1473)"},{"cve":"CVE-2021-33640","qid":"672797","title":"EulerOS Security Update for libtar (EulerOS-SA-2023-1529)"},{"cve":"CVE-2021-33640","qid":"672804","title":"EulerOS Security Update for libtar (EulerOS-SA-2023-1554)"},{"cve":"CVE-2021-33640","qid":"672850","title":"EulerOS Security Update for libtar (EulerOS-SA-2023-1575)"},{"cve":"CVE-2021-33640","qid":"672854","title":"EulerOS Security Update for libtar (EulerOS-SA-2023-1585)"},{"cve":"CVE-2021-33640","qid":"904891","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for libtar (12359)"},{"cve":"CVE-2021-33640","qid":"905158","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for libtar (12519)"},{"cve":"CVE-2021-33640","qid":"905191","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for libtar (12909)"},{"cve":"CVE-2021-33640","qid":"905226","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for libtar (12933)"},{"cve":"CVE-2021-33640","qid":"905410","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for libtar (12933-1)"},{"cve":"CVE-2021-33640","qid":"905480","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for libtar (12909-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"securities@openeuler.org","ID":"CVE-2021-33640","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"openEuler 22.03 LTS","version":{"version_data":[{"version_affected":"=","version_name":" libtar","version_value":"1.2.20-21"}]}},{"product_name":"openEuler 20.03 LTS SP1","version":{"version_data":[{"version_affected":"=","version_name":" libtar","version_value":"1.2.20-19"}]}},{"product_name":"openEuler 20.03 LTS SP3","version":{"version_data":[{"version_affected":"=","version_name":" libtar","version_value":"1.2.20-19"}]}}]},"vendor_name":"openEuler"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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)."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":6.2,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-416 Use After Free"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2021-33640&packageName=libtar","name":"https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2021-33640&packageName=libtar"},{"refsource":"FEDORA","name":"FEDORA-2022-88772d0a2d","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4S4PJRCJLEAWN2EKXGLSOBTL7O57V7NC/"},{"refsource":"FEDORA","name":"FEDORA-2022-ccc68b06cc","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7WX5YE66CT7Y5C2HTHXSFDKQWYWYWJ2T/"}]},"source":{"discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-12-19 16:15:00","lastModifiedDate":"2023-11-07 03:35:00","problem_types":["CWE-416"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:huawei:openeuler:20.03:sp2:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:huawei:openeuler:20.03:sp1:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:huawei:openeuler:22.03:*:*:*:lts:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"33640","Ordinal":"209051","Title":"CVE-2021-33640","CVE":"CVE-2021-33640","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"33640","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}