Article View: linux.kernel.netdev
Article #6472[BUG] net/sched: duplicate RTM_DELACTION entries underflow action refcount
From: shaos
Date: Thu, 22 Oct 2026 14:47
Date: Thu, 22 Oct 2026 14:47
27 lines
10140 bytes
10140 bytes
Hello, Create one standalone gact action, then send one RTM_DELACTION request containing three entries with the same action kind and index. The duplicate references cause the delete path to drop the object’s reference more times than the batch owns. 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/c37510312cb6cdfcc7a8dfa8567c0bfd/raw/b8fd79ae905833e51d6db058b2a6f715168b39cf/console-output.txt kernel config: https://gist.githubusercontent.com/shaos26/c37510312cb6cdfcc7a8dfa8567c0bfd/raw/1acf6d132666c0f60829ca94c0995f5c5f31f5ff/kernel-config.txt reproducer: https://gist.githubusercontent.com/shaos26/c37510312cb6cdfcc7a8dfa8567c0bfd/raw/a46ac914f3b3cd2abdf52898f90a993038d7f442/poc.c Build the tested kernel with the attached configuration and run the static poc.c in a disposable guest with CAP_NET_ADMIN in the tested network namespace. The program creates the action and sends a duplicate-index RTM_DELACTION batch. Impact and prerequisites: The kernel reports a refcount underflow from __tcf_action_put() while processing a user-controlled rtnetlink request. panic_on_warn can turn the warning into a panic. The evidence does not establish controlled use-after-free, memory corruption or privilege escalation; CAP_NET_ADMIN in the initial user namespace is required; an ordinary user namespace does not pass this action API capability check. Validation: Two fresh exact-revision boots reproduced the underflow warning; the two-duplicate close control returned without the warning. Thanks, shaos
Technical Details
Message-ID:
<20261022144729.61125-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-350613-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-350613-linux-kernel-netdev=dewy.ru From: shawnq1@163.com (shaos) Newsgroups: linux.kernel.netdev Subject: [BUG] net/sched: duplicate RTM_DELACTION entries underflow action refcount Date: Thu, 22 Oct 2026 14:47:29 +0000 Organization: Usenet Network Message-ID: <20261022144729.61125-1-shawnq1@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="236170"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:obkK+o4SvMcHU1bCWqVG95tsIl0= sha256:Vpt5u7uEks+e50pQn5gnLFwRkGtDMXyw6OBF6TQWse4= sha1:6PsoA11C91bJkqc7w8oNPcU9XpM= sha256:W87feiAtDMGMCkPR/ZJf9DbDy2bqg1ZvaPO5xDAAmf0= 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 01D881112B1; Thu, 22 Oct 2026 17:55:11 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.047 X-Spam-Status: No, score=-3.047 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] 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 Ahdd4_K0OYv6; Thu, 22 Oct 2026 17:55:08 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-350613-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 DE4481112AD; Thu, 22 Oct 2026 17:54:59 +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 112BA3D833; Thu, 22 Oct 2026 14:48:15 +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=1792680494; b=28p5lycmv+N32dNH5nib0QHfg1UzSZyQN/qjvyxJOQcstU2q4IaMX08P65taljVT0jqv Lh12IaWK6Ng/5EpaNd0rJvfu8lTGs5FWNLiMqMRHBNzA8ehF1usotArPvFwB0rep0Sbmm G7P1cOlS0cf+g9p9aFc117WpoueeC+qFp4IORVoliscJyLGLsMVgHUW0ldTIKB1O9A4Uu kwtyJBMiogzwj/1dglCbLdlD2dlPjOskISaJFoVaSJtfbIVr1UaqUgzOfUSeFP2KMmOS4 A99RxCIRFFUFKEzK66l8wyhgPrTR+Ia8/KGllyZ+QlceV5MdQqflxAnaXS4FSNMVIAQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680494; 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-Type:Content-Transfer-Encoding:X-CM-TRANSID: X-Coremail-Antispam:X-CM-SenderInfo; bh=77ETMQ3vO2jZDZE1V2nqF3MQlazT7Wo40RJuuWC1z20=; b=400hgwnoKI4GPlJHpAJRDNgygdjQxynOGP/G51f5BEYgk3RXRoYDQ2loVTls/naNH3BH 9J0BfS1Gcio4o54ZoXrNgNIwUlEGhw0Tkr6ybVlIHnE9ItXUiaXUfx3RoUg/iAhiQNEnk Z9tUeV716Bt/pf5Jf5ohodrSQLpQJCMPr+l/aHJh+8Xb1Nhye/Qdzne7pAVtlw4ouh2ka YVc7K4BG8zXO5fbwcsBg1lM6Xis5fMb073jm5jUp+WrcvZjY6piXqDfIudECgluPJQ44N XBM6HNZbT/8vVwCbD5pXd4ZpWzOU1pMLT3AksUCaZ8lX5f2MX3nqIcbegMfWvZk++Rw== 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=Cn9F2IS1; 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 BB5A4606A31A; Thu, 22 Oct 2026 14:48: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=Cn9F2IS1 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=117.135.210.5 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792680488; b=zLXG3K8Kt4D0MlTVkzESLlz6GTfFgrFm0S/BUTwcYxbvtX+ywnSNX+reObmvNhM4+dkP NAD13yRSNOjvTY2hdN8q2X4vZHYzmZvzqueaibJNr9FOrognVNbRMDRs0uG0Xrn0kbEYM lZBTPaySccp8wnNHnHURwEawbOYXIOu2ObOlW5410H9zk0pMGhap25QCgZtNG9IVtzbyE OkvLZ76Qxwe/gCDeRASclnLlqrFt6eE7h+7G4Vp+zJsaSkEQzEFF3ZPBmHbk2CxGvDjfN H8FfVWQXmbLqKZEau6msmt5ZJ9ODDDG7Xmz6bv+2dccsr0w37ZqqS3+JSeSnlGbikJA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792680488; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-Id:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding:X-CM-TRANSID:X-Coremail-Antispam: X-CM-SenderInfo; bh=77ETMQ3vO2jZDZE1V2nqF3MQlazT7Wo40RJuuWC1z20=; b=NEmSQomLh/lj+1rUP2lv/2jXkJHYKBHl9u+XkjPajj6engvdpklACacotGnU48ibTaEY pfMOIikx9URgjX5AGgB6o+qmtX1IX8UfRtv+d5keVqKP6mIWTbxsxuWRKsPWCNcnDPxbz 6EEirMe3nOyRqkQYfyokDgTpss0Ba9IMAQgBi20yJb18ILfI9eePquLViC04BhDpSwMBX HSXT5ETHeyUuK/UrtbLo91QV9+eumwRYs5ARClKPrZXKUfuiPqlS6qo/w5VDtKJbcmK9F agpaeaf48UqmHe6VByFzxyEFywsyCf3V7I7wHtXMcCFJTwoHwdYBvmQdB2j6sDIz8ag== 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=Cn9F2IS1; arc=none smtp.remote-ip=117.135.210.5 X-Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.5]) (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 163BD606A319; Thu, 22 Oct 2026 14:48:05 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 163BD606A319 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: Content-Type; bh=77ETMQ3vO2jZDZE1V2nqF3MQlazT7Wo40RJuuWC1z20=; b=Cn9F2IS12WzcWS+U35aLYrRVOGVfSjkN6L47X7VRPslk1LsOxo3CNwxpaKQUuE wI2M0bL4D2gJeLJE412Qpo3tBBCmCjQiZbxy5+lH0mBO80bTeIx96+HcSe5qf/8M aNQVBGd6bNe4epBn2/ivlMtAtL+U8352CWRYSy1WAT6gw= X-Received: from shaos.localdomain (unknown []) by gzga-smtp-mtada-g1-2 (Coremail) with SMTP id _____wD33_MBItpqGScvBw--.57072S2; Thu, 22 Oct 2026 22:47:30 +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 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: _____wD33_MBItpqGScvBw--.57072S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7CryDtFWfGrW5KF13WrW7urg_yoW8CryUpF WFvF13t3Z3CFn8Jw1kKF48X3ZY9rs7ta15Gas8Xr4rC39Ik3ZFkryIyry0yay7AFykWryv v34UKF4xWw45uaDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j5sqXUUUUU= X-CM-SenderInfo: pvkd40jtr6il2tof0z/xtbC8gLZ52raIgI0xgAA3s