Skip to main content
Vulnerability Database/CVE-2026-93270

CVE-2026-93270: Linux Kernel Use-After-Free Vulnerability

CVE-2026-93270 is a use-after-free vulnerability in the Linux kernel BPF interpreter that causes page faults when handling PERCPU instructions. This article covers technical details, impact assessment, and mitigation strategies.

Published:

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-93270 Overview

CVE-2026-93270 is a Linux kernel vulnerability in the Berkeley Packet Filter (BPF) subsystem. The flaw affects the BPF_MOV64_PERCPU_REG instruction handling when the BPF interpreter is used instead of the Just-In-Time (JIT) compiler. The interpreter ignores the off field at the ALU64_MOV_X label, which identifies the instruction as a per-CPU register move. When the interpreter later dereferences the resulting register, the kernel triggers an unhandled page fault. The upstream maintainers resolved the issue by disallowing interpreter fallback for programs containing BPF_ADDR_PERCPU instructions.

Critical Impact

Loading a BPF program containing per-CPU register instructions on a kernel using the BPF interpreter causes an unhandled page fault and kernel oops, resulting in denial of service.

Affected Products

  • Linux kernel versions containing the BPF_MOV64_PERCPU_REG instruction handling in the BPF interpreter path
  • Systems running kernels compiled without the eBPF JIT compiler enabled
  • Stable kernel branches prior to the fix commits 57cf929a33cb and 7a0855e73757

Discovery Timeline

  • 2026-09-24 - CVE-2026-93270 published to the National Vulnerability Database
  • 2026-09-24 - Last updated in NVD database

Technical Details for CVE-2026-93270

Vulnerability Analysis

The BPF subsystem supports two execution modes for loaded programs: a JIT compiler that emits native machine code, and an interpreter that evaluates instructions in software. The BPF_MOV64_PERCPU_REG instruction performs the operation dst_reg = src_reg + <percpu_base_off>, which requires the JIT to emit architecture-specific native code to compute the per-CPU base offset.

The interpreter at the ALU64_MOV_X label handles standard 64-bit register moves but does not inspect the off field. The off field distinguishes a regular move from a BPF_MOV64_PERCPU_REG instruction. Consequently, the interpreter performs a plain register copy without applying the per-CPU base offset.

Subsequent memory accesses using the resulting register target an invalid kernel address. The kernel log records entries such as BUG: unable to handle page fault for address: ffffffffacaaf034 followed by an Oops and a stack trace.

Root Cause

The root cause is incomplete opcode handling in the BPF interpreter. The interpreter does not recognize BPF_ADDR_PERCPU semantics encoded through the off field at the shared ALU64_MOV_X dispatch label. The fix sets jit_required to true in __bpf_prog_select_runtime() within core.c when a program contains any BPF_ADDR_PERCPU instruction, forcing JIT compilation and preventing interpreter fallback. The patch also renames the helper bpf_map_supports_cpu_flags() to bpf_map_is_percpu_map() for clarity.

Attack Vector

Exploitation requires the ability to load a BPF program containing per-CPU register instructions on a kernel using the BPF interpreter. This typically requires the CAP_BPF or CAP_SYS_ADMIN capability. Unprivileged BPF, where available, broadens the attack surface. The outcome is a kernel oops producing a denial-of-service condition. Technical details and the upstream fix are available in the Linux Kernel Commit Overview and the follow-up stable commit.

Detection Methods for CVE-2026-93270

Indicators of Compromise

  • Kernel log entries containing BUG: unable to handle page fault for address: originating from BPF interpreter execution paths
  • Oops entries with stack frames referencing __bpf_prog_run, ___bpf_prog_run, or ALU64_MOV_X dispatch
  • Unexpected kernel panics or crashes immediately following BPF program load syscalls (bpf(BPF_PROG_LOAD, ...))

Detection Strategies

  • Monitor /var/log/kern.log, dmesg, and journalctl -k for BPF-related page fault signatures
  • Audit bpf() syscall usage with tooling such as auditd to correlate program loads with subsequent kernel faults
  • Inspect kernel configuration for CONFIG_BPF_JIT_ALWAYS_ON to identify systems vulnerable through interpreter fallback

Monitoring Recommendations

  • Collect kernel logs centrally and alert on Oops, BUG, and page fault events referencing BPF symbols
  • Track processes invoking the bpf() syscall and their capability sets using eBPF-based observability or auditd rules
  • Review which users and containers hold CAP_BPF or CAP_SYS_ADMIN and record BPF program load events for forensic correlation

How to Mitigate CVE-2026-93270

Immediate Actions Required

  • Apply the upstream kernel patches referenced in commits 57cf929a33cb and 7a0855e73757 from the stable Linux tree
  • Enable the BPF JIT compiler by setting net.core.bpf_jit_enable=1 and, where supported, CONFIG_BPF_JIT_ALWAYS_ON=y to prevent interpreter fallback
  • Restrict BPF program loading to trusted administrators by auditing holders of CAP_BPF and CAP_SYS_ADMIN

Patch Information

The fix sets jit_required = true inside __bpf_prog_select_runtime() in kernel/bpf/core.c whenever a program contains a BPF_ADDR_PERCPU instruction. This forces JIT compilation and prevents the interpreter from executing the affected opcode. Distribution-provided kernels incorporating the referenced stable commits remediate the issue. Rebuild or update to a kernel version that includes both commits.

Workarounds

  • Disable unprivileged BPF by setting kernel.unprivileged_bpf_disabled=1 via sysctl to reduce exposure
  • Enable CONFIG_BPF_JIT_ALWAYS_ON at build time on architectures that support JIT to eliminate interpreter execution
  • Remove or restrict CAP_BPF from container workloads and service accounts that do not require BPF program loading
bash
# Configuration example
sysctl -w net.core.bpf_jit_enable=1
sysctl -w kernel.unprivileged_bpf_disabled=1
echo 'net.core.bpf_jit_enable=1' >> /etc/sysctl.d/99-bpf-hardening.conf
echo 'kernel.unprivileged_bpf_disabled=1' >> /etc/sysctl.d/99-bpf-hardening.conf

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.