Fixes & security.
https://github.com/the-tcpdump-group/libpcap/blob/libpcap-1.10.7/CHANGES

Plugs CVEs:
CVE-2026-0799: Access M[] safely in the BPF interpreter.
CVE-2026-31912: Mind the program bounds in pcap_offline_filter().
CVE-2026-31911: Fail opcodes safely in the BPF interpreter.
CVE-2026-6244: Avoid division by zero via pcap_offline_filter().
CVE-2026-6554: Limit "ja L" looping in pcap_offline_filter().
CVE-2026-18313: Fix a memory leak in rpcapd.
CVE-2026-18238: Fix RPCAP_MSG_PACKET validation.

* Fix slight offset in patches, applies cleanly.

* Add y2038 global option.

Signed-off-by: Christian Melki <[email protected]>
---
 .../0100-build-and-install-share-lib-only.patch             | 6 +++---
 .../0101-pcap-config-add-SYSROOT-support.patch              | 0
 patches/{libpcap-1.10.6 => libpcap-1.10.7}/series           | 0
 rules/libpcap.make                                          | 5 +++--
 4 files changed, 6 insertions(+), 5 deletions(-)
 rename patches/{libpcap-1.10.6 => 
libpcap-1.10.7}/0100-build-and-install-share-lib-only.patch (87%)
 rename patches/{libpcap-1.10.6 => 
libpcap-1.10.7}/0101-pcap-config-add-SYSROOT-support.patch (100%)
 rename patches/{libpcap-1.10.6 => libpcap-1.10.7}/series (100%)

diff --git a/patches/libpcap-1.10.6/0100-build-and-install-share-lib-only.patch 
b/patches/libpcap-1.10.7/0100-build-and-install-share-lib-only.patch
similarity index 87%
rename from patches/libpcap-1.10.6/0100-build-and-install-share-lib-only.patch
rename to patches/libpcap-1.10.7/0100-build-and-install-share-lib-only.patch
index 759ba91f3..b2bd2a9ed 100644
--- a/patches/libpcap-1.10.6/0100-build-and-install-share-lib-only.patch
+++ b/patches/libpcap-1.10.7/0100-build-and-install-share-lib-only.patch
@@ -12,10 +12,10 @@ Signed-off-by: Alexander Aring <[email protected]>
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index fe32c40cf62f..6e56b8fe3af8 100644
+index 310b9b5ea4a7..05e9b39de282 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -420,7 +420,7 @@ RELEASE_FILES = $(COMMON_C_SRC) $(HDR) $(MAN1) 
$(MAN3PCAP_EXPAND) \
+@@ -421,7 +421,7 @@ RELEASE_FILES = $(COMMON_C_SRC) $(HDR) $(MAN1) 
$(MAN3PCAP_EXPAND) \
        $(MAN3PCAP_NOEXPAND) $(MANFILE) $(MANMISC) $(EXTRA_DIST) \
        $(TEST_DIST)
  
@@ -24,7 +24,7 @@ index fe32c40cf62f..6e56b8fe3af8 100644
  
  libpcap.a: $(OBJ)
        @rm -f $@
-@@ -606,7 +606,7 @@ testprogs: FORCE libpcap.a
+@@ -607,7 +607,7 @@ testprogs: FORCE libpcap.a
  
  FORCE:
  
diff --git a/patches/libpcap-1.10.6/0101-pcap-config-add-SYSROOT-support.patch 
b/patches/libpcap-1.10.7/0101-pcap-config-add-SYSROOT-support.patch
similarity index 100%
rename from patches/libpcap-1.10.6/0101-pcap-config-add-SYSROOT-support.patch
rename to patches/libpcap-1.10.7/0101-pcap-config-add-SYSROOT-support.patch
diff --git a/patches/libpcap-1.10.6/series b/patches/libpcap-1.10.7/series
similarity index 100%
rename from patches/libpcap-1.10.6/series
rename to patches/libpcap-1.10.7/series
diff --git a/rules/libpcap.make b/rules/libpcap.make
index 468e77e22..42102cc5f 100644
--- a/rules/libpcap.make
+++ b/rules/libpcap.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_LIBPCAP) += libpcap
 #
 # Paths and names
 #
-LIBPCAP_VERSION        := 1.10.6
-LIBPCAP_SHA256 := 
872dd11337fe1ab02ad9d4fee047c9da244d695c6ddf34e2ebb733efd4ed8aa9
+LIBPCAP_VERSION        := 1.10.7
+LIBPCAP_SHA256 := 
0b394ac90dbc0a9838ff97468e05c9c9a3e873dec2514cd58db65d859d296e31
 LIBPCAP                := libpcap-$(LIBPCAP_VERSION)
 LIBPCAP_SUFFIX := tar.gz
 LIBPCAP_URL    := https://www.tcpdump.org/release/$(LIBPCAP).$(LIBPCAP_SUFFIX)
@@ -57,6 +57,7 @@ LIBPCAP_CONF_OPT      := \
        --$(call ptx/endis, PTXCONF_LIBPCAP_BLUETOOTH)-bluetooth \
        --disable-dbus \
        --disable-rdma \
+       --$(call ptx/endis, PTXDIST_Y2038)-year2038 \
        --with-pcap=linux \
        --with-libnl \
        --without-dag \
-- 
2.43.0


Reply via email to