A heap-based buffer overflow flaw was found in libmodbus in function modbus_reply() in src/modbus.c.
https://lists.debian.org/debian-lts-announce/2022/09/msg00007.html
https://github.com/stephane/libmodbus/issues/614
https://github.com/stephane/libmodbus/commit/b4ef4c17d618eba0adccc4c7d9e9a1ef809fc9b6