Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisorypatch-regression

Linux Kernel BPF Disassembler Flaw Triggers Out-of-Bounds Access

Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Aug 21, 2026

Linux Kernel BPF Disassembler Flaw Triggers Out-of-Bounds Access

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.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · Aug 16, 2026 – Aug 20, 2026
  1. Aug 20, 20263mo ago

    Daniel Borkmann applies fix and selftest to bpf/bpf.git

    The two-patch series was applied to bpf/bpf.git master by Daniel Borkmann, including the disassembler fix and a regression selftest. Patchwork-bot announced the applied commits as 37e5c4f4d285 for the fix and 175a58668e2d for the selftest.

    [PATCH bpf-next v1 0/2] Reject invalid LDSX instruction in disassembler
  2. Aug 20, 20263mo ago

    Patch series submitted to reject invalid LDSX disassembly

    Kumar Kartikeya Dwivedi submitted a two-patch bpf-next series to treat signed double-word loads as invalid in print_bpf_insn() and add a selftest for the malformed instruction. The fix prevents the disassembler from indexing past bpf_ldsx_string[] and instead falls back to the existing invalid-instruction diagnostic path.

    Linux Kernel BPF Disassembler Out-of-Bounds Access Advisory
  3. Aug 16, 20263mo ago

    syzbot reports BPF disassembler out-of-bounds bug

    syzbot reported an out-of-bounds array access in the Linux kernel function print_bpf_insn(), triggered by a malformed BPF_MEMSX | BPF_DW instruction reaching diagnostic disassembly code. The issue was reproduced with UBSAN, which detected an array index past the end of the signed-load mnemonic table.

    Linux Kernel BPF Disassembler Out-of-Bounds Access Advisory
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Linux Kernel
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.