diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-01-28 20:46:58 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-01-30 23:59:11 -0800 |
| commit | c0af251f3437ac4bc45575fd045b0c78dd5e81fe (patch) | |
| tree | d6fbab059026215f1b32cab87782ebb4296be7d4 | |
| parent | 2ce95a4d88f48fd132aaa7a7f6b1190b04f35800 (diff) | |
| download | meta-openembedded-c0af251f3437ac4bc45575fd045b0c78dd5e81fe.tar.gz | |
wireshark: upgrade 4.2.14 -> 4.6.3
Contains fix for CVE-2025-0962.
Removed CVE-2025-9817.patch because it is included in this release.
Add a patch that allows it building for native: it is looking for iconv.h
header as a new dependency for (optional) zlib-ng support, however it
is not installed in the sysroot for native builds. Add a patch that removes
this hard dependency for native builds.
Changelogs:
https://www.wireshark.org/docs/relnotes/wireshark-4.6.3.html
https://www.wireshark.org/docs/relnotes/wireshark-4.6.2.html
https://www.wireshark.org/docs/relnotes/wireshark-4.6.1.html
https://www.wireshark.org/docs/relnotes/wireshark-4.6.0.html
Overall changelogs (including 4.4 also): https://www.wireshark.org/docs/relnotes/
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-support/wireshark/README | 45 | ||||
| -rw-r--r-- | meta-networking/recipes-support/wireshark/files/0001-don-t-look-for-iconv.h-for-native-build.patch | 46 | ||||
| -rw-r--r-- | meta-networking/recipes-support/wireshark/files/0002-flex-Remove-line-directives.patch | 6 | ||||
| -rw-r--r-- | meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch | 6 | ||||
| -rw-r--r-- | meta-networking/recipes-support/wireshark/files/CVE-2025-9817.patch | 32 | ||||
| -rw-r--r-- | meta-networking/recipes-support/wireshark/wireshark_4.6.3.bb (renamed from meta-networking/recipes-support/wireshark/wireshark_4.2.14.bb) | 14 |
6 files changed, 61 insertions, 88 deletions
diff --git a/meta-networking/recipes-support/wireshark/README b/meta-networking/recipes-support/wireshark/README deleted file mode 100644 index f5e4d04777..0000000000 --- a/meta-networking/recipes-support/wireshark/README +++ /dev/null | |||
| @@ -1,45 +0,0 @@ | |||
| 1 | # | ||
| 2 | Wireshark - Notes | ||
| 3 | |||
| 4 | URL: http://www.wireshark.org/ | ||
| 5 | User Guide: http://www.wireshark.org/docs/wsug_html_chunked/ | ||
| 6 | Secruity advisories: http://www.wireshark.org/security/ | ||
| 7 | |||
| 8 | Wireshark is slowly moving away from gtk and towards QT as their graphical stack. | ||
| 9 | Currently gtk is supported with this release and I plan on integrating QT. | ||
| 10 | |||
| 11 | |||
| 12 | |||
| 13 | Adding the wireshark to your build | ||
| 14 | ======================================== | ||
| 15 | |||
| 16 | via local.conf | ||
| 17 | IMAGE_INSTALL:append = " wireshark" | ||
| 18 | |||
| 19 | Adding the wireshark to your graphical build | ||
| 20 | ======================================== | ||
| 21 | via local.conf | ||
| 22 | IMAGE_INSTALL:append = " wireshark" | ||
| 23 | |||
| 24 | and one of: | ||
| 25 | |||
| 26 | EXTRA_IMAGE_FEATURES += "x11-base" | ||
| 27 | |||
| 28 | or use the "core-image-x11" | ||
| 29 | |||
| 30 | |||
| 31 | Maintenance | ||
| 32 | ----------- | ||
| 33 | |||
| 34 | Send patches, comments or questions to openembedded-devel@lists.openembedded.org | ||
| 35 | |||
| 36 | When sending single patches, please use something like: | ||
| 37 | |||
| 38 | git send-email -1 -M \ | ||
| 39 | --to openembedded-devel@lists.openembedded.org \ | ||
| 40 | --cc akuster@mvista.com \ | ||
| 41 | --subject-prefix=meta-networking][PATCH | ||
| 42 | |||
| 43 | Maintainer: Armin Kuster <akuster@mvista.com> | ||
| 44 | |||
| 45 | |||
diff --git a/meta-networking/recipes-support/wireshark/files/0001-don-t-look-for-iconv.h-for-native-build.patch b/meta-networking/recipes-support/wireshark/files/0001-don-t-look-for-iconv.h-for-native-build.patch new file mode 100644 index 0000000000..5cc16459ce --- /dev/null +++ b/meta-networking/recipes-support/wireshark/files/0001-don-t-look-for-iconv.h-for-native-build.patch | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | From 9a9d99fb57caa38c4bc045f544429ec919ec6158 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 3 | Date: Mon, 26 Jan 2026 21:26:49 +0100 | ||
| 4 | Subject: [PATCH] don't look for iconv.h for native build | ||
| 5 | |||
| 6 | iconv.h is not installed in the sysroot for native builds, and cmake | ||
| 7 | only searches for it in the sysroot. | ||
| 8 | |||
| 9 | It seems to be only required for zlib-ng support (based on the | ||
| 10 | commit[1] that introduced this dependency), which is currently not | ||
| 11 | enabled in the recipe. | ||
| 12 | |||
| 13 | To avoid build failure due to not finding this header during configuration, | ||
| 14 | remove this dependency from native builds | ||
| 15 | |||
| 16 | Upstream-Status: Inappropriate [OE specific] | ||
| 17 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 18 | --- | ||
| 19 | cmake/modules/FindLibXml2.cmake | 7 +------ | ||
| 20 | 1 file changed, 1 insertion(+), 6 deletions(-) | ||
| 21 | |||
| 22 | diff --git a/cmake/modules/FindLibXml2.cmake b/cmake/modules/FindLibXml2.cmake | ||
| 23 | index d36b390..f3e4762 100644 | ||
| 24 | --- a/cmake/modules/FindLibXml2.cmake | ||
| 25 | +++ b/cmake/modules/FindLibXml2.cmake | ||
| 26 | @@ -66,11 +66,6 @@ find_path(LIBXML2_INCLUDE_DIR NAMES libxml/xpath.h | ||
| 27 | PATH_SUFFIXES libxml2 | ||
| 28 | ) | ||
| 29 | |||
| 30 | -find_path(ICONV_INCLUDE_DIR NAMES iconv.h | ||
| 31 | - HINTS | ||
| 32 | - ${LIBXML2_HINTS}/include | ||
| 33 | - ) | ||
| 34 | - | ||
| 35 | # CMake 3.9 and below used 'LIBXML2_LIBRARIES' as the name of | ||
| 36 | # the cache entry storing the find_library result. Use the | ||
| 37 | # value if it was set by the project or user. | ||
| 38 | @@ -103,7 +98,7 @@ elseif(LIBXML2_INCLUDE_DIR AND EXISTS "${LIBXML2_INCLUDE_DIR}/libxml/xmlversion. | ||
| 39 | unset(libxml2_version_str) | ||
| 40 | endif() | ||
| 41 | |||
| 42 | -set(LIBXML2_INCLUDE_DIRS ${LIBXML2_INCLUDE_DIR} ${PC_LIBXML_INCLUDE_DIRS} ${ICONV_INCLUDE_DIR}) | ||
| 43 | +set(LIBXML2_INCLUDE_DIRS ${LIBXML2_INCLUDE_DIR} ${PC_LIBXML_INCLUDE_DIRS}) | ||
| 44 | set(LIBXML2_LIBRARIES ${LIBXML2_LIBRARY}) | ||
| 45 | |||
| 46 | include(FindPackageHandleStandardArgs) | ||
diff --git a/meta-networking/recipes-support/wireshark/files/0002-flex-Remove-line-directives.patch b/meta-networking/recipes-support/wireshark/files/0002-flex-Remove-line-directives.patch index 0e6249c939..c6f5909cc9 100644 --- a/meta-networking/recipes-support/wireshark/files/0002-flex-Remove-line-directives.patch +++ b/meta-networking/recipes-support/wireshark/files/0002-flex-Remove-line-directives.patch | |||
| @@ -23,19 +23,19 @@ index 20caa09..174f452 100644 | |||
| 23 | 23 | ||
| 24 | - ADD_CUSTOM_COMMAND( | 24 | - ADD_CUSTOM_COMMAND( |
| 25 | - OUTPUT ${_outc} ${_outh} | 25 | - OUTPUT ${_outc} ${_outh} |
| 26 | - COMMAND ${LEX_EXECUTABLE} $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:--debug> -o${_outc} --header-file=${_outh} ${_in} | 26 | - COMMAND ${LEX_EXECUTABLE} $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:--debug> --outfile=${_outc} --header-file=${_outh} ${_in} |
| 27 | - DEPENDS ${_in} | 27 | - DEPENDS ${_in} |
| 28 | - ) | 28 | - ) |
| 29 | + IF (DEFINED ENV{SOURCE_DATE_EPOCH}) | 29 | + IF (DEFINED ENV{SOURCE_DATE_EPOCH}) |
| 30 | + ADD_CUSTOM_COMMAND( | 30 | + ADD_CUSTOM_COMMAND( |
| 31 | + OUTPUT ${_outc} ${_outh} | 31 | + OUTPUT ${_outc} ${_outh} |
| 32 | + COMMAND ${LEX_EXECUTABLE} $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:--debug> --noline -o${_outc} --header-file=${_outh} ${_in} | 32 | + COMMAND ${LEX_EXECUTABLE} $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:--debug> --noline --outfile=${_outc} --header-file=${_outh} ${_in} |
| 33 | + DEPENDS ${_in} | 33 | + DEPENDS ${_in} |
| 34 | + ) | 34 | + ) |
| 35 | + ELSE () | 35 | + ELSE () |
| 36 | + ADD_CUSTOM_COMMAND( | 36 | + ADD_CUSTOM_COMMAND( |
| 37 | + OUTPUT ${_outc} ${_outh} | 37 | + OUTPUT ${_outc} ${_outh} |
| 38 | + COMMAND ${LEX_EXECUTABLE} $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:--debug> -o${_outc} --header-file=${_outh} ${_in} | 38 | + COMMAND ${LEX_EXECUTABLE} $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:--debug> --ooutfile=${_outc} --header-file=${_outh} ${_in} |
| 39 | + DEPENDS ${_in} | 39 | + DEPENDS ${_in} |
| 40 | + ) | 40 | + ) |
| 41 | + ENDIF () | 41 | + ENDIF () |
diff --git a/meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch b/meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch index 1a6fe8d39e..5b4d5aaa82 100644 --- a/meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch +++ b/meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch | |||
| @@ -17,7 +17,7 @@ diff --git a/cmake/modules/UseLemon.cmake b/cmake/modules/UseLemon.cmake | |||
| 17 | index e419de1..fa4034e 100644 | 17 | index e419de1..fa4034e 100644 |
| 18 | --- a/cmake/modules/UseLemon.cmake | 18 | --- a/cmake/modules/UseLemon.cmake |
| 19 | +++ b/cmake/modules/UseLemon.cmake | 19 | +++ b/cmake/modules/UseLemon.cmake |
| 20 | @@ -12,6 +12,7 @@ if(LEMON_EXECUTABLE) | 20 | @@ -17,6 +17,7 @@ if(LEMON_EXECUTABLE) |
| 21 | ${_out}.h | 21 | ${_out}.h |
| 22 | ${_out}.out | 22 | ${_out}.out |
| 23 | COMMAND ${LEMON_EXECUTABLE} | 23 | COMMAND ${LEMON_EXECUTABLE} |
| @@ -25,11 +25,11 @@ index e419de1..fa4034e 100644 | |||
| 25 | -T/usr/share/lemon/lempar.c | 25 | -T/usr/share/lemon/lempar.c |
| 26 | -d. | 26 | -d. |
| 27 | ${_in} | 27 | ${_in} |
| 28 | @@ -30,6 +31,7 @@ else() | 28 | @@ -35,6 +36,7 @@ else() |
| 29 | ${_out}.h | 29 | ${_out}.h |
| 30 | ${_out}.out | 30 | ${_out}.out |
| 31 | COMMAND $<TARGET_FILE:lemon> | 31 | COMMAND $<TARGET_FILE:lemon> |
| 32 | + -l | 32 | + -l |
| 33 | -T${CMAKE_SOURCE_DIR}/tools/lemon/lempar.c | 33 | -T${CMAKE_SOURCE_DIR}/tools/lemon/lempar.c |
| 34 | -d. | 34 | -d. |
| 35 | ${_in} | 35 | -- |
diff --git a/meta-networking/recipes-support/wireshark/files/CVE-2025-9817.patch b/meta-networking/recipes-support/wireshark/files/CVE-2025-9817.patch deleted file mode 100644 index 034c51778e..0000000000 --- a/meta-networking/recipes-support/wireshark/files/CVE-2025-9817.patch +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | From 39daba5e247ea495f88b0be82f0b7ebbdbf50fba Mon Sep 17 00:00:00 2001 | ||
| 2 | From: John Thacker <johnthacker@gmail.com> | ||
| 3 | Date: Sat, 26 Jul 2025 07:10:28 -0400 | ||
| 4 | Subject: [PATCH] ssh: Add a null check | ||
| 5 | |||
| 6 | Fix #20642 | ||
| 7 | |||
| 8 | Upstream-Status: Backport [https://gitlab.com/wireshark/wireshark/-/commit/39daba5e247ea495f88b0be82f0b7ebbdbf50fba] | ||
| 9 | CVE: CVE-2025-9817 | ||
| 10 | Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> | ||
| 11 | --- | ||
| 12 | epan/dissectors/packet-ssh.c | 4 ++++ | ||
| 13 | 1 file changed, 4 insertions(+) | ||
| 14 | |||
| 15 | diff --git a/epan/dissectors/packet-ssh.c b/epan/dissectors/packet-ssh.c | ||
| 16 | index 4f2b0ff..9b3b904 100644 | ||
| 17 | --- a/epan/dissectors/packet-ssh.c | ||
| 18 | +++ b/epan/dissectors/packet-ssh.c | ||
| 19 | @@ -2359,6 +2359,10 @@ ssh_kex_shared_secret(gint kex_type, ssh_bignum *pub, ssh_bignum *priv, ssh_bign | ||
| 20 | } | ||
| 21 | |||
| 22 | if(kex_type==SSH_KEX_DH_GEX){ | ||
| 23 | + if (modulo == NULL) { | ||
| 24 | + ws_debug("Missing group modulo"); | ||
| 25 | + return NULL; | ||
| 26 | + } | ||
| 27 | gcry_mpi_t b = NULL; | ||
| 28 | gcry_mpi_scan(&b, GCRYMPI_FMT_USG, pub->data, pub->length, NULL); | ||
| 29 | gcry_mpi_t d = NULL, e = NULL, m = NULL; | ||
| 30 | -- | ||
| 31 | 2.43.0 | ||
| 32 | |||
diff --git a/meta-networking/recipes-support/wireshark/wireshark_4.2.14.bb b/meta-networking/recipes-support/wireshark/wireshark_4.6.3.bb index bd014055a9..2cf9693f5c 100644 --- a/meta-networking/recipes-support/wireshark/wireshark_4.2.14.bb +++ b/meta-networking/recipes-support/wireshark/wireshark_4.6.3.bb | |||
| @@ -4,7 +4,7 @@ SECTION = "net" | |||
| 4 | LICENSE = "GPL-2.0-only" | 4 | LICENSE = "GPL-2.0-only" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=570a9b3749dd0463a1778803b12a6dce" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=570a9b3749dd0463a1778803b12a6dce" |
| 6 | 6 | ||
| 7 | DEPENDS = "pcre2 expat glib-2.0 glib-2.0-native libgcrypt libgpg-error libxml2 bison-native c-ares speexdsp" | 7 | DEPENDS = "pcre2 expat glib-2.0 glib-2.0-native libgcrypt libgpg-error libxml2 bison-native c-ares speexdsp virtual/libiconv" |
| 8 | 8 | ||
| 9 | DEPENDS:append:class-target = " wireshark-native chrpath-replacement-native " | 9 | DEPENDS:append:class-target = " wireshark-native chrpath-replacement-native " |
| 10 | 10 | ||
| @@ -13,12 +13,13 @@ SRC_URI = "https://1.eu.dl.wireshark.org/src/all-versions/wireshark-${PV}.tar.xz | |||
| 13 | file://0002-flex-Remove-line-directives.patch \ | 13 | file://0002-flex-Remove-line-directives.patch \ |
| 14 | file://0004-lemon-Remove-line-directives.patch \ | 14 | file://0004-lemon-Remove-line-directives.patch \ |
| 15 | file://0001-UseLemon.cmake-do-not-use-lemon-data-from-the-host.patch \ | 15 | file://0001-UseLemon.cmake-do-not-use-lemon-data-from-the-host.patch \ |
| 16 | file://CVE-2025-9817.patch \ | ||
| 17 | " | 16 | " |
| 18 | 17 | ||
| 18 | SRC_URI:append:class-native = " file://0001-don-t-look-for-iconv.h-for-native-build.patch" | ||
| 19 | |||
| 19 | UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src/all-versions" | 20 | UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src/all-versions" |
| 20 | 21 | ||
| 21 | SRC_URI[sha256sum] = "098177f021951638f5bdca5b01f284c14fcc3f6c804f7aa2ca00fdcb99c7a166" | 22 | SRC_URI[sha256sum] = "9fa6a745df8540899dc9d433e4634d6755371ff87bd722ce04c7d7b0132d9af3" |
| 22 | 23 | ||
| 23 | PE = "1" | 24 | PE = "1" |
| 24 | 25 | ||
| @@ -59,16 +60,19 @@ EXTRA_OECMAKE += "-DENABLE_NETLINK=ON \ | |||
| 59 | -DM_INCLUDE_DIR=${includedir} \ | 60 | -DM_INCLUDE_DIR=${includedir} \ |
| 60 | -DM_LIBRARY=${libdir} \ | 61 | -DM_LIBRARY=${libdir} \ |
| 61 | " | 62 | " |
| 63 | |||
| 64 | # use lemon from ${PN}-native, instead of cross-compiled or host versions | ||
| 65 | EXTRA_OECMAKE:append:class-target = " -DLEMON_EXECUTABLE=${STAGING_BINDIR_NATIVE}/lemon" | ||
| 62 | CFLAGS:append = " -lm" | 66 | CFLAGS:append = " -lm" |
| 63 | 67 | ||
| 64 | do_compile:append:class-target() { | 68 | do_compile:append:class-target() { |
| 65 | # Fix TMPDIR, these are in the comments section | 69 | # Fix TMPDIR, these are in the comments section |
| 66 | sed -i -e "s:** source file.*::g" ${B}/wiretap/ascend_parser.c | 70 | sed -i -e "s:** source file.*::g" ${B}/wiretap/ascend_parser.c |
| 67 | sed -i -e "s:** source file.*::g" ${B}/wiretap/candump_parser.c | ||
| 68 | sed -i -e "s:** source file.*::g" ${B}/wiretap/busmaster_parser.c | 71 | sed -i -e "s:** source file.*::g" ${B}/wiretap/busmaster_parser.c |
| 69 | sed -i -e "s:** source file.*::g" ${B}/epan/protobuf_lang_parser.c | 72 | sed -i -e "s:** source file.*::g" ${B}/epan/protobuf_lang_parser.c |
| 70 | sed -i -e "s:** source file.*::g" ${B}/epan/dtd_grammar.c | ||
| 71 | sed -i -e "s:** source file.*::g" ${B}/epan/dfilter/grammar.c | 73 | sed -i -e "s:** source file.*::g" ${B}/epan/dfilter/grammar.c |
| 74 | test -e ${B}/plugins/epan/mate/mate_grammar.c && \ | ||
| 75 | sed -i -e "s:** source file.*::g" ${B}/plugins/epan/mate/mate_grammar.c | ||
| 72 | } | 76 | } |
| 73 | 77 | ||
| 74 | do_install:append:class-native() { | 78 | do_install:append:class-native() { |
