-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-EN-26:33.tcp Errata Notice The FreeBSD Project Topic: FIN retransmit loop in the TCP BBR stack Category: core Module: tcp_bbr Announced: 2026-12-02 Credits: Illia Vynohradov Affects: All supported versions of FreeBSD. Corrected: 2026-11-24 10:45:04 UTC (stable/15, 15.2-STABLE) 2026-11-27 00:00:24 UTC (releng/15.2, 15.2-RC1-p1) 2026-12-02 19:26:22 UTC (releng/15.1, 15.1-RELEASE-p8) 2026-11-24 20:12:46 UTC (stable/14, 14.5-STABLE) 2026-12-02 19:29:16 UTC (releng/14.5, 14.5-RELEASE-p5) 2026-12-02 19:28:46 UTC (releng/14.4, 14.4-RELEASE-p14) For general information regarding FreeBSD Errata Notices and Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background FreeBSD supports multiple pluggable TCP stacks. The BBR stack implements the Bottleneck Bandwidth and Round-trip propagation time (BBR) congestion control algorithm and is provided as the loadable kernel module tcp_bbr.ko. A TCP stack retransmits unacknowledged segments with an increasing timeout, and drops the connection after a limited number of attempts. A connection closed by the peer and then by the local application waits in the LAST-ACK state until the peer acknowledges the local FIN segment. II. Problem Description The BBR stack marked data sent beyond a receive window that the peer later shrank, and did not count retransmissions of that data toward the retransmission limit. It failed to clear the mark when retransmitting after a timeout, so a connection in the LAST-ACK state could retransmit its FIN segment indefinitely. The BBR stack also miscomputed its retransmission and persist timeouts, due to incorrect scaling of its round-trip time estimates. III. Impact If the peer stops responding, a connection using the BBR stack may remain in the LAST-ACK state indefinitely, consuming memory and network bandwidth. Retransmission and persist timers may also fire earlier or later than intended. IV. Workaround Systems that have not loaded the tcp_bbr.ko kernel module are not affected. The module is not loaded by default. To check whether it is loaded, run: # kldstat -m tcp_bbr BBR connections stuck in the LAST-ACK state can be terminated with tcpdrop(8): # tcpdrop -S bbr -s LAST_ACK Note that this drops all BBR connections in that state, and that dropping a connection resets it for the peer. V. Solution Upgrade your system to a supported FreeBSD stable or release / security branch (releng) dated after the correction date, and reboot the system. Perform one of the following: 1) To update your system installed from base system packages: Systems running a 15.0-RELEASE or later version of FreeBSD on the amd64 or arm64 platforms, which were installed using base system packages, can be updated via the pkg(8) utility: # pkg upgrade -r FreeBSD-base # shutdown -r +10min "Rebooting for an erratum fix" 2) To update your system installed from binary distribution sets: Systems running a RELEASE version of FreeBSD on the amd64 or arm64 platforms which were not installed using base system packages can be updated via the freebsd-update(8) utility: # freebsd-update fetch # freebsd-update install # shutdown -r +10min "Rebooting for an erratum fix" 3) To update your system via a source code patch: The following patches have been verified to apply to the applicable FreeBSD release branches. a) Download the relevant patch from the location below, and verify the detached PGP signature using your PGP utility. # fetch https://security.FreeBSD.org/patches/EN-26:33/tcp.patch # fetch https://security.FreeBSD.org/patches/EN-26:33/tcp.patch.asc # gpg --verify tcp.patch.asc b) Apply the patch. Execute the following commands as root: # cd /usr/src # patch -E -p0 < /path/to/patch c) Recompile your kernel as described in and reboot the system. VI. Correction details This issue is corrected as of the corresponding Git commit hash in the following stable and release branches: Branch/path Hash Revision - ------------------------------------------------------------------------- stable/15/ cbd17b66e64e stable/15-n287000 releng/15.2/ 480ff19ce877 releng/15.2-n286772 releng/15.1/ 303bed9b0394 releng/15.1-n283701 stable/14/ c1a81388fb03 stable/14-n275678 releng/14.5/ 4419eec502aa releng/14.5-n274937 releng/14.4/ b42ba0921863 releng/14.4-n273838 - ------------------------------------------------------------------------- Run the following command to see which files were modified by a particular commit: # git show --stat Or visit the following URL, replacing NNNNNN with the hash: To determine the commit count in a working tree (for comparison against nNNNNNN in the table above), run: # git rev-list --count --first-parent HEAD VII. References The latest revision of this advisory is available at -----BEGIN PGP SIGNATURE----- iQJPBAEBCgA5FiEEthUnfoEIffdcgYM7bljekB8AGu8FAmsQj08bFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMCwzAAoJEG5Y3pAfABrvnDIQAJjUfcfaBOKscwNdTs8b bTKnlyXkDcMqKNomufr0dnhhM3/YNPdPD396wd30eAajmKjtZh9O4qGF2GCI2K+2 jIs/GmcHb7cFF6ph2VH1qadTtJ8v626ARR8KdkICUoy0pSV7sT9OaMbbjL//CB1n BckmGa0yZ2u2eThtUyy9H5UszNM0CLdw4VT525l4g/zQ0E7HVXaBjCpJbGweyjdz qwkRKku1q4Gp6lwRWQxx/CILFdPSuDsD0O20eUIBkYf6ze5I7j6SYdEWoF8Rgu6p Nj4DN9vm6ZAW8EtbzS4ncTKJVOlM4SBZt0sIWslk1UuYk15dNh/KS9ma/o6RE09U cPqXzIkRI9mqpV4Xv4x4s9j96m75ZXeXvTV5N6J6wGl9HZQS+oeYBNMZDIT9fyFv Q0MGkHu9AY5J8PTj2JD3EsxfeCY69OUQJb7IFi+/AdvJhUHvEetEAzWIpUouBkk6 L8QUVLDtnpQ8jGWZMFFkN7HA0vXur9euW8l69EnFdPGo/tGPyOyGtPiglZetDCBW boiYDVD1AnWybZm/IhZpXpFJLhHMQtXMNmWPtPNp+aDC5lKunQU7voxPLy+sKx73 GGzFRkC2N0vQ3faVjXaPG3S2BsCM4x3HSengWkxPpPF32pnVANyZ6oA9ZMwk5v6L fhUkmfYITY5Ue2VuQJGI5gFf =vTKa -----END PGP SIGNATURE-----