# CVE-2024-57970: libarchive: libarchive through 3.7.7 has a heap-based buffer over-read in header_gnu_longlink in archive_read_support_format_tar....

CVE-2024-57970 is fixed in 3 products on 1 platform, first by RHSA-2025:7510, released February 16, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-57970
- Priority: Routine
- CVSS: 4.0 (moderate)
- EPSS: 0.0025
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 16, 2025

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | bsdtar almalinux 10 | 3.7.7-2.el10_0 | [ALSA-2025:7510](https://patchblox.com/security/data/fix/linux/alsa-2025-7510.md) | May 13, 2025 |
| Linux | bsdtar ol 10 | 0:3.7.7-2.el10_0 | [ELSA-2025-7510](https://patchblox.com/security/data/fix/linux/elsa-2025-7510.md) | Jun 27, 2025 |
| Linux | libarchive RHEL 10 | 3.7.7-2.el10_0 | [RHSA-2025:7510](https://patchblox.com/security/data/fix/linux/rhsa-2025-7510.md) | Feb 16, 2025 |
| Linux | libarchive almalinux 10 | 3.7.7-2.el10_0 | [ALSA-2025:7510](https://patchblox.com/security/data/fix/linux/alsa-2025-7510.md) | May 13, 2025 |
| Linux | libarchive ol 10 | 0:3.7.7-2.el10_0 | [ELSA-2025-7510](https://patchblox.com/security/data/fix/linux/elsa-2025-7510.md) | Jun 27, 2025 |
| Linux | libarchive rocky 10 | 0:3.7.7-2.el10_0 | [RLSA-2025:7510](https://patchblox.com/security/data/fix/linux/rlsa-2025-7510.md) | Oct 3, 2025 |
| Linux | libarchive-devel almalinux 10 | 3.7.7-2.el10_0 | [ALSA-2025:7510](https://patchblox.com/security/data/fix/linux/alsa-2025-7510.md) | May 13, 2025 |
| Linux | libarchive-devel ol 10 | 0:3.7.7-2.el10_0 | [ELSA-2025-7510](https://patchblox.com/security/data/fix/linux/elsa-2025-7510.md) | Jun 27, 2025 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
