🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6469

[BUG] net/sched: act_csum can checksum beyond a short IPv6 jumbogram skb

#6469
From: shaos
Date: Thu, 22 Oct 2026 14:46
29 lines
10625 bytes
Hello,

An unprivileged process with namespace-scoped CAP_NET_ADMIN and CAP_NET_RAW installs a csum action for UDP-Lite and sends a 300-byte IPv6 frame with a Jumbo Payload value of 0xffffffca and UDP-Lite coverage longer than the bytes present. The jumbo-length addition wraps the pull-length check, while the later checksum path still uses the unwrapped length.

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/6522612a4cac2b4db3e4cfc32ec8ea8f/raw/5b12fad1d38c90b7a8214e02bffeb7bfd0994ebe/console-output.txt
kernel config:
https://gist.githubusercontent.com/shaos26/6522612a4cac2b4db3e4cfc32ec8ea8f/raw/f6506700a588fd394fdd662c4bd91115e0cb8c3b/kernel-config.txt
reproducer sources:
https://gist.githubusercontent.com/shaos26/ef3fd748f2329565eca96a4f4e3b2c85/raw/7694fd571c683bb1f98793979b7bf2fe09559bd4/poc.c
https://gist.githubusercontent.com/shaos26/ef3fd748f2329565eca96a4f4e3b2c85/raw/200625ab70731666abbb27f0e233a42626ac7c58/run-unpriv.c
https://gist.githubusercontent.com/shaos26/ef3fd748f2329565eca96a4f4e3b2c85/raw/7c17996d150eb55421fd88cf62b4a71b8ba14207/seed-secret.c

Build the tested kernel with the attached configuration and boot a disposable QEMU guest. The linked userspace sources seed the skb allocation, drop privileges, enter fresh user and network namespaces, install the action, and capture checksum responses.

Impact and prerequisites:
The checksum oracle consumes 42 bytes beyond the skb's logical data. In two fresh boots, checksum output matched the checksum of a marker seeded by a different initial-namespace UID in 75/512 and 85/512 trials; two wrong-pattern controls had 0/512 matches. This demonstrates that data from a prior root-owned skb allocation can influence output readable by an unprivileged namespace process. The oracle is limited; no arbitrary-address read or privilege escalation is demonstrated.

Validation: Two fresh user/network-namespace positives matched the root-seeded marker checksum in 75/512 and 85/512 trials. Two wrong-pattern controls returned 0/512 matches.

Thanks,

