According to the upstream, this problem was fixed in libmodbus-3.1.7. All affected repositories already contain libmodbus-3.1.10, which is not affected.