CVE-2026-68337: bpf: Reject redirect helpers without a bpf_net_context
In the Linux kernel, the following vulnerability has been resolved:
bpf: Reject redirect helpers without a bpfnetcontext
The bpfredirect() helpers and skbdoredirect() obtain the per-task bpfredirectinfo via bpfnetctxgetri(), which dereferences the current->bpfnetcontext unconditionally. That context is established on the paths that run tc BPF such as schhandle{ingress,egress}(), except for the case where {cls,act}bpf was attached to a proper qdisc. A program running from there reaches the NULL deref in two ways:
It calls bpfredirect() directly, which dereferences the context at the top of the helper:
tc qdisc add dev eth0 root handle 1: red limit 1MB min 10KB max 20KB \ avpkt 1000 burst 100 qevent earlydrop block 10 tc filter add block 10 pref 1 bpf obj redirect.o
It simply returns TCACTREDIRECT without helper call: tcfqeventhandle() then dispatches to skbdoredirect(), which dereferences the context
Rather than extending bpfnetcontext management into the qdisc path, make the redirect helpers refuse to operate when no context exists, and have tcfqeventhandle() drop a TCACTREDIRECT verdict instead of calling skbdoredirect(). Previous behaviour was a crash, so nothing regresses by not supporting it.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-68337?
CVE-2026-68337 has a risk rating of 17, indicating a serious vulnerability.
What systems are affected by CVE-2026-68337?
CVE-2026-68337 affects the Linux kernel specifically related to BPF redirect helpers.
How do I fix CVE-2026-68337?
To fix CVE-2026-68337, update your Linux kernel to the latest version where this vulnerability is resolved.
What are the consequences of CVE-2026-68337?
Exploiting CVE-2026-68337 can lead to denial of service or potential system compromise due to improper handling of BPF redirect helpers.
How can I check if my system is vulnerable to CVE-2026-68337?
You can check the version of your Linux kernel against the known patched versions to see if your system is vulnerable to CVE-2026-68337.