🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6462

[BUG] net/sched: act_ife reads stale tailroom from short egress skbs

#6462
From: shaos
Date: Thu, 22 Oct 2026 14:47
27 lines
10217 bytes
Hello,

A UID 60000 victim in one network namespace sends an 11-byte random marker through an IFE encode action and releases its skb. A UID 65534 attacker in a separate user/network namespace then sends a one-byte TUN packet through mirred to loopback egress. The egress IFE action copies ETH_HLEN bytes from skb->data without checking skb->len, and the emitted frame contains the victim's marker in the stale tailroom.

HEAD commit:    c03c1a14507dfaf8b856c2608f9ac216021fc222
git tree:       30fd2ef82912c26cf3a58ad0ba6afc375fa851ac
source version: Linux 7.3.0, local master
compiler:       gcc 11.4.0, GNU ld 2.38

console output:
https://gist.githubusercontent.com/shaos26/3961afdf0773e9f65bdfe152e05356da/raw/65466e4e5bd3843400c036ba31c64108ae4d57e4/console-output.txt
kernel config:
https://gist.githubusercontent.com/shaos26/3961afdf0773e9f65bdfe152e05356da/raw/7d8abdee14fcf83f61e27fce20dee98b4bccea8c/kernel-config.txt
reproducer:
https://gist.githubusercontent.com/shaos26/82ce293b417cd5a2d19c0978d562bc1c/raw/b65492b33b91aad0479423ccf92d2910c1c9d656/poc.c

Build the tested kernel with the attached configuration, compile the reproducer statically, and boot a disposable QEMU guest with TUN, veth, mirred, IFE and packet-socket support. The test uses separate victim and attacker network namespaces.

Impact and prerequisites:
The attacker recovered 11 bytes from a random marker generated by a different UID in another network namespace. This is a cross-principal kernel-memory disclosure through an emitted frame, reachable with namespace-scoped CAP_NET_ADMIN and CAP_NET_RAW when user/network namespaces and TUN are available. No arbitrary-address read or privilege escalation is demonstrated.

Validation: Two fresh QEMU boots recovered different victim markers byte-for-byte. The no-prime control did not recover the victim marker.

Thanks,

