Linux Kernel BPF Disassembler Flaw Triggers Out-of-Bounds Access
Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Aug 21, 2026

A flaw in the Linux kernel's BPF disassembler was reported after syzbot and UBSAN identified an out-of-bounds array access in print_bpf_insn(), the function used to format BPF instructions for verifier diagnostics. The bug is triggered when a malformed signed-load instruction using BPF_MEMSX | BPF_DW reaches diagnostic disassembly code before opcode validation fully rejects it, causing the kernel to index past the end of the three-entry bpf_ldsx_string[] table. No evidence has been presented that the issue enables privilege escalation, information disclosure, remote exploitation, or abuse by unprivileged users.
A two-patch fix was proposed and then applied to bpf/bpf.git, changing the disassembler to reject invalid signed double-word load encodings and fall back to the existing BUG_ldx diagnostic path instead of performing the unsafe table lookup. The patch series, authored by Kumar Kartikeya Dwivedi, reviewed by Jiayuan Chen, and merged by Daniel Borkmann, also adds a self-test to catch regressions. The issue appears to exist in current kernel source, but affected released versions and downstream distributions have not yet been identified.


