Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF33A3AEB29 for ; Mon, 10 Aug 2026 12:02:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363380; cv=none; b=TaLiS1tkiVOOoLcPIRHFcwy6gjE9pdF39eD1Msy0R8bOMyGGDiDeO5EZFmpUZt/OyvLc/dGzh22w/AkqjHIz9ZsD8gMrnWtubQsyw49qiUaWyJTDbWzjZll91+yzrq6uPFVBKTTqW52RVkaRg9a2ZsVkwshnVxRHfQYNgiydYak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363380; c=relaxed/simple; bh=RlVNLSeOm3oMzcbCh7hfB6ofwB0bI1DBRfWTuzfXCTk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g601ULM8BaBj+JzCl6HPh0cZLDzOPbUEpUAS9CWjagryQtFHCQd7KhfZ0ItAEf16UvkCur0xFFtRzRyNytI4PHUWNBeiPPRjJWlbRcZvoM/+ys9s74Jief6H66FP9yz2jFSBIQlWjedMd4hMifvUkx3UcBjx7tfQa3GLHeo//SU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pdvO/UVI; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="pdvO/UVI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B64F1F000E9; Mon, 10 Aug 2026 12:02:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363376; bh=y9x3IBJdiwYjCh3JdYRRvfa4/q2Sbyc7TgS2YX7H6ss=; h=From:To:Cc:Subject:Date:Reply-To; b=pdvO/UVIIbq5J0JaFzYc0xg2bS+ZDRe3fvbbvAqE0cIkcwxEhH5lMoTCA8nfmc21Q NffWbiPC9HWx4+1x2ODxz3+7hbjmSapS7OdwEbGgk5sdx01dsTrpBqn+EulDGlJnE3 Cc/eVFVDYc4pVcKcVn68Llr2JEOjqA97O6FqV8nk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68138: net/sched: serialize qdisc_rtab_list against concurrent get/put Date: Mon, 10 Aug 2026 13:57:35 +0200 Message-ID: <2026081059-CVE-2026-68138-ffa7@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3556; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kkeqh5A9BMz9LMueuMeLenhPHmOo0ym/1wwTDgrFg7U=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe7r7bPVZzk6qizik0Plaf4ZVcnmq5571li/XWevf0 5nTszu4I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSIc2wYMfFmYcco8O1jkW7 f1x9apGMp0Tfb4YFTb6WcaL/zc5u93a7wfZOa+lR1/R5AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net/sched: serialize qdisc_rtab_list against concurrent get/put qdisc_get_rtab() and qdisc_put_rtab() mutate the process-global singly linked list qdisc_rtab_list and a plain non-atomic 'int refcnt' with no lock. This was only safe because every caller historically held the RTNL mutex, which serialized all rate-table lookups, inserts and frees. That invariant no longer holds. cls_flower sets TCF_PROTO_OPS_DOIT_UNLOCKED, so tc_new_tfilter() keeps rtnl_held == false for it and sets TCA_ACT_FLAGS_NO_RTNL. That flag propagates through tcf_exts_validate_ex() -> tcf_action_init() -> tcf_action_init_1() -> tcf_police_init(), which calls qdisc_get_rtab()/qdisc_put_rtab() with the RTNL mutex NOT held. Two RTM_NEWTFILTER requests on different CPUs, each adding a flower filter with a police action carrying the same rate, then race on qdisc_rtab_list and on the non-atomic refcnt, leading to a use-after-free / double-free of the kmalloc-2k struct qdisc_rate_table. qdisc_rtab_list is a single global (not per-netns), so the corrupted object is shared system-wide. BUG: KASAN: slab-use-after-free in qdisc_put_rtab+0x12f/0x160 qdisc_put_rtab+0x12f/0x160 tcf_police_init+0xda9/0x1590 tcf_action_init_1+0x460/0x6b0 tcf_action_init+0x439/0xa40 tcf_exts_validate_ex+0x42d/0x550 fl_change+0xddd/0x7da0 tc_new_tfilter+0xaa7/0x2420 rtnetlink_rcv_msg+0x95e/0xe90 which belongs to the cache kmalloc-2k of size 2048 Protect qdisc_rtab_list and the refcount with a dedicated spinlock. The (sleeping, GFP_KERNEL) allocation in qdisc_get_rtab() is performed before taking the lock; if a concurrent inserter added an identical table in the meantime the freshly allocated one is freed under the lock, so no duplicate is leaked. qdisc_put_rtab() now decrements the refcount and unlinks under the same lock. The Linux kernel CVE team has assigned CVE-2026-68138 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit 470502de5bdb1ed0def643a4458593a40b8f6b66 and fixed in 7.1.6 with commit fb29e1b41052488ee3f2d115d4a870497ebd7f7d Issue introduced in 5.1 with commit 470502de5bdb1ed0def643a4458593a40b8f6b66 and fixed in 7.2-rc5 with commit f43ee0c0730d6191629b5ee1ceae27b1ebfdc047 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-68138 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/sched/sch_api.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/fb29e1b41052488ee3f2d115d4a870497ebd7f7d https://git.kernel.org/stable/c/f43ee0c0730d6191629b5ee1ceae27b1ebfdc047