🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #17755

Re: [PATCH net] l2tp: reject short IPv6 address attributes

#17755
From: khj
Date: Tue, 17 Nov 2026 09:34
41 lines
13951 bytes
The issue was found by a static analysis scan (pattern rules for
NLA_BINARY attributes that are read with a fixed size, LLM-assisted),
then confirmed by reading the code.

It was triggered at runtime on 7.4-rc1 in QEMU: an unprivileged user in
its own user+net namespace creates an L2TPv3 IPv6 tunnel with a 0 or
4 byte L2TP_ATTR_IP6_DADDR, and L2TP_CMD_TUNNEL_GET returns 16 bytes,
the missing ones being stale heap data:

  sent 0 byte(s):  41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41
  sent 4 byte(s):  20 20 20 20 41 41 41 41 41 41 41 41 41 41 41 41

There is no KASAN report, since the read stays inside the skb head
allocation. The leaked bytes are non-zero only with init_on_alloc=0.

2026년 11월 17일 (화) 오후 6:27, <netdev-bot+sinfo@kernel.org>님이 작성:
>
> Hi!
>
> This is an automated message. This series looks like a fix, but its
> commit messages seem to be missing some information:
>
>  - How the issue was discovered, e.g. hit in production, hit during
>    development, syzbot report, manual code inspection, LLM or static
>    analysis tool scan.
>
>  - Whether the issue was actually triggered, or is only theoretical
>    (e.g. found by LLM and not proven at runtime). If it was triggered
>    please include the symptoms, like the stack trace or kernel messages.
>
> Please do not repost the series just to address the above. Instead,
> reply to this email with the missing information, so that reviewers
> can take it into account.
>
> *IMPORTANT*: If you do repost (for other reasons) - please include
> the relevant info in the cover letter or commit messages.
> --
> The evaluation is done by an LLM so it may be wrong, if you think
> that is the case please reply and explain.
Technical Details
Message-ID: <CAGr5VtO-aiy-RpUsnw=dKVFP0wgvBnQ7uw-NWr-4391WHV7iHQ@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365123-linux-kernel-netdev=dewy.ru
References: <20261117092157.85513-1-hj351016@gmail.com> <179490763326.3291.12558236650605974154@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365123-linux-kernel-netdev=dewy.ru
From: hj351016@gmail.com (khj)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] l2tp: reject short IPv6 address attributes
Date: Tue, 17 Nov 2026 18:34:49 +0900
Organization: Usenet Network
Message-ID: <CAGr5VtO-aiy-RpUsnw=dKVFP0wgvBnQ7uw-NWr-4391WHV7iHQ@mail.gmail.com>
References: <20261117092157.85513-1-hj351016@gmail.com> <179490763326.3291.12558236650605974154@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="2293180"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:SQsZY90fG+33bv9KvuXQvgY6tjM= sha256:O4aF1fba9WrbiQD5vEE3KP5hZS8pJ16wMRmm4/Gkfaw=
	sha1:V5+EddgVMl25WQZW7fhqqz+uVTA= sha256:M5bDJF29ZHvb3/hHGE5Br7uKuHLQ32Sn8PJbAqnCqYc=
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 75BE0114ED7; Tue, 17 Nov 2026 12:35:17 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	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=gmail.com
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 UhPGj7Tw4pqT;
	Tue, 17 Nov 2026 12:35:14 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365123-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 1E6DC114EA1; Tue, 17 Nov 2026 12:35:06 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 6D22636F01; Tue, 17 Nov 2026 09:35:03 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794908103;
	b=CoCwd0BZjR8+pRHTcGV3VSHQkr7Ozz2nvF/j6mkCFVINXw/Iv/r1mK6LnGfpi0EkzKrF
	 oRucCMe1gT2b615I/qef6Y1ifEjnXf5ckvwiGBAavbm7IFBuCwz2UyOzpDYlaMuND2CZr
	 rYrA5iTbO7tcQGXX4vfSqRmQDM0dwNxi8kSilDUQHTIBaMUnUKzMPBJweGatwLNWsXW9p
	 l9ycsJ31D+ZN7iJLPZKLBPORtpefNbTplPtovbWskohBbrCbhbqsmukr06d1bC6SMMsgm
	 UxjGBL8FlASVEuOv5tAMDiuIvwgwEsq5sVgyfCGsbnlEy70ix87U37N/G93T/Dk3COg==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794908103;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 References:In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:
	 Cc:Content-Type:Content-Transfer-Encoding;
	bh=k43+4NXoe93Lu6IXLeFrYJXGLcVxquToj/t7KJWYnQw=;
	b=JY7l+XmqMfkso3GfVw1W8oJwM+7YdtzHuD75Bf+KxXSnIIhp7JXzcMTPrZ2E7DE3Dm9F
	 3Ktmj4i1TRkz+wgYw7i2gQWBuVI1WrQx1M5F8CxNeZ7sbr86clxBtysxxIOa8EyH0bKoC
	 Riue4NZ10Pti2SaABw1ENuzwx+GdtsHYJ9Z4VeJHe6sLSW39T/nTN6Vdw2m/kSiqms56T
	 CbLpfTGJvgGZwNHQhC98G6t4Wvb0/+PPdFS37kpIdIqdZw+pFhE9GS5xgOM1+dNcTFHIR
	 LUt+DzZAm89WK6JlDbUIZBdcYr9LjvawjacRCxmGxWqdlSYI4e/ihJMgTMoIn5vem/g==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=QOBf4hu+;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	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 4598A606A336;
	Tue, 17 Nov 2026 09:35:03 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=QOBf4hu+
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=74.125.82.44
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794908102;
	b=bYH3X8+Mve/t3qCcdmdunMMGx3FMqxVv1bSV4HqJNxC3QVCZRfHMByvoo5qxV/vlpf6D
	 nxSzBhHnKmDy1YImAQS63L0XqA2wOnf3rH429NAIwa0eXkiNnKrC5Ot+wIzeZTX1AIPTF
	 MKgN4y6q0fwnbfNc4cQqjzqvRa8rpXIa/ZoRwto5S7kbCjehl2NjO0EcCVfXYbI/XT8Zw
	 IxKi3Ah6mFIqY+IuYLg1EQdIiWoeaAfuobyEaZqGbIlxssHYYQpT9bisg57hTHNgQHhKc
	 PaKORfuOtRsP879gYpwQEnOGIo3SQUOi9hCitL3mIFtbiaDEGW2GozkpJ5sis+ZD3qA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794908102;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 MIME-Version:References:In-Reply-To:From:Date:X-Gm-Features:
	 Message-ID:Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
	bh=k43+4NXoe93Lu6IXLeFrYJXGLcVxquToj/t7KJWYnQw=;
	b=p/1wKQnWI6o+v4GisWQN77QetZ/7y/LenVvHzam5QjWMNdsZcwXcB0Jy9wMG4s2ABUiT
	 10ihtwnnmmY3ZVBdSNyPazlVqXxxlUxmvdDPFnJeB20KCKz/8Y2fcQShGFozyqPkcUfTz
	 zsWodkaKkKyMpW08eomoy4o6VgYrNWZOxT80wmDzrMFs62XKWdLtj3RWDrtcZppcszfot
	 PJ5nZKw4E0Bnq5UcEpZkr2NlChdxgqxLUnXvJO5+UnxhDltzj2nU9p6fFf+p8F12/oefY
	 RfhB1OlmQDseOil+IaBFhBRnxjGn1DzJq6gqYxiTdX+A+Tu6h7b2aENSZGX33ohA83A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=QOBf4hu+;
	arc=pass header.oldest-pass=0 smtp.remote-ip=74.125.82.44
