summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-connectivity/libpcap/libpcap/CVE-2025-11964.patch33
-rw-r--r--meta/recipes-connectivity/libpcap/libpcap_1.10.4.bb1
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/libpcap/libpcap/CVE-2025-11964.patch b/meta/recipes-connectivity/libpcap/libpcap/CVE-2025-11964.patch
new file mode 100644
index 0000000000..003d21fb1f
--- /dev/null
+++ b/meta/recipes-connectivity/libpcap/libpcap/CVE-2025-11964.patch
@@ -0,0 +1,33 @@
1From 7fabf607f2319a36a0bd78444247180acb838e69 Mon Sep 17 00:00:00 2001
2From: Guy Harris <gharris@sonic.net>
3Date: Sun, 7 Sep 2025 12:51:56 -0700
4Subject: [PATCH] Fix a copy-and-pasteo in utf_16le_to_utf_8_truncated().
5
6For the four octets of UTF-8 case, it was decrementing the remaining
7buffer length by 3, not 4.
8
9Thanks to a team of developers from the Univesity of Waterloo for
10reporting this.
11
12(cherry picked from commit aebfca1aea2fc8c177760a26e8f4de27b51d1b3b)
13
14CVE: CVE-2025-11964
15Upstream-Status: Backport [https://github.com/the-tcpdump-group/libpcap/commit/7fabf607f2319a36a0bd78444247180acb838e69]
16Signed-off-by: Peter Marko <peter.marko@siemens.com>
17---
18 fmtutils.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/fmtutils.c b/fmtutils.c
22index a5a4fe62..78a0f8b7 100644
23--- a/fmtutils.c
24+++ b/fmtutils.c
25@@ -235,7 +235,7 @@ utf_16le_to_utf_8_truncated(const wchar_t *utf_16, char *utf_8,
26 *utf_8++ = ((uc >> 12) & 0x3F) | 0x80;
27 *utf_8++ = ((uc >> 6) & 0x3F) | 0x80;
28 *utf_8++ = ((uc >> 0) & 0x3F) | 0x80;
29- utf_8_len -= 3;
30+ utf_8_len -= 4;
31 }
32 }
33
diff --git a/meta/recipes-connectivity/libpcap/libpcap_1.10.4.bb b/meta/recipes-connectivity/libpcap/libpcap_1.10.4.bb
index df091e5ca2..ee7d7540f6 100644
--- a/meta/recipes-connectivity/libpcap/libpcap_1.10.4.bb
+++ b/meta/recipes-connectivity/libpcap/libpcap_1.10.4.bb
@@ -16,6 +16,7 @@ SRC_URI = "https://www.tcpdump.org/release/${BP}.tar.gz \
16 file://CVE-2024-8006.patch \ 16 file://CVE-2024-8006.patch \
17 file://CVE-2025-11961-01.patch \ 17 file://CVE-2025-11961-01.patch \
18 file://CVE-2025-11961-02.patch \ 18 file://CVE-2025-11961-02.patch \
19 file://CVE-2025-11964.patch \
19 " 20 "
20 21
21SRC_URI[sha256sum] = "ed19a0383fad72e3ad435fd239d7cd80d64916b87269550159d20e47160ebe5f" 22SRC_URI[sha256sum] = "ed19a0383fad72e3ad435fd239d7cd80d64916b87269550159d20e47160ebe5f"