Article View: linux.kernel.netdev
Article #6475[BUG] net/sched: TEQL qdisc can modify init-net teql0 from another netns
From: shaos
Date: Thu, 22 Oct 2026 14:48
Date: Thu, 22 Oct 2026 14:48
27 lines
9962 bytes
9962 bytes
Hello, A process running as UID/GID 65534 creates a user and network namespace, sets a namespace-local dummy device to MTU 60000, and installs a root qdisc of kind teql0. TEQL reuses its global master and changes the init network namespace teql0 device from MTU 1500 to 60000. 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/5a9460785f381e5feb8decc5dead00b8/raw/a87637a25fcc759de83709b4fb0fe8f7cb03d089/console-output.txt kernel config: https://gist.githubusercontent.com/shaos26/5a9460785f381e5feb8decc5dead00b8/raw/8039a72c1de72497f040f40b7507fd8d2103425d/kernel-config.txt reproducer: https://gist.githubusercontent.com/shaos26/c800422c572d258de956971217d3b6dc/raw/53eca8ea2f399fd3de75aa2b38423c3928c9825a/poc.c Build the tested kernel with the attached configuration, compile the reproducer, and boot it in a disposable QEMU VM with TEQL enabled. The reproducer creates user and network namespaces as an unprivileged UID, then sends the netlink requests. Impact and prerequisites: This crosses a network-namespace boundary: an unprivileged user-namespace process changes a globally visible network device. The reproducer also shows that a direct unprivileged MTU change in the initial namespace is denied and a pfifo control does not change teql0. Validation: Two fresh QEMU boots at the exact v7.3 revision reproduced the change. The pfifo and direct-EPERM controls passed. Thanks, shaos
Technical Details
Message-ID:
<20261022144830.67948-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-350630-linux-kernel-netdev=dewy.ruShow 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-350630-linux-kernel-netdev=dewy.ru From: shawnq1@163.com (shaos) Newsgroups: linux.kernel.netdev Subject: [BUG] net/sched: TEQL qdisc can modify init-net teql0 from another netns Date: Thu, 22 Oct 2026 14:48:30 +0000 Organization: Usenet Network Message-ID: <20261022144830.67948-1-shawnq1@163.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="236856"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:K1ee1u911/2ng79dYjooayVhcqE= sha256:55j8k3UR13VGbU39e39Ywcj/1AVDWap2uUNfMdxj9Rs= sha1:MTrGvEHxuKz4ccElbQqZsfQrA2Q= sha256:pfz9TIRuHQDORXPlaMLKNmsU/QD9AgrB1l3hsZ0PQp0= 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 8B7DF1112B7; Thu, 22 Oct 2026 17:56:56 +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 NFglrfYLih2y; Thu, 22 Oct 2026 17:56:53 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-350630-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 828E81112A8; Thu, 22 Oct 2026 17:56:44 +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 4A96D604CCD; Thu, 22 Oct 2026 14:50:54 +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=1792680554; b=zdSRimxnNyApNzFt014wEGl0o3GvHGCTD71zhEvmalWk2+JAfchB8Emgcg6jcKakjWZt NJZVjnB4fDIDVeJWcCpqAZO1lfb9Qd4I/i/7EIe/N3jWI2XB/CocxsaK+WJHkb1vEQV55 7rZeTByoMCjhwEuTugbLML84nCwnFwEIQnJ4IWz7jHVzeXint8ajwjd4SZxIpKNXEI0kP L9Bt2U/yn8w8J9q8RcbyTl9dietBs5UVHUfcKVu+lQX9XceCTIm2KrkVVanzUKC+Wye4w JXdNFZmdGTJtMF4TrnsgV4LQqjp83nm6SnY8PAUuGaxgcd/svlSFte1YzpeGM8S1tgw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680554; 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=9Wte7AuBKj8qxpdrZA51TPo5RLedIlHp8+b5fQoKhzE=; b=xUCUbnDSKE6GzRVwHb7p13ong47E745ZBo8xLJQ3bjNfiRSjqzR6Y0pcdzOnZ6e65BjQ k+ppjsGtaun1YrfFz2PRHowEy1S3QS2t1s2tx9jrxKIo0Sdv2TdkjyxyzrqF15mdtN9a4 YwqCNYazPMJtmjo8nGyq39FvvBBwz96FHHV+YxEjx4+kkM8ZEQGpM78+uxHimIU6wYCpU DWnP/roaxrJ7YCYAFmxD6o/Yp891WiravjvpAf928W0YFi0EF0klTPthA/7ZFQ9uCiifr eJz1lRZ/RLW5vErPh1HxyP+jqbqR1tmChT0Jr4mOL3dbW+gC6l4mMiN7RAqli7sqenA== 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=UPpSFo2d; 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 1E37560A263D; Thu, 22 Oct 2026 14:49:14 +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=UPpSFo2d X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=220.197.31.2 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792680543; b=vcwQf2w+ceTLQOZJAbK5cWFZq4xvNBq8zuN5GOCqHnm1aAZKtpjFmDfD1m9N3pm5Dbke cwsRe9CEDYdCR/s2bk1MVMbnxTMKEVizMuTowSjrr2pYXSrR+YCjeOpidWflkUAIMV0XM tEGWngTtMmt36BubXKZNet9ewTfucfWvD6fFOUAIi2mbymmG7ovSz7EpTNn9ZxpiNE8Ht Dyl8wlpLZovVR8r3Ld7mSlEUQfc5BTMDmHQPrCfyLHnYJYdA5/41zD7+y+Cp6Mdrq+zCo NStB0spir8OzPpxX+TYY9QcvYpQDcHb8fHz6I1/JmEQea0uHi90i2tKANsDuFxi+Ang== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680543; 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=9Wte7AuBKj8qxpdrZA51TPo5RLedIlHp8+b5fQoKhzE=; b=ib0NDo2jd0+6gbq1+TBt/P65McP1Ug4h6l/O4moGEw3e0ckHy6G4xrZX7/U1ZM5qAURR sg/IStivoHr4kDFmLhUAiKsFyYzBkfRHrjYDbVKarWVcxVzOYxSZWFtM9q+rF+GRyCiwa C1viqVanEv0rMU+uoFdt5J/74hS0lpIZKkh+BphWWphwJOxCvHM74ifqTtSrvPq+6ilGr wTXDOerOvq4244oALR5WSyq2NzUeXwqkdAk6+H55irCXYBdwtutBrSIlbHThnDaqhFEjz HiOxMGP4yXK9sXSaMymENbBcU6IVwFDLkXtzIAJinH1yz4i8EzZXvK2fOw3W/xp21nA== 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=UPpSFo2d; arc=none smtp.remote-ip=220.197.31.2 X-Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.2]) (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 EC7FD60A3816; Thu, 22 Oct 2026 14:49:01 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EC7FD60A3816 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=9W te7AuBKj8qxpdrZA51TPo5RLedIlHp8+b5fQoKhzE=; b=UPpSFo2dvtVFK16JkF uKHaf0pjsFAPCjwRoqBvGEUy3fqCxW/DNeTrCKKOkfH0LoHcOy3cROzvY6aNmOw4 u6EAA0n4Lyczlfno5n7zoE9Sr0zzuE0OgMrUU7X30poBU/cd4QRWf2AgA83zNYfY Y/sxxJke+Wc4UrLkI/8ehoJjc= X-Received: from shaos.localdomain (unknown []) by gzga-smtp-mtada-g1-1 (Coremail) with SMTP id _____wD3h2E+Itpq_8PKBg--.60768S2; Thu, 22 Oct 2026 22:48:31 +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: _____wD3h2E+Itpq_8PKBg--.60768S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Kr1rCrWxGw43WFyDWw1kGrg_yoW8Ar48pF Zaya13AayUK3Z8WFnFgay8Xw1Igwn7Jr45G3Z0yw4j939rGw1DArW2y34a9F97CrZ3Wa4F vayYg3WxXr4DWaDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jo7KsUUUUU= X-CM-SenderInfo: pvkd40jtr6il2tof0z/xtbCzx-o9mraIj-NagAA3E