X-Received: from mail-dl1-f44.google.com (mail-dl1-f44.google.com [74.125.82.44])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 142CC606A32F
	for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 09:35:01 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 142CC606A32F
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dl1-f44.google.com with SMTP id a92af1059eb24-170135e43c7so7057459c88.0
        for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 01:35:01 -0800 (PST)
X-ARC-Seal: i=1; a=rsa-sha256; t=1794908101; cv=none;
        d=google.com; s=arc-20260327;
        b=CdzkCVh3inuoyFJ7GNa+GYIZtwdJh2JLvKjzC05g6zPqPBwEEVgO+FsnxzJhMDRujH
         237Egj92itZShllITpJNvrqSC1uqWptRI6fePoHX30UHXSDHIahWWpzZ2q34/w1EliK6
         zK2boHsCtV+8Maau7JiZ+7rC1GVxxaKXUU6/5kBhMIVOMYjcWtiiSOQwSxAwYdiWFKEP
         NcEuSZLu2nQTlDT3nz4uUJsontVl9ChzlfihlGXhtDHzQXWG1hj6u3kUNFAv/PlcAjnP
         w6Qu5TxmmJzboFANrJcRp8w6d0QMkbASw/enaMbzD+e5gNL3vj4GwRUbPWkOE4UmCgLk
         pCmg==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
        h=content-transfer-encoding:cc:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:dkim-signature;
        bh=k43+4NXoe93Lu6IXLeFrYJXGLcVxquToj/t7KJWYnQw=;
        fh=KmYMDFh/KNkCVuDcKyuMIHA2dFjVQPp4JtPuO7R8Agg=;
        b=Fv3dVKqOm/t4bf8gFPTsLiCuWrQw7KrLInVef275EPUshus7AZepD+8TDnv4wv5ehu
         eyQPkzfUBYgk3QEcq3rFsNE2Ar7z70ecayv5P5/SkNEqmbx1twtWk645cEHTadHKGxA8
         3xUkSAO8yO6QXhnTnZLrc/Ptara2c7/6x7/43dFtywMsS+X7pX3rLE/Kh/lwGpHojQyV
         HM5+lAHWK4EZHbdgT8d42yRPdURGpzE/0rp3Yrg8Mvl4G633S88t1Z0w1JkYWT+GY773
         TsJRtZxqBmq8BEt+/DwCnYf13YRMQB8FlA5bUme1jYuURp4jTONNNEd4SJEKy1Hf6qki
         QXVA==;
        darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1794908101; x=1795512901; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:from:to:cc:subject
         :date:message-id:reply-to:content-type;
        bh=k43+4NXoe93Lu6IXLeFrYJXGLcVxquToj/t7KJWYnQw=;
        b=QOBf4hu+e9P7Tj0w9vSuBeMPpOphD6LpjtcGj1L/uNVodpZ/F5Y9N78nPLRRMAuCEH
         gkDJ2f3/TF3vY/4zLaT/jlJxAldC+6SH23dYTMfq/sv6IpCNB0jDR4vwz7QE3TYQHvg7
         sQsLEJ6da1vKC3PazmpxeXhFh/1q24M58jpc4DmCl8NNnAKDk2Hy5+e+mh9nwUjTFpca
         BusYl7ltL8rCRM79KoWi16IKedQ5KMVcrGXpkAFFNPt2+roB34rX5nD/x2Xes67LmwPP
         NOUwoGYdafEGrCj0KmT6hM8f29woMERR7R8gG3aYEjAoiUKpawViwgFZBqFMAVEDuojr
         EDZA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1794908101; x=1795512901;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=k43+4NXoe93Lu6IXLeFrYJXGLcVxquToj/t7KJWYnQw=;
        b=Kgw5or3NrSrM/pk4ZNfE+qca5o5qyC+KNrcVtrK0a3419w3/WKBAo/fwrItkEMc67C
         d8EcFPe+nZUG9L12wWqkDt29/GiGRmLpFU+cFbqe7pOTHi1APDCbrkkrIylOMpfuQ65f
         jxGHVjHGC3pSNkWWZYZ0IULwiTSG1d/4ppLCMh1RwFgL+70/n8v1TkUMpcr5U5K1snue
         IqtT1FAg2+31oQQ0ucESIwEXbelTOeuBSZTVTfoIsjJ1HlY5vBVR+z9pcc8JF+ce77XN
         naeQVeW1xy+8n4lZiVbk38+AySPCfnGlRv2qhlXJyuZoTdkc5eJTncBGvXQkatVJNvCI
         BJsQ==
