net/sched: Only allow act_ct to bind to clsact/ingress qdiscs and shared blocks
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3f14b377d01d8357eba032b4cabc8c1149b458b6 · < 9deda0fcda5c1f388c5e279541850b71a2ccfcf4| No fix yet |
| Linux Linux |
|
|
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/cc6bfb4a-4a2b-42d8-b9ce-7ef6644fb22b@ovn.org/
From the CVE record · Linux
The Linux kernel's net/sched act_ct action can cause a use-after-free when attached to a qdisc that does not handle TC_ACT_CONSUMED and the defragmentation engine later accesses the packet. The input does not specify what access an attacker needs or whether user interaction is required.
Anyone running a Linux kernel that uses act_ct with traffic-control qdiscs should check whether their kernel is affected; affected versions are not specified.