Re: [Last-Call] Tsvart last call review of draft-ietf-6man-icmp-limits-07

Benjamin Kaduk <kaduk@mit.edu> Thu, 27 February 2020 06:33 UTC

Return-Path: <kaduk@mit.edu>
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 5EDA73A130A; Wed, 26 Feb 2020 22:33:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.613
X-Spam-Level:
X-Spam-Status: No, score=-1.613 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.276, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01] autolearn=no autolearn_force=no
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 6_UlNFWt50V0; Wed, 26 Feb 2020 22:33:52 -0800 (PST)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E0AD63A1303; Wed, 26 Feb 2020 22:33:51 -0800 (PST)
Received: from kduck.mit.edu ([24.16.140.251]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 01R6XjFH028542 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Feb 2020 01:33:48 -0500
Date: Wed, 26 Feb 2020 22:33:45 -0800
From: Benjamin Kaduk <kaduk@mit.edu>
To: Suresh Krishnan <suresh.krishnan@gmail.com>
Cc: Bernard Aboba <bernard.aboba@gmail.com>, tsv-art@ietf.org, draft-ietf-6man-icmp-limits.all@ietf.org, 6man <ipv6@ietf.org>, last-call@ietf.org
Subject: Re: [Last-Call] Tsvart last call review of draft-ietf-6man-icmp-limits-07
Message-ID: <20200227063345.GB98042@kduck.mit.edu>
References: <158205974177.14048.8752559981047005317@ietfa.amsl.com> <20200225193403.GC56312@kduck.mit.edu> <C5D0D4A7-D9B1-46E6-B0D7-9C10A7DFA31A@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <C5D0D4A7-D9B1-46E6-B0D7-9C10A7DFA31A@gmail.com>
User-Agent: Mutt/1.12.1 (2019-06-15)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/65AAvD-VQAFp3FaHz6BxXdcC7rw>
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: Thu, 27 Feb 2020 06:33:57 -0000

Hi Suresh,

On Tue, Feb 25, 2020 at 11:01:53PM -0500, Suresh Krishnan wrote:
> Hi Bernard/Ben,
>   Thanks for your review. Just responding to one point below.
> 
> > On Feb 25, 2020, at 2:34 PM, Benjamin Kaduk <kaduk@MIT.EDU> wrote:
> > 
> > On Tue, Feb 18, 2020 at 01:02:21PM -0800, Bernard Aboba via Datatracker wrote:
> >> Reviewer: Bernard Aboba
> >> Review result: Ready with Issues
> >> 
> >> TSV-ART Review of draft-ietf-6man-icmp-limits
> >> Bernard Aboba
> >> 
> >> Result: Ready with Issues
> >> 
> >> This document specifies several new ICMPv6 errors that can be sent
> >> when a node discards a packet due to it being unable to process the
> >> necessary protocol headers because of processing constraints or
> >> limits.  Reasons include:
> >> 
> >>      Code (pertinent to this specification)
> >>         1 - Unrecognized Next Header type encountered
> >>         TBA - Extension header too big
> >>         TBA - Extension header chain too long
> >>         TBA - Too many options in extension header
> >>         TBA - Option too big
> >> 
> >> ICMP Reliability
> >> 
> >> Section 5.2 states: 
> >> 
> >> "  ICMP is fundamentally an unreliable protocol and in real deployment
> >>   it may consistently fail over some paths. As with any other use of
> >>   ICMP, it is assumed that the errors defined in this document are only
> >>   best effort to be delivered. No protocol should be implemented that
> >>   relies on reliable delivery of ICMP messages. If necessary,
> >>   alternative or additional mechanisms may used to augment the
> >>   processes used to to deduce the reason that packets are being
> >>   discarded. Such alternative mechanisms are out of scope of this
> >>   specification."
> >> 
> >> [BA] The last sentence is a bit vague. My assumption is that this is
> >> referring to techniques such as are used in Path MTU discovery (e.g.
> >> tweaking of packets so as to determine potential reasons why packets
> >> are being discarded).  However, a reference might be helpful.
> >> 
> >> Security Concerns
> >> 
> >> Pointer field
> >> 
> >> In Section 3.1, the description of the Pointer field states: 
> >> 
> >> "      Pointer
> >>         Identifies the octet offset within the invoking packet where
> >>         the problem occurred.
> >> 
> >>         The pointer will point beyond the end of the ICMPv6 packet if
> >>         the field having a problem is beyond what can fit in the
> >>         maximum size of an ICMPv6 error message."
> >> 
> >> [BA] I worry about attackers using the Pointer field for
> >> mischief, such as buffer overflows.  The draft currently
> >> does not provide advice to implementers about validating
> >> the Pointer field (e.g. checking it against the length of
> >> the offending packet). Do we really need a 32-bit Pointer field? 
> > 
> > Very reminiscent of heartbleed, even with the note that "The pointer will
> > point beyond the end of the ICMPv6 packet if the field having a problem is
> > beyond what can fit in the maximum size of an ICMPv6 error message."
> 
> Hmm. This is exactly how base ICMPv6 (RFC4443 and prior to that RFC2463 and RFC1885) defines and uses the Pointer field. And the intent is specifically to be able to point past the end of the packet since the “offending” packet may not be able to fit into the reporting packet. Is there something specific that you think is being enabled by this draft and needs to be addressed?

I don't want to steal Bernard's thunder, but I'd consider a note along the
lines of "in such cases the pointer cannot be dereferenced without the
original packet" (noting that the statement in quotation marks is not,
strictly speaking, true, so further edits would be needed).

-Ben