shaos
Technical Details
Message-ID: <20261022144653.60550-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-350612-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-350612-linux-kernel-netdev=dewy.ru
From: shawnq1@163.com (shaos)
Newsgroups: linux.kernel.netdev
Subject: [BUG] net/sched: act_csum can checksum beyond a short IPv6 jumbogram skb
Date: Thu, 22 Oct 2026 14:46:53 +0000
Organization: Usenet Network
Message-ID: <20261022144653.60550-1-shawnq1@163.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="235711"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:j+V/oiv0u6hcVON3xASSIiUK8aM= sha256:PoZ5In0WsV/Hwo0YjLYInr/tTqlOt1HaYO2u4gNASTo=
	sha1:fvPvQNPgXvO4yS+dB91cJIbuOwE= sha256:UJo+0na+WFgFXQIrbwNTlnipfl02iqFbEnELpHSmDv8=
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 C6DAE1112B1; Thu, 22 Oct 2026 17:53:59 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.046
X-Spam-Status: No, score=-3.046 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.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 yXJJKRvX2fFd;
	Thu, 22 Oct 2026 17:53:56 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-350612-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 801861112A8; Thu, 22 Oct 2026 17:53:48 +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 641863C735; Thu, 22 Oct 2026 14:47:46 +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=1792680466;
	b=rq338vG1nqDJoHH//vihGsJ7sj3R4Sf+sdsfqe8gzyOrp9etRsuTLN6paTwqt5LiUcCw
	 QYti/FYHr0NOgzo9IOSmPvXuiNkQWMGqMoooshY1ivjn7LvO6M/c3U0FuqqTVn3d0qfl5
	 0aXU0C04O01bm2ffp0/glRnE5pq6Eq5UPtA7mxFJfznz8efytoUfbHrRThL/qLkUwJ6Wz
	 uiEas0c22W69nR8yzSi6J5Fu0TkWXwrbnsOBOJzI7p1WffebZLiOjzciNBnTXqVHnKOm/
	 7z6qPefv5uyO5GVfOureT9n0GhXkh2XsDjlSlZb7jCFI/yZZjpT7gIzMZZT3liqMA4Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792680466;
	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=fAr2ze+GnzYp76pjsyO3KRLM40bM3z0iFttGuo43GmE=;
	b=t/M+xi4RnZVyJKUeljTZJ2x3KT5q7l6fi3KcvNwCfVKM0GSOxIoCgMfHxYEX6kBRhBs1
	 LUr8xikLBIE4EZWf6DhYXzHaYdC7ijqX7w01dXYPO/21YJG9dYERq69BXxPgza1w5Yf+z
	 Fx+HN6T+Ns5IVUMxdz6C3ScRr2xdhoQIkgav7oRJhY1ygDilFh/yO2zII6joUJ7wMAG8+
	 7q359MWLlbA7mkOc4Mq4J9PI2eGFRK7PR6E7wopu3P4OfKB9zdoMIUeCBlp2Y9DymOVag
	 OHmvWIMivObD29Wvw1P+/9ynLAi2J9ZuyclYIe6POh4tr4KyeiPsBpgGYJ+jCy9C2Og==
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=GAZ05K3+;
	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 151B2606A321;
	Thu, 22 Oct 2026 14:47:46 +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=GAZ05K3+
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=117.135.210.2
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792680464;
	b=CoSNs5sn9x5npX5o+5NtEby7VshRYYT2CkEGFsIGuFOVPMVzxgZRnZb3ejKcTX8M42qF
	 mKlPXQ5RmyyS6/aBIsv4iiYYyh3QDMbhmMruLq1Lldv4o1joASeqCpwK/PrO+N6rIlyqN
	 +wf5dlp98KYA5tG1KKFrgjMhOwj5IdzcWl2R0Nigs65lxRSPrK6h0QtaF4q9Z9DIMy3Oe
	 fzjSv0T3XdgaS5J/cId7fMGK+RFWykYTLe3Ee4i869pfrza5dGxWY3910gHFU4NaNejAb
	 hdstD2IyDfnNswi7Bxl91+jb6EJiST8dq/P69Wq+HndequVYjjtaUFI1PVr8Mwqj/wQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792680464;
	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=fAr2ze+GnzYp76pjsyO3KRLM40bM3z0iFttGuo43GmE=;
	b=UGjVMbdF/iJdYWAiR0k41GR9e7HHTL+dK3mEpgi2wqGc1KZVeDOilPDdODMEHXE90dzr
	 mRooPNx2+KRBf5w5b/fBR7stg4GiBdZlNpz2X0JDLoPf4shsC6z9Q1FTa3B62wCfV+WUn
	 PUSYwAkygKZGQsrPNH51sTE2WO8Sb5B4+9RBd41gl2/Fnb6vPNa13Sht+3dy9bM2S3Jyp
	 JidxCtOr9R0jBYszh3RohjKNFMSaoUgzz+GKgQTBV/ZlhHaLTPxZ6WMcT9DE3b1rVMSal
	 XzZ5FhY77TS+5OGgXOrADarucAB80Wlp6FmMNAy5LKyvusc0g/CwSTYHfCpRIgz3ZPA==
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=GAZ05K3+;
	arc=none smtp.remote-ip=117.135.210.2
X-Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.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 2137A606A31F;
	Thu, 22 Oct 2026 14:47:41 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2137A606A31F
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=fA
	r2ze+GnzYp76pjsyO3KRLM40bM3z0iFttGuo43GmE=; b=GAZ05K3+fPSFHLOebs
	7D1F2E9NQKuN0ve4obwPx1pTN2RihnzVoDZuImgmxUAgvpq+G5wgPRNsIYKPwYF1
	T3G4kxbUQ/58CFcIsSIbQ36LgiJUsrSL8MoL3d0aGHPx/Dpcikgwy2YDtknZyycX
	iW2jSGJvisOmlRiZBXEvEi5EA=
X-Received: from shaos.localdomain (unknown [])
	by gzga-smtp-mtada-g1-1 (Coremail) with SMTP id _____wD3n2PdIdpq_ITKBg--.59388S2;
	Thu, 22 Oct 2026 22:46:54 +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: _____wD3n2PdIdpq_ITKBg--.59388S2
X-Coremail-Antispam: 1Uf129KBjvJXoW7tF4kArykWF18CrWUZFWUJwb_yoW5Jr1xpF
	9Yv3WavF47Kr4qqwnrKFW8Xws8Zwn3G3yDX34DXry8ArZI9w1jy3yft3yF9FykXr9YgrWS
	ya10v3WxJrW8ZFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2
	9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j5a93UUUUU=
X-CM-SenderInfo: pvkd40jtr6il2tof0z/xtbC0B-Q3mraId-ZJgAA3w