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

net/sched: cls_bpf: reject dev-bound programs bound to a different device

cls_bpf_prog_from_efd() obtained a SCHED_CLS program via
bpf_prog_get_type_dev() but never verified that a device-bound (offloaded)
program's bound netdev matches the TC netdev the classifier is being
attached to. This let a program loaded with prog_ifindex for device A be
attached via cls_bpf + skip_sw to device B; deleting device A then
destroyed the program's offload state while it was still attached to
device B, triggering a netdevsim WARN (panic with panic_on_warn=1).

Mirror the XDP attach path (net/core/dev.c) and reject the attach with
-EINVAL when a dev-bound program's bound device does not match the
target device.
Published: 2026-08-26
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability occurs in the Linux kernel’s traffic control classifier for BPF (cls_bpf). A user‑supplied BPF program bound to a specific network device is accepted without verifying that the device the program is attached to matches the device it was originally bound to. As a result, a program programmed for device A can be incorrectly attached to device B, and the subsequent deletion of device A can corrupt the offload state still in use on device B. The kernel then emits a WARN and may terminate with a panic if panic_on_warn is enabled, causing a system reboot. The primary impact is a denial‑of‑service via kernel crash; an attacker with the ability to load BPF programs could trigger it.

Affected Systems

The flaw affects Linux kernels that contain the cls_bpf classifier before the patch referenced in the Git log. The failure exists across all kernel releases that use the legacy cls_bpf offloading path; no specific major or minor kernel version is listed, so any pre‑patch kernel running cls_bpf and attached to offloaded devices is potentially vulnerable.

Risk and Exploitability

The CVSS score is not provided, but the vulnerability can lead to a full kernel panic and is considered critical. The EPSS score is not available; the vulnerability is not listed in the CISA KEV catalog. The attack requires privileged execution to load and attach a BPF program, which is a local‑only or tightly scoped privilege. Although no public exploit is known, the lack of a device‑matching check means exploitation is relatively straightforward for an authenticated kernel developer or privileged user. Given the severity of a kernel panic and the likelihood that the vulnerability will be present on numerous systems, the risk is high until a kernel update is applied.

Generated by OpenCVE AI on August 26, 2026 at 15:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel that includes the device‑bound program validation change (commit 120977e2c0).
  • If an update is not immediately possible, temporarily disable the cls_bpf classifier or remove any offloaded cls_bpf programs to prevent accidental attachment.
  • Reboot the system, which clears any stale offload state that might otherwise cause a panic after deletion of a bound device.

Generated by OpenCVE AI on August 26, 2026 at 15:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 26 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20

Wed, 26 Aug 2026 14:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net/sched: cls_bpf: reject dev-bound programs bound to a different device cls_bpf_prog_from_efd() obtained a SCHED_CLS program via bpf_prog_get_type_dev() but never verified that a device-bound (offloaded) program's bound netdev matches the TC netdev the classifier is being attached to. This let a program loaded with prog_ifindex for device A be attached via cls_bpf + skip_sw to device B; deleting device A then destroyed the program's offload state while it was still attached to device B, triggering a netdevsim WARN (panic with panic_on_warn=1). Mirror the XDP attach path (net/core/dev.c) and reject the attach with -EINVAL when a dev-bound program's bound device does not match the target device.
Title net/sched: cls_bpf: reject dev-bound programs bound to a different device
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-26T14:36:49.950Z

Reserved: 2026-08-15T05:44:03.930Z

Link: CVE-2026-74736

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-26T15:16:52.173

Modified: 2026-08-26T15:16:52.173

Link: CVE-2026-74736

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-26T15:30:05Z

Weaknesses
  • CWE-20

    Improper Input Validation