Skip to contentSkip to conversation

CVE-2026-23270: net/sched: Only allow act_ct to bind to clsact/ingress qdiscs and shared blocks

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 18

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

net/sched: Only allow act_ct to bind to clsact/ingress qdiscs and shared blocks

As Paolo said earlier [1]:

"Since the blamed commit below, classify can return TC_ACT_CONSUMED while the current skb being held by the defragmentation engine. As reported by GangMin Kim, if such packet is that may cause a UaF when the defrag engine later on tries to tuch again such packet."

act_ct was never meant to be used in the egress path, however some users are attaching it to egress today [2]. Attempting to reach a middle ground, we noticed that, while most qdiscs are not handling TC_ACT_CONSUMED, clsact/ingress qdiscs are. With that in mind, we address the issue by only allowing act_ct to bind to clsact/ingress qdiscs and shared blocks. That way it's still possible to attach act_ct to egress (albeit only with clsact).

[1] https://lore.kernel.org/netdev/674b8cbfc385c6f37fb29a1de08d8fe5c2b0fbee.1771321118.git.pabeni@redhat.com/
[2] https://lore.kernel.org/netdev/[email protected]/

The Linux kernel CVE team has assigned CVE-2026-23270 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.8 with commit 3f14b377d01d8357eba032b4cabc8c1149b458b6 and fixed in 6.12.77 with commit 524ce8b4ea8f64900b6c52b6a28df74f6bc0801e
	Issue introduced in 6.8 with commit 3f14b377d01d8357eba032b4cabc8c1149b458b6 and fixed in 6.18.18 with commit 380ad8b7c65ea7aa10ef2258297079ed5ac1f5b6
	Issue introduced in 6.8 with commit 3f14b377d01d8357eba032b4cabc8c1149b458b6 and fixed in 6.19.8 with commit 9deda0fcda5c1f388c5e279541850b71a2ccfcf4
	Issue introduced in 6.8 with commit 3f14b377d01d8357eba032b4cabc8c1149b458b6 and fixed in 7.0-rc3 with commit 11cb63b0d1a0685e0831ae3c77223e002ef18189
	Issue introduced in 5.15.148 with commit 172ba7d46c202e679f3ccb10264c67416aaeb1c4
	Issue introduced in 6.1.75 with commit 0b5b831122fc3789fff75be433ba3e4dd7b779d4
	Issue introduced in 6.6.14 with commit 73f7da5fd124f2cda9161e2e46114915e6e82e97
	Issue introduced in 6.7.2 with commit f5346df0591d10bc948761ca854b1fae6d2ef441

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-23270

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:
include/net/act_api.h
net/sched/act_ct.c
net/sched/cls_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/524ce8b4ea8f64900b6c52b6a28df74f6bc0801e
	https://git.kernel.org/stable/c/380ad8b7c65ea7aa10ef2258297079ed5ac1f5b6
	https://git.kernel.org/stable/c/9deda0fcda5c1f388c5e279541850b71a2ccfcf4
	https://git.kernel.org/stable/c/11cb63b0d1a0685e0831ae3c77223e002ef18189