Distro News

FreeBSD errata fixes FIN retransmit loop and timer scaling in TCP BBR stack

Key Takeaway

FreeBSD's tcp_bbr.ko could retransmit a FIN segment indefinitely in the LAST-ACK state and mis-scaled its retransmission and persist timeouts; the fix ships in 15.2-RC1-p1, 15.1-RELEASE-p8, 14.5-RELEASE-p5 and 14.4-RELEASE-p14.

Summary

The FreeBSD Project published errata notice FreeBSD-EN-26:33.tcp on 2026-12-02, addressing a defect in the loadable tcp_bbr.ko kernel module that implements the BBR congestion control stack. The BBR code marked data sent beyond a receive window that the peer subsequently shrank, and it did not count retransmissions of that data toward the retransmission limit. Because the mark was not cleared when retransmitting after a timeout, a connection sitting in the LAST-ACK state could keep retransmitting its FIN segment without end.

The same code also miscomputed its retransmission and persist timeouts because of incorrect scaling of round-trip time estimates, so those timers could fire earlier or later than intended. The issue affects all supported FreeBSD versions, but only systems that have loaded tcp_bbr.ko, which is not loaded by default. Corrections landed in stable/15, stable/14, releng/15.2 (15.2-RC1-p1), releng/15.1 (15.1-RELEASE-p8), releng/14.5 (14.5-RELEASE-p5) and releng/14.4 (14.4-RELEASE-p14), with the earliest commit on 2026-11-24 and the release-branch updates on 2026-12-02.

What changes in the FreeBSD BBR TCP stack

  • Receive-window marking: BBR flagged segments sent beyond a receive window that the peer later reduced, and retransmissions of that data were excluded from the retransmission limit, allowing the connection to keep resending without hitting the drop threshold.
  • Stale mark on timeout retransmit: The mark was not cleared when data was retransmitted after a timeout, so a connection in LAST-ACK could loop on its FIN segment indefinitely while waiting for the peer to acknowledge it.
  • RTT scaling bug: Retransmission and persist timeouts were computed from incorrectly scaled round-trip time estimates, causing timers to fire earlier or later than the algorithm intends.
  • Impact scope: A non-responding peer leaves the BBR connection in LAST-ACK, consuming memory and network bandwidth; systems without tcp_bbr.ko loaded are unaffected, and kldstat -m tcp_bbr shows whether the module is present.
  • Remediation paths: Administrators can update via pkg upgrade -r FreeBSD-base on 15.0-RELEASE or later amd64/arm64 base-package installs, via freebsd-update fetch and install on binary set installs, or by applying the signed tcp.patch to /usr/src; a reboot is required, and stuck connections can be cleared with tcpdrop -S bbr -s LAST_ACK.

Why it matters

BBR is an optional but increasingly used congestion control choice on FreeBSD servers, so operators who load tcp_bbr.ko should treat this as a routine errata update and reboot into 15.1-RELEASE-p8, 14.5-RELEASE-p5, 14.4-RELEASE-p14 or a newer 15.2 snapshot. The LAST-ACK loop is a resource-exhaustion pattern rather than a remote code execution flaw, but it can quietly hold sockets and bandwidth on long-lived connections to peers that stop responding. The fix also restores correct timer behavior, which matters for anyone benchmarking or tuning BBR throughput against other stacks.

Original reference: www.freebsd.org →