GOOSE and MMS protocols have new Dissector bug failed assertion "recursion depth <= 100" messages
Summary
My team and I work with Wireshark everyday to help us build test code and we have for a very long time. Around Jan 5th, 2024 we started noticing the following errors on both GOOSE and MMS messages.
[Dissector bug, protocol MMS: ./asn1/mms/mms.cnf:892: failed assertion "recursion_depth <= 100"] [Dissector bug, protocol GOOSE: ./asn1/goose/goose.cnf:181: failed assertion "recursion_depth <= 100"]
I believe that we were on version 4.2.0 and our software center upgraded us to 4.2.2 when we started noticing the issue. We uninstalled version 4.2.2 and installed 4.0.12 because our software center said it was the last stable release, but this did not make the issue go away.
Steps to reproduce
Our PRES layer is set to the following
This message is seen from any MMS and GOOSE message that is sent over the wire from any SEL relay. It is reproducible every time.
What is the current bug behavior?
When a GOOSE or MMS message comes through Wireshark the following message is displayed and the remained of the content is not visible.
[Dissector bug, protocol MMS: ./asn1/mms/mms.cnf:892: failed assertion "recursion_depth <= 100"] [Dissector bug, protocol GOOSE: ./asn1/goose/goose.cnf:181: failed assertion "recursion_depth <= 100"]
I know that both MMS and GOOSE are built from ASN1 and BER standards, so I am not sure if something happened with that definition/dissection file?
What is the expected correct behavior?
I would expect to not see any Dissector bug errors and only see the message come over the wire.
Sample capture file
File with bug Wireshark_dissector_bug_file.pcapng
File without bug Wireshark_file_without_dissector_bug.pcapng
Relevant logs and/or screenshots
Screenshots without error messages
Build information
Version 4.0.12 (v4.0.12-0-gbf088601).
Compiled (64-bit) using Microsoft Visual Studio 2022 (VC++ 14.37, build 32822), with GLib 2.72.3, with PCRE2, with zlib 1.2.12, with Qt 5.15.2, with libpcap, with Lua 5.2.4, with GnuTLS 3.8.2 and PKCS #11 (closed) support, with Gcrypt 1.10.1, with Kerberos (MIT), with MaxMind, with nghttp2 1.46.0, with brotli, with LZ4, with Zstandard, with Snappy, with libxml2 2.9.14, with libsmi 0.4.8, with QtMultimedia, with automatic updates using WinSparkle 0.8.0, with AirPcap, with SpeexDSP (using bundled resampler), with Minizip, with binary plugins.
Running on 64-bit Windows 10 (22H2), build 19045, with Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz (with SSE4.2), with 16211 MB of physical memory, with GLib 2.72.3, with PCRE2 10.40 2022-04-14, with Qt 5.15.2, with Npcap version 1.71, based on libpcap version 1.10.2-PRE-GIT, with c-ares 1.19.0, with GnuTLS 3.8.2, with Gcrypt 1.10.1, with nghttp2 1.46.0, with brotli 1.0.9, with LZ4 1.9.3, with Zstandard 1.5.2, without AirPcap, with light display mode, without HiDPI, with LC_TYPE=English_United States.utf8, binary plugins supported.