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

bpf: Reject redirect helpers without a bpf_net_context

The bpf_redirect*() helpers and skb_do_redirect() obtain the per-task
bpf_redirect_info via bpf_net_ctx_get_ri(), which dereferences the
current->bpf_net_context unconditionally. That context is established
on the paths that run tc BPF such as sch_handle_{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 TC_ACT_REDIRECT without helper call: tcf_qevent_handle()
then dispatches to skb_do_redirect(), which dereferences the context

Rather than extending bpf_net_context management into the qdisc path,
make the redirect helpers refuse to operate when no context exists, and
have tcf_qevent_handle() drop a TC_ACT_REDIRECT verdict instead of
calling skb_do_redirect(). Previous behaviour was a crash, so nothing
regresses by not supporting it.
Published: 2026-08-10
Score: 4.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability in the Linux kernel enables a crash of the system when a BPF program performs a redirect without a valid bpf_net_context. The issue arises from an unconditional dereference of a NULL pointer in the bpf_redirect*() helpers and skb_do_redirect(). When a tc BPF program is executed through a qdisc that does not establish a bpf_net_context, the kernel attempts to access that context and triggers a fault. The resulting crash leads to a denial of service by terminating kernel threads and potentially taking the entire system offline. The weakness is a classic NULL pointer dereference.

Affected Systems

Affected: The Linux kernel on all versions that have not applied the fix referenced in commits 3f4920d165b29052255527d8ae7619e7ec132ece and cabfacbd5af09d3ae898ca224c4a1459e9bba15d. The vulnerability exists in the BPF subsystem when tc BPF programs are attached to a qdisc lacking a proper bpf_net_context. No specific kernel release or major version is listed, so any Linux installation that permits the use of tc BPF with redirect helpers could be impacted. Based on the description, this inference applies to all Linux installations that permit the use of tc BPF with redirect helpers.

Risk and Exploitability

The bug is a local issue that requires the attacker to control the creation of tc BPF programs or the configuration of filters that trigger the redirect helper. Based on the description, it is inferred that the attack vector is to add a tc filter with a BPF object that calls bpf_redirect() or returns TC_ACT_REDIRECT, which is then processed on a qdisc path that has no bpf_net_context. Exploitation is straightforward for a user with sufficient privileges to run tc commands. Because the result is a kernel crash, the impact is a denial of service rather than privilege escalation. The CVSS score of 4.1 indicates a low to medium severity, and the EPSS score of < 1% suggests a very low probability of exploitation; the vulnerability is not listed in CISA KEV catalog, but the crash potential still warrants attention.

Generated by OpenCVE AI on August 13, 2026 at 04:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the fix referenced by commit 3f4920d165b29052255527d8ae7619e7ec132ece or cabfacbd5af09d3ae898ca224c4a1459e9bba15d.
  • If an immediate kernel upgrade is not possible, avoid using tc BPF filters that invoke bpf_redirect() or return TC_ACT_REDIRECT without attaching to a proper qdisc that establishes a bpf_net_context.
  • Monitor system logs for crashes associated with tc BPF usage and apply the patch once it becomes available in your distribution’s kernel repository.

Generated by OpenCVE AI on August 13, 2026 at 04:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 12 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.1, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important


Mon, 10 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Mon, 10 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Reject redirect helpers without a bpf_net_context The bpf_redirect*() helpers and skb_do_redirect() obtain the per-task bpf_redirect_info via bpf_net_ctx_get_ri(), which dereferences the current->bpf_net_context unconditionally. That context is established on the paths that run tc BPF such as sch_handle_{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 TC_ACT_REDIRECT without helper call: tcf_qevent_handle() then dispatches to skb_do_redirect(), which dereferences the context Rather than extending bpf_net_context management into the qdisc path, make the redirect helpers refuse to operate when no context exists, and have tcf_qevent_handle() drop a TC_ACT_REDIRECT verdict instead of calling skb_do_redirect(). Previous behaviour was a crash, so nothing regresses by not supporting it.
Title bpf: Reject redirect helpers without a bpf_net_context
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:03:36.374Z

Reserved: 2026-07-30T09:28:09.383Z

Link: CVE-2026-68337

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-10T13:20:24.120

Modified: 2026-08-17T06:17:41.843

Link: CVE-2026-68337

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-10T12:03:13Z

Links: CVE-2026-68337 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T05:00:10Z

Weaknesses