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-98043 Overview
CVE-2026-98043 is a Linux kernel vulnerability in the Berkeley Packet Filter (BPF) verifier. The verifier function reg_not_null() incorrectly infers that a register holds a non-NULL value based solely on its type. For pointer types that permit arithmetic, the type only guarantees a non-NULL base. When combined with an unbounded runtime offset, the computed address may still equal NULL. A crafted BPF program can exploit this logic to produce a NULL pointer dereference inside the kernel.
Critical Impact
A local user capable of loading BPF programs can trigger a kernel NULL pointer dereference, causing denial of service through a kernel crash.
Affected Products
- Linux kernel (upstream) — BPF subsystem verifier
- Stable kernel branches receiving the backport commits 67b529f521a6 and cb6642048739
- Distributions shipping affected kernel versions prior to applying the fix
Discovery Timeline
- 2026-09-25 - CVE-2026-98043 published to the National Vulnerability Database (NVD)
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-98043
Vulnerability Analysis
The BPF verifier statically validates every eBPF program before load to guarantee memory safety. The helper reg_not_null() examines a register's type to conclude whether the value is guaranteed non-NULL. The function fails to consider the register's variable offset. If a pointer register has been subjected to arithmetic that produces an unbounded offset, the runtime address can wrap or resolve to zero while the verifier still treats it as non-NULL.
An attacker constructs a program that performs pointer subtraction between a known-non-NULL map value pointer and a pointer that is NULL at runtime. The resulting scalar carries an unbounded range that check_reg_sane_offset_ptr() accepts. Adding this scalar back to the original pointer yields zero at runtime, yet the verifier still classifies the result as a valid map value. A subsequent comparison and dereference triggers the fault in kernel context.
Root Cause
The root cause is incomplete reasoning in reg_not_null(). The verifier conflates "base pointer is non-NULL" with "effective pointer is non-NULL" for pointer types that allow arithmetic. The variable offset is ignored during the NULL-inference check, allowing an attacker-controlled offset to collapse the pointer to zero without the verifier noticing.
Attack Vector
Exploitation requires the ability to load a BPF program, typically requiring CAP_BPF or CAP_SYS_ADMIN in the initial user namespace, or an unprivileged BPF context where enabled. The attacker crafts a verifier-accepted program that performs pointer subtraction between two bpf_map_lookup_elem() results, shifts the scalar to clear sign information, and reuses it as an offset. At runtime, the resulting dereference faults the kernel. See the upstream fix commits 67b529f521a6 and cb6642048739 for the corrected logic.
Detection Methods for CVE-2026-98043
Indicators of Compromise
- Unexpected kernel oops or panic log entries referencing BPF program execution and NULL pointer dereference in the fault address.
- Processes with BPF capabilities loading unusual or obfuscated eBPF bytecode outside normal operational baselines.
- Repeated bpf() syscall failures followed by a successful program load from the same process, suggesting iterative verifier bypass attempts.
Detection Strategies
- Enable kernel audit rules for the bpf() syscall to capture program loads, including the loading UID, program type, and map file descriptors.
- Monitor dmesg and /var/log/kern.log for BUG: kernel NULL pointer dereference traces whose call stack includes BPF program dispatch functions.
- Collect and inspect loaded BPF programs with bpftool prog show and bpftool prog dump xlated to review arithmetic on pointer registers.
Monitoring Recommendations
- Forward kernel ring buffer events and audit logs to a centralized logging platform to correlate crashes with the preceding BPF load.
- Baseline the set of processes that legitimately load BPF programs and alert on new or non-service loaders.
- Track kernel version inventory across hosts to prioritize patch deployment on systems still running vulnerable builds.
How to Mitigate CVE-2026-98043
Immediate Actions Required
- Apply the upstream kernel patches 67b529f521a6 and cb6642048739, or update to a distribution kernel package that incorporates them.
- Reboot affected hosts after installing the updated kernel to activate the fixed verifier logic.
- Restrict BPF program loading to trusted administrators by setting kernel.unprivileged_bpf_disabled = 1 where unprivileged BPF is not required.
Patch Information
The fix modifies reg_not_null() to require that a register's variable offset fall within +-BPF_MAX_VAR_OFF before concluding the pointer is non-NULL. Pointers with unbounded offsets are no longer inferred as non-NULL, eliminating the NULL dereference path. Refer to the upstream commit 67b529f521a6 and the stable backport cb6642048739 for the complete change.
Workarounds
- Disable unprivileged BPF by writing 1 to /proc/sys/kernel/unprivileged_bpf_disabled and persisting the setting via sysctl.
- Remove CAP_BPF and CAP_SYS_ADMIN from container and workload profiles that do not require eBPF loading.
- Enforce Linux Security Module policies (SELinux, AppArmor) that deny the bpf() syscall to unprivileged service accounts.
# Configuration example: disable unprivileged BPF persistently
echo 'kernel.unprivileged_bpf_disabled = 1' | sudo tee /etc/sysctl.d/90-bpf-hardening.conf
sudo sysctl --system
# Verify current setting
sysctl kernel.unprivileged_bpf_disabled
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