X-Forwarded-Encrypted: i=1; AL+hErHw9ScbqYInAZ3nOjRk6aMnCQwcJTD7fxt1DxU+R3tkVaFPw1DXjKezZlBzkvfjtl+ammfq1K4=@vger.kernel.org
X-Gm-Message-State: APuU4Z+JBkCBh3uXNoMhqEI3usFZ8Twiu/PeT/Iea7Q2vgHr79HO4S7/
	D7zx+HjE8Oxz/KjDgz2W6ZhS+VAlVEKAU3KmIHgUdzqITvpWQ8ROtCY+aA1riYej2yYAEl7dC6X
	TX+mIGge2x5bzhhWkaNniKLUzFs7ytHg=
X-Gm-Gg: AYBFou0LgtxOeJfHfcQXJ/se/DCJEUDQZccqzsJvd/CaUDBs4/bd9c7U6hVjCSdL2OX
	b+Pxyydu1EIcK3PFX5oCdcS09W534wUY+LZPZqwK4iTlNuMRgoBE3g3ECWEZWQ5/wX/kVtX5Mau
	N87wkn63pUEFj6kKX/sMo4M8aSFkBp3T2qPtkB98JWIStU+7ctDG7VaFUkQcKGdmu9Xs/NPbGpZ
	uaTiAdvqNT4VgMCAZxyEXEdqTZzWKEDPZIiLnF1NPHuxhOl3DV25CpkbeOZ/H3EztA5DHWZEaGS
	7VgWxPoTEC68ZVjX73X+QE40//fvB74O0h7YVMf1UWwo20xNbajiFqKWoz/EtL6T76I7EYIpNjy
	Qq9YGoHIMOpsz3PNqmK/tNkXMERXJhu8BRxoGuLFt/G1KV100ngH7Oj5XEZpefi0mi0Cp
X-Received: by 2002:a05:7022:1583:b0:195:e4b9:d326 with SMTP id
 a92af1059eb24-1b503112a76mr12794044c88.12.1794908101016; Tue, 17 Nov 2026
 01:35:01 -0800 (PST)
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: <179490763326.3291.12558236650605974154@kernel.org>
X-Gm-Features: Aa3M54qHHMqn46yygTWkKBN9mkAPbQt_LCbx1KdUTLuCMqi04h-jEycpKTEF0pY
X-Cc: James Chapman <jchapman@katalix.com>, Jakub Kicinski <kuba@kernel.org>, 
	"David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, 
	Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Chris Elston <celston@katalix.com>, 
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org