Re: Non-Last Small IPv6 Fragments

Bob Hinden <bob.hinden@gmail.com> Fri, 11 January 2019 22:57 UTC

Return-Path: <bob.hinden@gmail.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B2DF2128D0C for <ipv6@ietfa.amsl.com>; Fri, 11 Jan 2019 14:57:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dTkP-9vvgauF for <ipv6@ietfa.amsl.com>; Fri, 11 Jan 2019 14:57:11 -0800 (PST)
Received: from mail-it1-x12a.google.com (mail-it1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CC95B128CE4 for <ipv6@ietf.org>; Fri, 11 Jan 2019 14:57:11 -0800 (PST)
Received: by mail-it1-x12a.google.com with SMTP id x124so3160270itd.1 for <ipv6@ietf.org>; Fri, 11 Jan 2019 14:57:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=RJSCXP0uFrMw6vFbxurmgQef2rxhIV287Y2lUzqf7Yc=; b=eQL8U144QVRDt5zNHLd4C+PiKHlFy5xl5sS7xPo+qLA5MHB0T1vq3Bnb07kfUCxM1/ nxhsr4f7n3mXjPsmZ8sJk3Ow6vZZkwcbA7zhmpyfRRdasPOQG0Wy6sJE1S6R5+oA8dk5 y0BE8qNWGO/6NAV+GNDGrWbaTYrjca/YQZnBTEhBlZfJ+RmwsZmRRlcw7gEzeLf2xo96 dWXKy7BCqjKPfQWi6VAnJ0oOcwy25T7oxhUjObuyvrvvWoE7CUBnTM6MBJgR2iMcfx19 SAJfjVpyk6a6m7lLeKZi7XrJ3SoqY6MIGvLE4hDIIzt8NHvMVavqwYOFuaf3+zcbg83t thrw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=RJSCXP0uFrMw6vFbxurmgQef2rxhIV287Y2lUzqf7Yc=; b=emk6uu77G3Fkmr3OFgWQ7a9wI5bXj7akrkiPf1VCJfrRqlbHOsG3EHpVzXZS7a62DA bnFLudKWX2GNUNXKhFBSXLEp+Zjdh1alG/Lgac1i7IU/lRw1MPcVuIrjIw8Q1+4Wrx0l VSHGWc7ZXuHaqIGwB6aTS8+60eI8vDqcpr+MONN1mafRLGYjw1tGbVzuC7YTElILEULy vY2oNGe/J9SugpPqhUaxLYd+hQ33FZ0q7MbJLaN2UGwV/jbtZB6/oVazwEr925cj61xe vHs1QqJ7M/QuzyhHH05yvsPTmc3OTz+5ko9oCRhmoK/TQzRd3SbBWtOeA1HxjkktWHG0 Xvbw==
X-Gm-Message-State: AJcUukefl0Tce0c4OFct66OPQVStk+1SO3En1kNqjTWGP5Y0X6bfAOXT xcRu+q64c7k72tvzCGKBiis=
X-Google-Smtp-Source: ALg8bN7iG5wjQLJaB0ugAJYnwCV/kwoRzVAxuQdoHRmLj2Z+Db0mk93rTpd/cBSSXhn+XivhqTw7fw==
X-Received: by 2002:a02:8244:: with SMTP id q4mr11671172jag.43.1547247431122; Fri, 11 Jan 2019 14:57:11 -0800 (PST)
Received: from [172.16.224.219] ([209.97.127.34]) by smtp.gmail.com with ESMTPSA id l3sm13294372itb.43.2019.01.11.14.57.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jan 2019 14:57:10 -0800 (PST)
From: Bob Hinden <bob.hinden@gmail.com>
Message-Id: <F36516B8-EE25-4225-8C02-91BEF4DE8D3D@gmail.com>
Content-Type: multipart/signed; boundary="Apple-Mail=_8205DAE5-615D-4F1E-84D4-1CD1A4ED137D"; protocol="application/pgp-signature"; micalg="pgp-sha512"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Subject: Re: Non-Last Small IPv6 Fragments
Date: Fri, 11 Jan 2019 14:57:09 -0800
In-Reply-To: <CAOSSMjWS9po2XuBHJ5hbN9hfNDKZ1diecH08Kt697-15jRtAvg@mail.gmail.com>
Cc: Bob Hinden <bob.hinden@gmail.com>, IPv6 List <ipv6@ietf.org>
To: Timothy Winters <twinters@iol.unh.edu>
References: <CAOSSMjV0Vazum5OKztWhAhJrjLjXc5w5YGxdzHgbzi7YVSk7rg@mail.gmail.com> <2AB3F16C-FC0E-4EF7-B1ED-1A97F2CEC69B@gmail.com> <BYAPR05MB42458F851962F26AE1E15CC4AE840@BYAPR05MB4245.namprd05.prod.outlook.com> <CAAedzxofmhokstWuq7mRWnd5PTz5WQaiDNnE8O_VHXF_PbK6nw@mail.gmail.com> <BYAPR05MB4245388FB800873A5A8ED12AAE840@BYAPR05MB4245.namprd05.prod.outlook.com> <66bf652a-2bc0-6814-6ded-a63eece7fbe2@gmail.com> <BYAPR05MB4245B9305E6EC57EDD45509FAE840@BYAPR05MB4245.namprd05.prod.outlook.com> <7453645f-ff91-e866-b087-e7d4f1450ab6@gmail.com> <0e792b48-4360-6977-9ae8-9cdfdc78c7b8@gmail.com> <16A642DC-D3A4-452C-B7D1-20CA0EEEDDA2@lists.zabbadoz.net> <CAOSSMjWS9po2XuBHJ5hbN9hfNDKZ1diecH08Kt697-15jRtAvg@mail.gmail.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/uzEg_2Z9MXcK-5mSP93XAc7DHGM>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 11 Jan 2019 22:57:14 -0000

Tim,

> On Jan 11, 2019, at 5:44 AM, Timothy Winters <twinters@iol.unh.edu> wrote:
> 
> As Tom mentioned he has started a discussion on the Linux Network list about FragmentSmack.  I'll report back if they have a more elegant solution to the problem.
> 
> This is the best write-up I've found discussing the issue.
> 
> https://access.redhat.com/articles/3553061
> 
> Based on the general comments on list and reading about this attack I'm going to create a draft to give some guidance to implementors for this attack.

Reading the article, the potential attack applies to IPv4 and IPv6.  The article doesn’t say anything about < 1280 sized IPv6 fragments, just:

“….change the default 4MB and 3MB values of net.ipv4.ipfrag_high_threshand net.ipv4.ipfrag_low_thresh (and their IPv6 counterparts net.ipv6.ipfrag_high_thresh and net.ipv6.ipfrag_low_thresh) sysctl parameters to 256 kB and 192 kB (respectively) or below.”

Still confused as to the issue.

Thanks,
Bob






> 
> ~Tim
> 
> On Fri, Jan 11, 2019 at 8:31 AM Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net> wrote:
> On 11 Jan 2019, at 3:02, Brian E Carpenter wrote:
> 
> Hi,
> 
> > If an RFC7195 translator receives an IPv4 fragment, it will translate
> > it into an IPv6 fragment. So if the IPv4 fragment is "small" by some
> > definition, so is the IPv6 fragment.
> >
> > I think that's a legitimate route to non-last fragments shorter than
> > 1280, regardless of what is considered normal for IPv6.
> 
> I think this topic has been re-hashed in the past often enough.
> 
> I want us to stop thinking that there’s anything but IPv6 if we ever
> want fragments to be “clean” and sorted and usable and working.
> It’s a total waste of time to sort this out for a transition
> technology as it’d be a major change to IPv6 implementations and
> involving end nodes and translator nodes (*) and by that time that would
> have happened IPv4 is no longer relevant.
> 
> Can we please start looking ahead to the decades of IPv6-only before we
> need to extend “real-time” communications to Mars and outside of our
> galaxy? (+)
> 
> 
> /bz
> 
> 
> (*) If you really wanted to you’d need a way to signal the min-MTU
> violation from the translator exception case to the end not and you’d
> probably need some kind of extension header for that.  Sadly this
> wasn’t done 20 years ago and neither for 8200.
> 
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------