CVE-2026-68441

net/sched: Handle TC_ACT_REDIRECT from qdisc filter chains

State
Published
Severity
Not scored
Published
Aug 12, 2026
Updated
Oct 30, 2026
Reserved
Jul 30, 2026

Read the record on cve.org

Description

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

net/sched: Handle TC_ACT_REDIRECT from qdisc filter chains

When a TC filter attached to a qdisc filter chain returns TC_ACT_REDIRECT (ex: via an eBPF program calling bpf_redirect() or an act_bpf action), the redirect was silently lost i.e no qdisc classify function handled TC_ACT_REDIRECT, so the packet fell through the switch and was enqueued normally instead of being redirected.

This has been broken since bpf_redirect() was introduced for TC in commit 27b29f63058d ("bpf: add bpf_redirect() helper"). We got lucky for a long time because bpf_net_context was a per-CPU variable that was always available.

commit 401cb7dae813 ("net: Reference bpf_redirect_info via task_struct on PREEMPT_RT.") turned bpf_net_context into a task_struct member that is only set up by explicit callers. Without a caller setting it up, bpf_redirect() itself crashes with a NULL pointer dereference in bpf_net_ctx_get_ri(). However, even with bpf_net_context available, TC_ACT_REDIRECT from qdisc filter chains cannot be honored without adding skb_do_redirect() calls to every qdisc classify function, which would require changes across net/sched/. Isolate it to ebpf core where it belongs.

Instead, add a tcf_classify_qdisc() inline helper in pkt_cls.h, as a wrapper around tcf_classify() for use by qdisc classify functions and tcf_qevent_handle(). When the classify verdict is TC_ACT_REDIRECT, the wrapper converts it to TC_ACT_SHOT, dropping the packet rather than letting it continue silently. Dropping is preferred over letting the packet through because the user immediately sees packet loss. Silently passing the packet through would hide the problem and leave the user wondering why their redirect is not working.

The clsact fast path, tc_run() continues to call tcf_classify() directly and is unaffected: TC_ACT_REDIRECT is returned as-is and handled by sch_handle_egress/ingress() calling skb_do_redirect() as before.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 27b29f63058d26c6c1742f1993338280d5a41dc6 to before 06629ed4d0ecba55bc425eaea79974484fe0b414Affected
  • 27b29f63058d26c6c1742f1993338280d5a41dc6 to before 98ca831065c4d20baf97dc9e232777dc47a2b923Affected
  • 27b29f63058d26c6c1742f1993338280d5a41dc6 to before 636658e50b5c6a2c93413a9fa6d9da768dbfdaf2Affected
  • 27b29f63058d26c6c1742f1993338280d5a41dc6 to before 9cbad9c8125f5fe377c0800ab08f7196eab44456Affected
  • 27b29f63058d26c6c1742f1993338280d5a41dc6 to before c8fd74445e86f88096d2f6cf0f9e4d54d8ed1781Affected
  • 27b29f63058d26c6c1742f1993338280d5a41dc6 to before ec48b3be2c8595dd290be883dbd4fb8b2f9f5d5eAffected
LinuxLinux
  • 4.4Affected
  • before 4.4Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.114 through 6.12.*Not affected
  • 6.18.57 through 6.18.*Not affected
  • 7.1.6 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.