shaos
Technical Details
Message-ID: <20261022144736.61227-1-shawnq1@163.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350615-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350615-linux-kernel-netdev=dewy.ru
From: shawnq1@163.com (shaos)
Newsgroups: linux.kernel.netdev
Subject: [BUG] net/sched: act_ife reads stale tailroom from short egress skbs
Date: Thu, 22 Oct 2026 14:47:36 +0000
Organization: Usenet Network
Message-ID: <20261022144736.61227-1-shawnq1@163.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="233793"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:C603ykLDPSmLZccnmA5LgLkOibc= sha256:Zpsb7ydZTRzc1G5tjTPELdLVXfzgYK4YCGjcEQ1E6go=
	sha1:iFJH+hpv06RGDGkMBEtrhnWGsw4= sha256:JSYTddsV5phBgPSY4nxRCz1vl6ylogbQbjiFaEprOIY=
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 E34DA1112AB; Thu, 22 Oct 2026 17:48:43 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.146
X-Spam-Status: No, score=-3.146 tagged_above=-9999 required=6.31
	tests=[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.25, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=163.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 zOvGo6ro4EaQ;
	Thu, 22 Oct 2026 17:48:40 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-350615-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=163.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 0F30C1112A8; Thu, 22 Oct 2026 17:48:30 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 6B6D1605A56; Thu, 22 Oct 2026 14:48:25 +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=1792680503;
	b=bin5snUZ03+9qjWg1wj+Jy562zgF/d6tKE8LKv9lCdhLd/5yJICMqjRYJLc477j6MGPC
	 D5o7PUv8SPJgKpx52SFEGYD3mLM5KW4FKREipLh2g3QbBOsDBr6mHI5heVscXwqlxidAu
	 pz3Ry6bWIClYZlSD2HJYGgZOD+fuxAzDHFSf8d9279+QQ0QxQHH3nxg6VTYJV3qfvbv8i
	 +Jvt0rJBNwQrrUvlnbodCXhq9bOegK6AFIWiMD3YpCMe7saUvTsoCNbeLdYhLvmtmC6OC
	 pHYjgUoFqyVkjIpL5fkSiScP92uYpTrYJ5naHO3nNq3WpYc/U7CcgdAwtyov+bBGR9A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792680503;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To:
	 Cc:Subject:Date:Message-Id:X-Mailer:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Transfer-Encoding:X-CM-TRANSID:
	 X-Coremail-Antispam:X-CM-SenderInfo;
	bh=W5/eA65Cr2py92E4BQkH/p5RHwcqj734bB7a1FhByO8=;
	b=HHZXykEYuSpbVfLcbMjxWwn/QPGZQ2Dv5mQLx5iTKAO9jYT6J3lohZ+IRjywRhOGoWmz
	 SjTjVEMoyBKOpPYt42GdTWfW0QNYuD9x7ggLDc2USgip/Y4+58F9gVXcdxo49/ZLfSjZy
	 Aynuom2N2bclZZudc9n6nT7VfyDy6HVFVhzMxZiJ2vMX0558J8mF8QYqgp4CmiYuav9IS
	 Dv9qiYsx7GC+w8rgYxLmpU3SmtIlLlJ5+Kug2xUrIM5ipblwR6mEwi/osNxj1eKZmINXa
	 J8ospfY8NfY+6djwAR4OO4leGwRs7x+I8DCgRjKUSKUm85fPbhjF3oYU1Fsv7q96COA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=czGBgBwG;
	dmarc=pass header.from=163.com;
	spf=pass smtp.mailfrom=163.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 181C5606A333;
	Thu, 22 Oct 2026 14:48:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=czGBgBwG
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=117.135.210.3
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792680502;
	b=juKQdclOvSjJ2/nDihn2BGQ8+oE4IofISdSLwvrcNycTck4PAYs0JZVeYptAH52IS4YC
	 Sw/VLd+bmdlgRjM3CF+qBfv4wXN2riJaNMbMhtR29M1GuGqrHKBZ9XDHBM2ZBfbDHlTD/
	 7y5+Rh7qR1aPyyTJRR9Tb1V+2INvTL+/dcF6OEsCOffW4obm+qWziXxo9reEVKNrMWTIm
	 NbdwIkUO0iMHgwQ8LN1vt4M8bd6Z0zETik0itqeJmKAyxuwarl9R72G7T4CaklZTKTR6I
	 J3lS2U94VSl+b6tqVd5O9mmgaSnfAwAdJ7XQZe8+ji9o7kA9CYGl4+AouYHDnWY0wDA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792680502;
	h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date:
	 Message-Id:X-Mailer:MIME-Version:Content-Transfer-Encoding:
	 X-CM-TRANSID:X-Coremail-Antispam:X-CM-SenderInfo;
	bh=W5/eA65Cr2py92E4BQkH/p5RHwcqj734bB7a1FhByO8=;
	b=yjlZR1vN6/SbJ/8l49dWOuQwI17kR25s+Nepx7XSq3WC+Yij/Xc9Rxs+f4PfzLrZKNan
	 a8OGY/KaQ86FJEUxf0Dj5TUxtyoZza0mDduLOjHWXRRv+zxzYqUHwsQX9KUecIMz5fGD2
	 0EbeDAPLZ756uCrLkG1EMp9Ju+P6+X7RFQvLsSu+4mzpDIQ3+UDitmEIxnIRPU2+50cTe
	 WGw1quXGNNEw09mlmeFykt4CSC7JQRtPiCXp+8PMsa/CwiUSYYUqc2AwhSNK1o5BEB0Bh
	 fsX5Mb5vsQX2hM2OLq6eQBoO2YzZF6O0dE/bk32hx1bCKw1kKqMbJcfSORYUiRU3GXg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=163.com;
	spf=pass smtp.mailfrom=163.com;
	dkim=pass header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=czGBgBwG;
	arc=none smtp.remote-ip=117.135.210.3
X-Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.3])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDC03606A31A;
	Thu, 22 Oct 2026 14:48:20 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CDC03606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;
	s=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=W5
	/eA65Cr2py92E4BQkH/p5RHwcqj734bB7a1FhByO8=; b=czGBgBwG3OylLtl3hm
	kQ4edxHO9VbOmq5fpzMW9530P5qmGMV0fBRyEjnP1GBD+Z/KxEgzG2mTnjjBc3GL
	TJjfbdxQcS07+fj/jkqGUnWrydlxKvqB/MDQnDxzM7zoCdhtedubxJ4T7NYBJpZy
	qXelqEdgOrPKUixhTSoo/0MUQ=
X-Received: from shaos.localdomain (unknown [])
	by gzga-smtp-mtada-g1-2 (Coremail) with SMTP id _____wD313sIItpqZSsvBw--.16907S2;
	Thu, 22 Oct 2026 22:47:36 +0800 (CST)
X-Cc: Jiri Pirko <jiri@resnulli.us>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	security@kernel.org
X-Mailer: git-send-email 2.34.1
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-CM-TRANSID: _____wD313sIItpqZSsvBw--.16907S2
X-Coremail-Antispam: 1Uf129KBjvJXoW7ZF48JFW7Gry3Gr1UuryxuFg_yoW8ZF1UpF
	9YvFW5WwsxGF1DJF1ktFW8Xw1S9395Jay5G34DXw18Zr1Y9w1j9FyxtrW7ZFyxZryxK390
	y3yDWayxKan8ZFDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2
	9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j55rxUUUUU=
X-CM-SenderInfo: pvkd40jtr6il2tof0z/xtbCzwnb6WraIgnJxwAA3h