From owner-cvs-all Sun Aug 5 16: 8:46 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A838737B401; Sun, 5 Aug 2001 16:08:38 -0700 (PDT) (envelope-from jesper@FreeBSD.org) Received: (from jesper@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f75N8cq40295; Sun, 5 Aug 2001 16:08:38 -0700 (PDT) (envelope-from jesper) Message-Id: <200108052308.f75N8cq40295@freefall.freebsd.org> From: Jesper Skriver Date: Sun, 5 Aug 2001 16:08:38 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet ip_input.c src/sys/netinet6 frag6.c in6_proto.c X-FreeBSD-CVS-Branch: RELENG_4_3 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jesper 2001/08/05 16:08:38 PDT Modified files: (Branch: RELENG_4_3) sys/netinet ip_input.c sys/netinet6 frag6.c in6_proto.c Log: MFS src/sys/netinet/ip_input.c rev 1.130.2.22 src/sys/netinet6/frag6.c rev 1.2.2.4 src/sys/netinet6/in6_proto.c rev 1.6.2.4 Prevent denial of service using bogus fragmented IPv4 packets. A attacker sending a lot of bogus fragmented packets to the target (with different IPv4 identification field - ip_id), may be able to put the target machine into mbuf starvation state. By setting a upper limit on the number of reassembly queues we prevent this situation. This upper limit is controlled by the new sysctl net.inet.ip.maxfragpackets which defaults to nmbclusters/4 If you want old behaviour (no upper limit) set this sysctl to a negative value. If you don't want to accept any fragments (not recommended) set the sysctl to 0 (zero) Change the default value of net.inet6.ip6.maxfragpackets from 200 to nmbclusters/4 to match the IPv4 case. Approved by: security-officer (kris) Obtained from: NetBSD (partially) Revision Changes Path 1.130.2.21.2.1 +34 -2 src/sys/netinet/ip_input.c 1.2.2.2.2.1 +3 -1 src/sys/netinet6/frag6.c 1.6.2.3.2.1 +2 -2 src/sys/netinet6/in6_proto.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message