high · CVSS v3 7.1

CVE-2026-98626

CVE-2026-98626 is a high‑severity flaw in the Linux kernel’s BPF CO‑RE relocation handling that allows malformed metadata to poison critical

Overview

CVE-2026-98626 is a high‑severity flaw in the Linux kernel’s BPF CO‑RE relocation handling that allows malformed metadata to poison critical instructions before validation. This can lead to unintended control‑flow changes or data corruption when BPF programs are loaded. The issue was fixed by deferring poisoning until after instruction validation and extending support to ldimm64 halves.

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Restrict CO-RE poisoning to relocatable instructions CO-RE relocation records can name any instruction offset. When a relocation cannot be resolved, bpf_core_patch_insn() currently poisons its target before checking whether that instruction is a valid relocation target. Malformed metadata can therefore replace jumps, calls, exits, register-source arithmetic, or non-immediate loads instead of failing at the relocation step. Handle poisoning only after the instruction has passed the same class and operand-form checks used for a resolved relocation. Route invalid forms through the existing diagnostic and return a hard error. Keep poisoning supported instructions, including both halves of a plain ldimm64, so an unresolved relocation in dead code remains valid. Extend bpf_core_poison_insn() to poison both halves of ldimm64, and return its status directly from each validated instruction case. This avoids routing the success path through a common label and leaves the helper free to report errors. The shared relocation code applies this restriction to both libbpf and in-kernel CO-RE.

Impact

The vulnerability compromises the integrity of BPF programs, potentially allowing attackers to alter jumps, calls, exits, or arithmetic operations. This undermines the confidentiality, integrity, and availability of systems relying on BPF for networking, tracing, or security filtering. Defenders should consider any host running recent kernel versions that use BPF or libbpf as potentially impacted.

Remediation

Apply the latest kernel patch that defers instruction poisoning until after validation, or upgrade to a kernel version that includes the CVE-2026-98626 fix. For systems using libbpf, update to the patched libbpf release. Verify that BPF programs are compiled with the latest compiler flags and that no custom relocation metadata is injected.

Risk context

The CVSS v3 score of 7.1 indicates a high risk, and the absence of EPSS data suggests a moderate but non‑negligible likelihood of exploitation. Defenders should prioritize patching within the next maintenance window.

Affected products

  • Linux kernel
  • libbpf

Scores

Severity
high
CVSS v2
2.1
CVSS v3
7.1
CVSS v4
—
EPSS
—

BPF CO-RE relocation kernel patch

← All CVEs