Memory Leak Affecting libtar package, versions <0:1.2.20-17.el8


Severity

Recommended
medium

Based on AlmaLinux security rating.

Threat Intelligence

EPSS
2% (81st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALMALINUX8-LIBTAR-5624085
  • published28 May 2023
  • disclosed16 May 2023

Introduced: 16 May 2023

CVE-2021-33646  (opens in a new tab)
CWE-401  (opens in a new tab)

How to fix?

Upgrade AlmaLinux:8 libtar to version 0:1.2.20-17.el8 or higher.
This issue was patched in ALSA-2023:2898.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libtar package and not the libtar package as distributed by AlmaLinux. See How to fix? for AlmaLinux:8 relevant fixed versions and status.

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

References

CVSS Base Scores

version 3.1