From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796154611; b=UFjuJR2lAGxnmfqIMYbeRsSNuY3wwgZrQJ96vqt62J5OuwIhB/gE71/0o60yHh+IeYjJ saaVisOkIcIwfjInko1fQtG26jBWRckkmeqDnFiTUX3ylhUSe2H2wwDmSXPI1NFysX5RD lQIcn0YcCtjWGKyQzAb9K7l9vo2jKyNhlDqVNHvZEAngZMCeeAjWwRCwogWAx5SLM2vqz 41iWISh1aS292oQ9U9Uo0NTmu+jOqnaopXMMSoFsGq+Ve8VN8b3FqxcOKJrQFjJpQr6uT /fVttzU1a9BnuQse8uXw6SWrtW37qHAK0c5NqinOaffdylqecUngcuFmbXhZQrnuwkQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796154611; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=YRgIncNDm5BOH8VdyLslYTNhYKRD7lO+umxKLhHaQ50=; b=w0+CVR0dJXfZx7KCazNt3fx1P/4NeUCOrFj0D/ABafm/77D73WOls9ZSf6ez8/M5273F EJCGiaCbYIHxpZXmAnYRWPpKASu0qOyNg8Vo48XfSxeeYKKJEadwPIjGoCJoyrfeKGnsH jIU0AGYwafIo4uMsd1ivMMFQ8mhzX7eh/lp+lLKNP0Zigzazku+fYJ2FKVxeqmnOHHZqY AxkfIROWX4tOLC2gFy/NT17piwP0NB6q17xfWsZlP+hjpqDspesRKHcrDWb0wfUnMapa4 oxTQ4zGPl5kZpEGTUC8q8HUbfitYJV2Qpaf/TupRCorJrezs495dgTdnwSYw1eoXnQA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="Vg8/cZvG"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41398606A339 for ; Tue, 1 Dec 2026 19:50:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Vg8/cZvG Received: by smtp.kernel.org (Postfix) with ESMTPSA id 011FA1F0089B; Tue, 1 Dec 2026 19:50:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796154611; bh=YRgIncNDm5BOH8VdyLslYTNhYKRD7lO+umxKLhHaQ50=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=Vg8/cZvG/CerZ0gRvLGrJUnPdnRp8oWdWqtleuTEw6pn5E6HE4C9TQfsrko9S0TFl oFPoJh1hDhdDtIIiPsaEJy6rxfHFyyqYLA/Pa2gQhp1blrKFVmQFe9guzlb3y0n+Vh ddwThmlAazhTNSclk+qGTWwHsnwEajNdl6Yf2ryJEM91G2eBb4UeK0XxJJ55kOp4Rw S1JNLbjimG6P6rFu+uEL7aoCJpcizr40dehodZRqxl4YcHHaZGn3k4xHOlW0N0uzUj fc0chI8ENmqJ0xUtx2aBaGBTar8oj+1uR1yHZlJpF2NL8oGgiCvFFPDgqYrptVm75D 5bkbcJuZ+lUoA== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id EB8AA380821E; Tue, 1 Dec 2026 19:50:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH iproute2] ip xfrm: fix buffer overrun in deleteall From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179615460950.972312.512550173148005058.git-patchwork-notify@kernel.org> Date: Tue, 01 Dec 2026 19:50:09 +0000 References: <20261130231412.1104721-1-stephen@networkplumber.org> In-Reply-To: <20261130231412.1104721-1-stephen@networkplumber.org> To: Stephen Hemminger Cc: netdev@vger.kernel.org, dsahern@kernel.org, dave.seddon.ca@gmail.com Hello: This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger : On Mon, 30 Nov 2026 15:14:12 -0800 you wrote: > Deleteall packs delete requests into a fixed size stack buffer. The > state side only checks (xb->offset > xb->size), which ignores the > message about to be written, so a full buffer is overrun by the next > delete request. > > The addattr_l() calls cannot catch this either. They passed xb->size > as maxlen, but the bound is on nlmsg_len, which is relative to new_n > at xb->buf + xb->offset, so the check passes however full the buffer. > > [...] Here is the summary with links: - [iproute2] ip xfrm: fix buffer overrun in deleteall https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=21de35a159cd You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html