🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #14627

Re: [PATCH iproute2 0/5] netlink receive path hardening

#14627
From: patchwork-bot+netdevbpf
Date: Wed, 11 Nov 2026 17:30
38 lines
9531 bytes
Hello:

This series was applied to iproute2/iproute2.git (main)
by Stephen Hemminger <stephen@networkplumber.org>:

On Sun,  8 Nov 2026 17:43:57 -0800 you wrote:
> Six scanner reports all landed on the same code, so they are better
> fixed together than one at a time. The time() seeding was parallel
> discovery: Florian reported it on netdev independently of the two
> scanner findings that flagged it.
> 
> The common thread is that iproute2 trusted whatever came back from its
> own socket. The sender went unchecked until after the framing checks,
> and in the ss -D case until after the datagram had been written to the
> dump file. The framing walk assumed every message in a datagram is
> padded. Any process with CAP_NET_ADMIN over the namespace could use
> that to inject events into a monitor, or to keep a dump from ever
> completing.
> 
> [...]

Here is the summary with links:
  - [iproute2,1/5] netlink: use a counter for sequence numbers
    https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=23df79c6c71c
  - [iproute2,2/5] netlink: ignore messages not sent by the kernel
    https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=29548251e33f
  - [iproute2,3/5] netlink: connect sockets to the kernel
    https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=31232dbd684f
  - [iproute2,4/5] netlink: handle unpadded last message in receive loops
    https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=51d90a2d062f
  - [iproute2,5/5] libnetlink: do not read past datagram when recording dump
    https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=575421242b2e

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179441822893.1074932.1529032760166557386.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361199-linux-kernel-netdev=dewy.ru
References: <20261109014434.115922-1-stephen@networkplumber.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361199-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH iproute2 0/5] netlink receive path hardening
Date: Wed, 11 Nov 2026 17:30:28 +0000
Organization: Usenet Network
Message-ID: <179441822893.1074932.1529032760166557386.git-patchwork-notify@kernel.org>
References: <20261109014434.115922-1-stephen@networkplumber.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="903701"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Q74RXqpM8fZMDWEiMK4nZ2Q4zD4= sha256:lctGORCtg514C56VDA5bhWlJG+7s3nNLl2SBF0aJV8w=
	sha1:MN3tx2fwPg+Qlngj5TetQFF7P0I= sha256:a+k1rDuJj/85oce6GR3cX+ZXqT1NfxA+Xu0BfoTLLFk=
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 24AA8113F6F; Wed, 11 Nov 2026 20:38:11 +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 G5NFOemRw0_F;
	Wed, 11 Nov 2026 20:38:05 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-361199-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 3E330113F6C; Wed, 11 Nov 2026 20:37:49 +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 05783E2ED9; Wed, 11 Nov 2026 17:30:37 +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=1794418231;
	b=pwn6y8gaiNR2Y2YNtwANOrCWHO5HJgvIxksL0gY/BwzAzJ8+Hd1VFW6bKodyY6604D5o
	 MWzbJQ72z8g8W4qPSoBg+cT4H/kAT1RooV1fXxVvd2k9MA42V3QIodOiEXfpjZvYFcs4d
	 FRcCqV0WAiFGATsTU6MRrEOLUWJR/OvLwYMfFkH8T9oKYqX2CjaiQdBwIankz9VyjjXNt
	 2TxrHtu4mBR0nWrkm+Ew4jUuaKaLkuLkbZsR6vRZnyxlvAtFRgzZoKoeElxVEfVZjopDI
	 5s5TEKFGjOS/yiAUZCpjDVrEJe5HL2MGTIO1tER69/GsFlIhpPo0pzAaKF6j7sGLQag==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794418231;
	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=zYxJ//h9TkoTOuTtOzfe+fHJ/lKOA8TAwom5eUId4p4=;
	b=gQjn3u7WvEC47a7CRHLtwaemYp/lSuSBjsikDkXbFiHDBMIHg+G4kD1Wrjxk1sfM2swf
	 blIxk8R0e3a7DO5O/1dShPPZi9UarlqSXgkPHW9IavjOeWIlvLmnIxUZP+LQaEHEZn2Gx
	 I/WS3VnQcNN/yhvRIa2pgN4NSnRy49LmK8s/+uZOltUp48LUplH3ZQDBwVeGDz6M3p4lZ
	 l2jG4aAcSgO+wRQpL0ZPLli80pTTTNy2TjwWYk9g8Dy45j1WpkXavcvZt9gOhsAqq94uB
	 OMcvLBIRJR8VFKPkgq51GWZcmi3tXuGxhbhCig6q2z3fn5nfKY/vFOmGKvLSklJ0nKw==
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=T4AU5aQe;
	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 79366606A32E;
	Wed, 11 Nov 2026 17:30:31 +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=T4AU5aQe
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=1794418230;
	b=ACTb6FffHsSCXKyv3VFNtbpzkg51H5apy1Eevnd9XPI96QtIFAELNfZvyN0uZbrLBPtl
	 +bW+9yf8UKeaH7B99kT4BfEAUNmb27i44x4LHPKuIDOpxrn5HGHM8sxV+yij36ymLzXBN
	 4af0OzlRVlSRWOkWr+AxrIEAFRiHGUoKum+DBQpFSMFTsh3tIWZ5K3rBE37sivAgrQ4p8
	 bM9lTPNlhGApmH2JgqZ/qaKKsLTQIv0TJPuLf96HBkW8ZHJvt2I4rngXaYPU3NJfvlvoY
	 O8/mH3TwLiC+4JfSMxxuGlzArjelK9/XOMQHBtAN0Mf1s+wsXs23bYQzN564hOB3ENg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794418230;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=zYxJ//h9TkoTOuTtOzfe+fHJ/lKOA8TAwom5eUId4p4=;
	b=bOFfxFIcgy1Djl1esu6DxQBRRz3qkbzZYeqsYfQ1XEaB8tXPri4nEboreS4HnSoH6zHa
	 O4QXyFUwlQF0aVichgZPB7yy4ZAVfVAmhSC8ioY/Pq2IxeVDpJVLbBpE8wSMGT/EwXIVp
	 1C2KG62K9siTWyMaPtq+TYflYE0rV1q+J/EVWh92p/FglUI/JG63uzkqSfc9TDRGy9pyA
	 lx1sGFcOelgL0spujWtIgFnB1fh/4GyNyU4vQoYqKZhhL5lFRkb1GsfKbLR20CU4gbp6a
	 e6Ud/0DP7NcYENQcqZDEhtETMjDWTIKouarmsUJdlMVSrB/XGcUo3bEC1y5iYvFsWiw==
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=T4AU5aQe;
	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 9730A606A324
	for <netdev@vger.kernel.org>; Wed, 11 Nov 2026 17:30:30 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C16E1F00A06;
	Wed, 11 Nov 2026 17:30:30 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794418230;
	bh=zYxJ//h9TkoTOuTtOzfe+fHJ/lKOA8TAwom5eUId4p4=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=T4AU5aQeVJ/o7kDecIoWTfGHZkKG21oz2F8yYgsDaZlIM/GLCuGLpn8OSS13+mWKS
	 Qbe/Rxfz5h3I34bVjI8kmLBCO5Brc8s41HeN2hb4I0KugfYRi3pOe791Kk9hfrYq4x
	 KTIZrmg7N52mnNEdTZ2l/XeCuUw3FnLNL3iTdt3Z1r6N0383+KRVoQCjcwvPlQTLMP
	 QRQCZ9rKUrIPie7/Ts4j7XBqN3sIYgVqV7KJs7z+f59WKZJAHZYfBITGn4xLyWjLqz
	 cv0RFskwkIYQaMWBh/mfsuz3SHt7t45vR23a9dnRgxue0EcHoxdDUidsLlJoxmrR2K
	 pdoSr83HeF+zA==
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 2115738003F4;
	Wed, 11 Nov 2026 17:30:30 +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: <20261109014434.115922-1-stephen@networkplumber.org>
X-Cc: netdev@vger.kernel.org, dsahern@kernel.org