Vulnerability · Published Aug 9, 2022 · Assigned by openEuler

CVE-2021-33646

High 7.5

In plain English

A high-severity memory leak in libtar. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)2.0%top 19.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

The th_read() function doesn’t free a variable t->th_buf.gnu_longname after allocating memory, which may cause a memory leak.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8libtar1.2.20-17.el8ALSA-2023:2898
Debian:12libtar1.2.20-8+deb12u1DEBIAN-CVE-2021-33646
Rocky Linux:8libtar0:1.2.20-17.el8RLSA-2023:2898
Ubuntu:22.04:LTSlibtar1.2.20-8ubuntu0.22.04.1UBUNTU-CVE-2021-33646
Ubuntu:22.04:LTSlibtar1.2.20-8ubuntu0.22.04.1USN-7398-1
Ubuntu:24.04:LTSlibtar1.2.20-8.1ubuntu0.24.04.1USN-7398-1
Ubuntu:24.04:LTSlibtar1.2.20-8.1ubuntu0.24.04.1UBUNTU-CVE-2021-33646

Affected products (as reported)

VendorProductVersions
n/a libtar <1.2.21

Weakness: CWE-401

References