Article View: linux.kernel.netdev
Article #19553Re: [PATCH net] l2tp: reject short IPv6 address attributes
From: patchwork-bot+netdevbpf
Date: Fri, 20 Nov 2026 02:30
Date: Fri, 20 Nov 2026 02:30
25 lines
8817 bytes
8817 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 17 Nov 2026 18:21:57 +0900 you wrote:
> L2TP_ATTR_IP6_SADDR and L2TP_ATTR_IP6_DADDR are NLA_BINARY with .len set
> to sizeof(struct in6_addr), which only bounds the attribute from above.
> l2tp_tunnel_sock_create() then copies a full in6_addr out of each one,
> so a shorter attribute makes it read past the payload. If the attribute
> is the last one in the message this picks up whatever lies behind the
> skb tail (stale heap data unless init_on_alloc is set), which ends up
> in the socket address and can be read back with L2TP_CMD_TUNNEL_GET.
>
> [...]
Here is the summary with links:
- [net] l2tp: reject short IPv6 address attributes
https://git.kernel.org/netdev/net/c/3bf0ed569563
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179514180478.3985754.2418266134106801172.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367566-linux-kernel-netdev=dewy.ruReferences:
<20261117092157.85513-1-hj351016@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367566-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] l2tp: reject short IPv6 address attributes Date: Fri, 20 Nov 2026 02:30:04 +0000 Organization: Usenet Network Message-ID: <179514180478.3985754.2418266134106801172.git-patchwork-notify@kernel.org> References: <20261117092157.85513-1-hj351016@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3040013"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:DxBariBzRTn905jqbw57LdT50q0= sha256:yl00xVWERMylLZbQW0CDYZ38sSW7N6wGSGBQukOnsf0= sha1:KlvYmf7wG/ZaPAApihIIDlEcm6Y= sha256:OHLYkcc/UorFhJ7xpUq1gC7q8o0fNQAdb7u+XM7FfVc= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 10DCF11586B; Fri, 20 Nov 2026 05:30:32 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xghAj8l-6ues; Fri, 20 Nov 2026 05:30:24 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-367566-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 0360C115851; Fri, 20 Nov 2026 05:30:14 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 414BC168E14; Fri, 20 Nov 2026 02:30:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795141812; b=K7Cqw0qyr4uN4JWQ5VKKUDCPkRiM8Kowq54Je9gYPZGENjfXGASaEed/Boo4t1qukaoP 6nIcdeWM08q/WU6+xi0eCZtLGyU+mGNQ9yD3movxRP7oKJYwKQlow/Dnc9kt71heWjmlS lu0DUcCEu17z72rDC4toNNKW4D72UNKhuV5y3AdFcDdBWPXa20BleW1ZEzMORP/ONwUYg XlvAceMzd+KMy3Z7RFYXedzTg3tiHq/s0+VJ5V2254HgA5aVDsw8eAtm52SZKvwS1PDR+ epQD5nHbT+m53isRBzyeRklnnpNoMHSF7Z6coWtHiLzqpEDfMXbQ0MBsNVJCjbShpuw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795141812; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=9qUIPmIYPuUTwrmfhDJvI04x06r49CpjuUWZ05eJ8FQ=; b=2oNDcWy6dx+iXyCjRToCOMC8zn2DX3/Am2Acusr/y7y34B2/TDfKOIaaYUJPFBM7Snv0 4NBMHthUm9deawFycWh7LBwQ8GvOvfrBFuqFbK7/vuIW09VdeUi0KOT4KnRJ4vf3Xq7SG SYve3vVuJ0JIaKbe7CfGOreZSINc3eCtXNkKMvQ7PCAQAUMUTiVFqSfNd3wB1/z7cyOSI JNCl2vBYQcXgJgaI1nnKP8761gDlFB0ZW3wkNNm16MKReZbyScGv+LwDD9ZEgGX7hBpFq 2IrhQL//bVgeqQFMA09MulMQGVupyLy1ksBWL8q5FxLpiW8v0td+k07j+cAqoWtXIQA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=YfN3iCcq; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4DE2606A335; Fri, 20 Nov 2026 02:30:12 +0000 (UTC) X-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=YfN3iCcq X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795141806; b=P5MH72ZWe/cT6B+cxaETlr/q/auOsbdSQTPJS+PxhjITYLjwf9ZtRyahB/5imu2l2UoH hcGBeC25PPf7IuYARpY92LyczLKQgl+aAJTvXQf4w3mY9j4vGE3M6Ihpk/RH1ff953t+n lEOyGuIT3yseYO5orDaE2lfvY5DpBe3UvQ9GvHfB86Utt/xNCPjnpTo87ca+gEbvM709v FbS7bpm0eEKVCMatAs4Y6BkWJ2LyaDMCWrkgE5lJXS7khqckzzdOc0k5YYW5NevkNbufn AJo/ey2iNAnxruQofSIIUr+X9F8jjWa4o4W2o3yPsWEbeIqSWIIzf3r1ya9XMQxCDHQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795141806; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=9qUIPmIYPuUTwrmfhDJvI04x06r49CpjuUWZ05eJ8FQ=; b=a1S00IOGEjzpERfETf/qBpGHIlGJFEfSbMOmWBcTxI1WbJl6SHeH3wdFqCIEX9p93t/i W9X0DIF5WzqPRWUfjSgYC5oCP7+zefl+JlOWR1GZfg1xnv8x+Ke240AfRBASQSUenvDSR N/UmrL+yHkZUpl7Sv27mlD+1q+JZAOleb/NnddC6JcutyK50OkPaB6XQsXfzyULS4FkD7 Mn4PNSCj9ILGt8quhG7hAZRG27KVoWKDRNdUIuMjKmt+5JtyMymexBUHqZbO4B6SrqXEL Hm0wyoJLcZCalrZydumOAyKSxg9hk3pMP5qEe+zusJh6L0Rjb/OVMxK3YiGsRIH+J7g== X-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=YfN3iCcq; arc=none smtp.remote-ip=100.103.45.18 X-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 C1403606A326; Fri, 20 Nov 2026 02:30:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0602B1F000C4; Fri, 20 Nov 2026 02:30:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795141806; bh=9qUIPmIYPuUTwrmfhDJvI04x06r49CpjuUWZ05eJ8FQ=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=YfN3iCcqTm67hg4w/R2O7jdCBWY4Wuylhaw/PjnRiT7VQdB8His/XoEo+xEHXfxh+ LH9NJTixNjHGGYzJmHuRpEudl/D8okWWoA3gorE08iQAiLy3M79guRRa1phXNN6vdy yse7qxaevsM5vTcsEw+kCf7ZmbYyf3RFu+HIKu4jY/rWp3OF//0CeNMFj5vF1ovwT3 rgwevLWZzfdfhI2GVOgrl9kVLjSqRxcP5WcVbwE0rC4pmPRXnzfdPS+VCeqv5ks9Wz 3+EgXMGKQo4bAuiVk8PbIwd/tASyp/UEUrLj3Y/iGnzCmwKkac/oZR0gOR5NZATzhZ 7AD+UEz7//k1w== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id F14503808209; Fri, 20 Nov 2026 02:30:05 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261117092157.85513-1-hj351016@gmail.com> X-Cc: jchapman@katalix.com, kuba@kernel.org, davem@davemloft.net, edumazet@kernel.org, pabeni@redhat.com, horms@kernel.org, celston@katalix.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org