Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98075 Overview
CVE-2026-98075 is a Linux kernel vulnerability in the Berkeley Packet Filter (BPF) subsystem. The verifier fails to reject BPF_PSEUDO_FUNC loads that reference the main subprogram. The jit_subprogs() routine in fixups.c rewrites BPF_PSEUDO_FUNC loads to contain real function addresses, but it only runs when env->subprog_cnt > 1. When a BPF program takes the address of main and passes it to callback-registering helpers such as bpf_timer_set_callback(), the pointer is never patched. The kernel then performs an indirect call to a bogus address.
Critical Impact
An unprivileged BPF program loader can trigger a kernel-mode call to an unresolved address, resulting in kernel instability or potential control-flow corruption.
Affected Products
- Linux kernel (upstream) with BPF JIT and subprogram support
- Stable kernel branches prior to the fix commits 1182124, 374b2c5, 92f0bd0, and d6c3977
- Distributions shipping unpatched Linux kernels with BPF enabled
Discovery Timeline
- 2026-09-25 - CVE-2026-98075 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98075
Vulnerability Analysis
The Linux kernel BPF subsystem supports loading function pointers inside BPF programs using the BPF_PSEUDO_FUNC instruction form. During JIT compilation, bpf_jit_subprogs() iterates the subprograms and calls jit_subprogs() in fixups.c, which rewrites these pseudo-loads to the real compiled addresses of each subprogram. This fixup path is gated on env->subprog_cnt > 1, meaning programs that contain only a main function skip the rewrite entirely.
If such a program takes its own address with void *ptr = main; and registers that pointer as a callback through helpers like bpf_timer_set_callback(), the stored pointer still carries the pseudo value rather than a valid function address. When the timer fires, the kernel dispatches to an invalid address inside kernel context. The resolution rejects BPF_PSEUDO_FUNC loads that target the main subprogram instead of extending the fixup logic.
Root Cause
The root cause is incomplete validation in the BPF verifier combined with a conditional fixup path. jit_subprogs() was designed under the assumption that only non-main subprograms would be referenced via BPF_PSEUDO_FUNC. No verifier check enforced that assumption, so pseudo loads pointing to subprogram index 0 slipped through unresolved.
Attack Vector
Exploitation requires the ability to load a BPF program. On systems that permit unprivileged BPF, any local user can craft a program that references main via BPF_PSEUDO_FUNC and attaches it as an async callback. Triggering the callback forces the kernel to call an unresolved address, producing a crash or undefined behavior inside kernel mode. The vulnerability is local and requires BPF load privileges, which on hardened systems are restricted to CAP_BPF or CAP_SYS_ADMIN.
No public exploit code is referenced in the advisory. See the upstream commits for the resolution logic: Kernel Git Commit 1182124, Kernel Git Commit 374b2c5, Kernel Git Commit 92f0bd0, and Kernel Git Commit d6c3977.
Detection Methods for CVE-2026-98075
Indicators of Compromise
- Kernel oops or panic entries referencing BPF timer callbacks or bpf_timer_cb with faulting addresses outside valid kernel text.
- Unexpected BUG: or general protection fault messages in dmesg immediately after a BPF program is loaded by a non-root user.
- audit records showing bpf() syscalls with program types that register timer or async callbacks from untrusted processes.
Detection Strategies
- Monitor the bpf() syscall with auditd or eBPF-based telemetry to capture program loads, verifier results, and loader UID.
- Correlate kernel crash dumps with recent BPF program loads to attribute instability to a specific loader process.
- Review loaded BPF programs with bpftool prog show and inspect instruction streams for BPF_PSEUDO_FUNC references to subprogram index 0.
Monitoring Recommendations
- Alert on repeated kernel faults originating in the BPF JIT path or in callback dispatchers such as __hrtimer_run_queues.
- Track processes invoking bpf(BPF_PROG_LOAD, ...) without CAP_SYS_ADMIN and flag unexpected hosts.
- Baseline the set of workloads that legitimately use BPF timers and investigate deviations.
How to Mitigate CVE-2026-98075
Immediate Actions Required
- Apply vendor-supplied kernel updates that include the upstream fix commits as soon as distribution packages become available.
- Restrict BPF program loading to privileged users by setting kernel.unprivileged_bpf_disabled=1 via sysctl.
- Inventory workloads that rely on BPF timers or async callbacks and validate they continue to function on patched kernels.
Patch Information
The fix is upstream in the Linux kernel and backported across stable branches. The relevant commits are Kernel Git Commit 1182124, Kernel Git Commit 374b2c5, Kernel Git Commit 92f0bd0, and Kernel Git Commit d6c3977. The verifier now rejects BPF_PSEUDO_FUNC references to the main subprogram at load time.
Workarounds
- Disable unprivileged BPF by setting kernel.unprivileged_bpf_disabled=1 until the kernel is patched.
- Remove CAP_BPF from unnecessary service accounts and container runtimes to reduce the local attack surface.
- Where possible, mount /sys/fs/bpf with restricted permissions and audit any application that programmatically loads BPF code.
# Configuration example
sudo sysctl -w kernel.unprivileged_bpf_disabled=1
echo 'kernel.unprivileged_bpf_disabled=1' | sudo tee /etc/sysctl.d/90-bpf-hardening.conf
sudo sysctl --system
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

