Skip to content
OpenAdvisories
Medium · 4.0 CVE-2024-57970 EUVD-2024-53870GHSA-2q66-6w43-8rm9

libarchive through 3.7.7 has a heap-based buffer over-read in header_gnu_longlink in archive_read_support_format_tar.c via a TAR archive be…

Published Feb 16, 2025 · Updated Feb 18, 2025 · Assigned by mitre

Description

libarchive through 3.7.7 has a heap-based buffer over-read in header_gnu_longlink in archive_read_support_format_tar.c via a TAR archive because it mishandles truncation in the middle of a GNU long linkname.

Affected products

VendorProductAffectedFixed
libarchive libarchive ≤ 3.7.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
RHEL 10 bsdtar +2 3.7.7-2.el10_0 RHSA-2025:7510

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 bsdtar +2 3.7.7-2.el10_0 ALSA-2025:7510

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 libarchive 3.7.7-2.el10_0 RLSA-2025:7510
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libarchive 3.7.7-2.1 openSUSE-SU-2025:14844-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libarchive 3.7.9-r0 —
Alpine v3.23 libarchive 3.7.9-r0 —
Alpine v3.22 libarchive 3.7.9-r0 —
Alpine v3.21 libarchive 3.7.9-r0 —
Alpine v3.20 libarchive 3.7.9-r0 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 libarchive 3.7.9-r0 —
Alpine v3.18 libarchive 3.7.9-r0 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 bsdtar +2 3.7.7-2.el10_0 ELSA-2025-7510

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling libarchive-dev 3.7.7-r2 —

Advisories 6

References