Bug 2345954 (CVE-2024-57970)

Summary: CVE-2024-57970 libarchive: heap buffer over-read in header_gnu_longlink
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ljavorsk, prodsec-dev
Target Milestone: ---Keywords: Security
Target Release: ---Flags: ljavorsk: needinfo? (prodsec-dev)
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the libarchive library. A specially-crafted tar file may trigger a head-based buffer over-read condition due to incorrect handling of truncation in the middle of a long GNU linkname. This issue can cause an application crash leading to a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2346148, 2346144, 2346145, 2346146    
Bug Blocks:    

Description OSIDB Bzimport 2025-02-16 04:01:07 UTC
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.

Comment 2 Lukas Javorsky 2025-02-18 14:17:55 UTC
Hi, is there a reason why this is not reported to Fedora 42 and Fedora Rawhide?

From NVD [1], I found that this commit [1] fixes the CVE, but it affects even the version present in both mentioned Fedora versions.

Could you please create trackers for them as well?

[1] https://nvd.nist.gov/vuln/detail/CVE-2024-57970
[2] https://github.com/libarchive/libarchive/commit/82912103214506316bd9990d73f33d743d55f570

Comment 5 errata-xmlrpc 2025-05-13 16:01:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2025:7510 https://access.redhat.com/errata/RHSA-2025:7510