From owner-cvs-src@FreeBSD.ORG Sun Apr 25 19:56:32 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7468E16A4CE; Sun, 25 Apr 2004 19:56:32 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F83943D2D; Sun, 25 Apr 2004 19:56:32 -0700 (PDT) (envelope-from silby@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i3Q2uWGe048209; Sun, 25 Apr 2004 19:56:32 -0700 (PDT) (envelope-from silby@repoman.freebsd.org) Received: (from silby@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i3Q2uV18048208; Sun, 25 Apr 2004 19:56:31 -0700 (PDT) (envelope-from silby) Message-Id: <200404260256.i3Q2uV18048208@repoman.freebsd.org> From: Mike Silbersack Date: Sun, 25 Apr 2004 19:56:31 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet tcp_input.c tcp_var.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2004 02:56:32 -0000 silby 2004/04/25 19:56:31 PDT FreeBSD src repository Modified files: sys/netinet tcp_input.c tcp_var.h Log: Tighten up reset handling in order to make reset attacks as difficult as possible while maintaining compatibility with the widest range of TCP stacks. The algorithm is as follows: --- For connections in the ESTABLISHED state, only resets with sequence numbers exactly matching last_ack_sent will cause a reset, all other segments will be silently dropped. For connections in all other states, a reset anywhere in the window will cause the connection to be reset. All other segments will be silently dropped. --- The necessity of accepting all in-window resets was discovered by jayanth and jlemon, both of whom have seen TCP stacks that will respond to FIN-ACK packets with resets not meeting the strict last_ack_sent check. Idea by: Darren Reed Reviewed by: truckman, jlemon, others(?) Revision Changes Path 1.235 +10 -0 src/sys/netinet/tcp_input.c 1.105 +1 -0 src/sys/netinet/tcp_var.h