Skip to contentSkip to conversation

package/libarchive: security bump to version 3.7.9

PATCH In review Thomas Perale via buildroot 2 participants 3 messages Apr 11, 2025 – Apr 16, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libarchive: security bump to version 3.7.9

Fixes the following security issues:

- CVE-2024-57970: 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.

For more information, see:
- https://nvd.nist.gov/vuln/detail/CVE-2024-57970
- https://github.com/libarchive/libarchive/commit/82912103214506316bd9990d73f33d743d55f570

- CVE-2025-1632: This affects the function list of the file bsdunzip.c. The manipulation leads to null pointer dereference. It is possible to launch the attack on the local host.

For more information, see:
- https://nvd.nist.gov/vuln/detail/CVE-2025-1632
- https://github.com/libarchive/libarchive/commit/c9bc934e7e91d302e0feca6e713ccc38d6d01532

- CVE-2025-25724: list_item_verbose in tar/util.c in libarchive through 3.7.7 does not check an strftime return value, which can lead to a denial of service or unspecified other impact via a crafted TAR archive that is read with a verbose value of 2.
For example, the 100-byte buffer may not be sufficient for a custom locale.

For more information, see:
- https://nvd.nist.gov/vuln/detail/CVE-2025-25724
- https://github.com/libarchive/libarchive/commit/c9bc934e7e91d302e0feca6e713ccc38d6d01532

The patch added in [1] are still needed for this version bump.

For more details on the version bump, see the release notes:
- https://github.com/libarchive/libarchive/releases/tag/v3.7.8
- https://github.com/libarchive/libarchive/releases/tag/v3.7.9

[1] 9ac63a3360 package/libarchive: fix uclibc build with libiconv (again)

---
 package/libarchive/libarchive.hash | 2 +-
 package/libarchive/libarchive.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/libarchive/libarchive.hash +1 -1
index c0b04b0f4b..d132664e17 100644
@@ -1,4 +1,4 @@
 # From https://www.libarchive.de/downloads/sha256sums
-sha256  879acd83c3399c7caaee73fe5f7418e06087ab2aaf40af3e99b9e29beb29faee  libarchive-3.7.7.tar.xz
+sha256  ed8b5732e4cd6e30fae909fb945cad8ff9cb7be5c6cdaa3944ec96e4a200c04c  libarchive-3.7.9.tar.xz
 # Locally computed:
 sha256  b2cdf763345de2de34cebf54394df3c61a105c3b71288603c251f2fa638200ba  COPYING
package/libarchive/libarchive.mk +1 -1
index 70123ee2b1..7fec01a040 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBARCHIVE_VERSION = 3.7.7
+LIBARCHIVE_VERSION = 3.7.9
 LIBARCHIVE_SOURCE = libarchive-$(LIBARCHIVE_VERSION).tar.xz
 LIBARCHIVE_SITE = https://www.libarchive.de/downloads
 LIBARCHIVE_INSTALL_STAGING = YES
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 40 lines · Thomas Perale via buildroot

Fixes the following security issues:

- CVE-2024-57970: 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.

For more information, see:
- https://nvd.nist.gov/vuln/detail/CVE-2024-57970
-
https://github.com/libarchive/libarchive/commit/82912103214506316bd9990d73f33d743d55f570

- CVE-2025-1632: This affects the function list of the file bsdunzip.c. The manipulation leads to null pointer dereference. It is possible to launch the attack on the local host.

For more information, see:
- https://nvd.nist.gov/vuln/detail/CVE-2025-1632
-
https://github.com/libarchive/libarchive/commit/c9bc934e7e91d302e0feca6e713ccc38d6d01532

- CVE-2025-25724: list_item_verbose in tar/util.c in libarchive through 3.7.7
does not check an strftime return value, which can lead to a denial
of
service or unspecified other impact via a crafted TAR archive that
is read
with a verbose value of 2.
For example, the 100-byte buffer may not be sufficient for a custom
locale.

For more information, see:
- https://nvd.nist.gov/vuln/detail/CVE-2025-25724
-
https://github.com/libarchive/libarchive/commit/c9bc934e7e91d302e0feca6e713ccc38d6d01532

The patch added in [1] are still needed for this version bump.

Quoted 7 lines

For more details on the version bump, see the release notes:
- https://github.com/libarchive/libarchive/releases/tag/v3.7.8
- https://github.com/libarchive/libarchive/releases/tag/v3.7.9

[1] 9ac63a3360 package/libarchive: fix uclibc build with libiconv (again)

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Thomas Perale via buildroot
Quoted 31 lines · Thomas Perale via buildroot

Fixes the following security issues:

- CVE-2024-57970: 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.

For more information, see:
- https://nvd.nist.gov/vuln/detail/CVE-2024-57970
- https://github.com/libarchive/libarchive/commit/82912103214506316bd9990d73f33d743d55f570

- CVE-2025-1632: This affects the function list of the file bsdunzip.c. The manipulation leads to null pointer dereference. It is possible to launch the attack on the local host.

For more information, see:
- https://nvd.nist.gov/vuln/detail/CVE-2025-1632
- https://github.com/libarchive/libarchive/commit/c9bc934e7e91d302e0feca6e713ccc38d6d01532

- CVE-2025-25724: list_item_verbose in tar/util.c in libarchive through 3.7.7 does not check an strftime return value, which can lead to a denial of service or unspecified other impact via a crafted TAR archive that is read with a verbose value of 2.
For example, the 100-byte buffer may not be sufficient for a custom locale.

For more information, see:
- https://nvd.nist.gov/vuln/detail/CVE-2025-25724
- https://github.com/libarchive/libarchive/commit/c9bc934e7e91d302e0feca6e713ccc38d6d01532

The patch added in [1] are still needed for this version bump.

Quoted 7 lines

For more details on the version bump, see the release notes:
- https://github.com/libarchive/libarchive/releases/tag/v3.7.8
- https://github.com/libarchive/libarchive/releases/tag/v3.7.9

[1] 9ac63a3360 package/libarchive: fix uclibc build with libiconv (again)

 Applied to 2025.02.x, 2024.11.x and 2024.02.x, thanks.

 Regards,
 Arnout

Quoted 20 lines
---
  package/libarchive/libarchive.hash | 2 +-
  package/libarchive/libarchive.mk   | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
package/libarchive/libarchive.hash +1 -1
index c0b04b0f4b..d132664e17 100644
@@ -1,4 +1,4 @@
  # From https://www.libarchive.de/downloads/sha256sums
-sha256  879acd83c3399c7caaee73fe5f7418e06087ab2aaf40af3e99b9e29beb29faee  libarchive-3.7.7.tar.xz
+sha256  ed8b5732e4cd6e30fae909fb945cad8ff9cb7be5c6cdaa3944ec96e4a200c04c  libarchive-3.7.9.tar.xz
  # Locally computed:
  sha256  b2cdf763345de2de34cebf54394df3c61a105c3b71288603c251f2fa638200ba  COPYING
package/libarchive/libarchive.mk +0 -0
index 70123ee2b1..7fec01a040 100644

package/libarchive/libarchive.mk line 10

Quoted 8 lines
package/libarchive/libarchive.mk +1 -1
@@ -4,7 +4,7 @@
  #
  ################################################################################
 
-LIBARCHIVE_VERSION = 3.7.7
+LIBARCHIVE_VERSION = 3.7.9
  LIBARCHIVE_SOURCE = libarchive-$(LIBARCHIVE_VERSION).tar.xz
  LIBARCHIVE_SITE = https://www.libarchive.de/downloads
  LIBARCHIVE_INSTALL_STAGING = YES

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot