Implement the improved SEG.ACK validation described in RFC 5961. In addition to that, also detect ghost ACKs, which are ACKs for data that has never been sent.
The additional checks are enabled by default, but can be disabled by setting the sysctl-variable net.inet.tcp.insecure-ack to a non-zero value.
This issue was reported in PR 250357.