CVE-2024-57970

NameCVE-2024-57970
Descriptionlibarchive 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libarchive (PTS)bullseye3.4.3-2+deb11u1fixed
bullseye (security)3.4.3-2+deb11u2fixed
bookworm, bookworm (security)3.6.2-1+deb12u2fixed
sid, trixie3.7.4-1.1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libarchivesource(unstable)(not affected)

Notes

- libarchive <not-affected> (Vulnerable code introduced later)
https://github.com/libarchive/libarchive/pull/2422
https://github.com/libarchive/libarchive/issues/2415
Introduced by: https://github.com/libarchive/libarchive/commit/2d8a5760c5ec553283a95a1aaca746f6eb472d0f (v3.7.5)
Fixed by: https://github.com/libarchive/libarchive/commit/82912103214506316bd9990d73f33d743d55f570

Search for package or bug name: Reporting problems