In Wireshark 2.4.0, the Modbus dissector could crash with a NULL pointer dereference. This was addressed in epan/dissectors/packet-mbtcp.c by adding length validation.
https://www.wireshark.org/security/wnpa-sec-2017-40.html
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=13925