CVE-2026-68337

Source
https://cve.org/CVERecord?id=CVE-2026-68337
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68337.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-68337
Downstream
Published
2026-08-10T12:03:13.583Z
Modified
2026-08-18T03:31:11.240281597Z
Summary
bpf: Reject redirect helpers without a bpf_net_context
Details

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 bpf_redirect() 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 early_drop 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68337.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3625750f05ecce21a0fce429c1ff85acfffb461b
Fixed
cabfacbd5af09d3ae898ca224c4a1459e9bba15d
Fixed
3f4920d165b29052255527d8ae7619e7ec132ece

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68337.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.9.0
Fixed
7.1.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68337.json"