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

bpf: Reject dev-bound-only programs on other devices

__bpf_offload_dev_match() falls back to comparing offdev pointers after an
exact netdev mismatch. Bound-only programs normally have NULL offdevs, so
unrelated netdevs compare equal. A bound-only program on an
offload-registered netdev can instead inherit a real offdev and match a
sibling port. With CAP_BPF and CAP_NET_ADMIN, a caller can use
bpf(BPF_LINK_CREATE) with a different target ifindex to run metadata kfuncs
specialized for the bound driver on the target driver's xdp_buff. Running a
veth-bound program on tun reads beyond tun's bare stack xdp_buff as a
veth_xdp_buff.

Oops: general protection fault, probably for non-canonical address
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
RIP: 0010:veth_xdp_rx_timestamp (drivers/net/veth.c:1673)
Call Trace:
...
tun_build_skb (drivers/net/tun.c:1739)
tun_get_user (drivers/net/tun.c:1856)
tun_chr_write_iter (drivers/net/tun.c:2091)
vfs_write (fs/read_write.c:595 fs/read_write.c:687)
ksys_write (fs/read_write.c:739)
do_syscall_64 (arch/x86/entry/syscall_64.c:84)
entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)
Kernel panic - not syncing: Fatal exception in interrupt

Restrict non-offloaded programs to exact netdev matches and retain the
shared-offdev fallback only for genuinely offloaded multi-port programs.
Published: 2026-10-09
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Kernel Denial of Service
Action: Patch immediately
AI Analysis

Impact

A flaw in the Linux kernel BPF subsystem allows a privileged user with CAP_BPF and CAP_NET_ADMIN to attach a BPF link to a network device that is different from the device the program was bound to. The internal matching logic mistakenly compares device pointers after an exact netdev mismatch, causing a bound-only program to inherit an offload device and match a sibling port. This can lead to a null pointer dereference or an out‑of‑bounds read in the device's xdp_buff, resulting in a general protection fault and a kernel panic. The effect is a denial of service for the host.

Affected Systems

Linux kernels that have not incorporated the patch that corrects __bpf_offload_dev_match are vulnerable. No specific version numbers are listed in the advisory; the issue applies to any build that includes the unpatched logic for the BPF offload handling. The vulnerability is applicable across all architectures that compile the BPF MDP code.

Risk and Exploitability

The CVSS score of 7.8 indicates moderate‑high severity. The EPSS score is below 1%, implying a low probability of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog and no public exploits are reported, but it requires local privileges (CAP_BPF and CAP_NET_ADMIN). In environments where trusted users can create BPF links, an attacker can trigger a kernel crash and consequently a denial of service; therefore prompt remediation is advised despite the low exploitation probability.

Generated by OpenCVE AI on October 24, 2026 at 16:05 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that includes the patch which restores proper dev‑match logic and prevents offload fallback for non‑bound programs.
  • If an immediate kernel upgrade is not possible, restrict the use of CAP_BPF and CAP_NET_ADMIN to trusted users only and prevent untrusted code from creating BPF links.
  • If offloaded BPF programs are not required, disable the offload features or verify that offload registration is legitimate before allowing BPF program attachment.

Generated by OpenCVE AI on October 24, 2026 at 16:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6568-1 linux security update
History

Sat, 24 Oct 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

cvssV3_1

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


Sun, 11 Oct 2026 04:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Sun, 11 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Fri, 09 Oct 2026 10:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Fri, 09 Oct 2026 08:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Reject dev-bound-only programs on other devices __bpf_offload_dev_match() falls back to comparing offdev pointers after an exact netdev mismatch. Bound-only programs normally have NULL offdevs, so unrelated netdevs compare equal. A bound-only program on an offload-registered netdev can instead inherit a real offdev and match a sibling port. With CAP_BPF and CAP_NET_ADMIN, a caller can use bpf(BPF_LINK_CREATE) with a different target ifindex to run metadata kfuncs specialized for the bound driver on the target driver's xdp_buff. Running a veth-bound program on tun reads beyond tun's bare stack xdp_buff as a veth_xdp_buff. Oops: general protection fault, probably for non-canonical address KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] RIP: 0010:veth_xdp_rx_timestamp (drivers/net/veth.c:1673) Call Trace: ... tun_build_skb (drivers/net/tun.c:1739) tun_get_user (drivers/net/tun.c:1856) tun_chr_write_iter (drivers/net/tun.c:2091) vfs_write (fs/read_write.c:595 fs/read_write.c:687) ksys_write (fs/read_write.c:739) do_syscall_64 (arch/x86/entry/syscall_64.c:84) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) Kernel panic - not syncing: Fatal exception in interrupt Restrict non-offloaded programs to exact netdev matches and retain the shared-offdev fallback only for genuinely offloaded multi-port programs.
Title bpf: Reject dev-bound-only programs on other devices
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-10-24T14:08:39.904Z

Reserved: 2026-09-25T10:25:14.345Z

Link: CVE-2026-98382

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-09T08:16:56.680

Modified: 2026-10-24T14:16:40.200

Link: CVE-2026-98382

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-09T00:00:00Z

Links: CVE-2026-98382 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-24T16:15:17Z

Weaknesses