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

CVE-2026-100074: Linux Kernel BPF Refcount Field Vulnerability

CVE-2026-100074 is a field marking issue in the Linux kernel BPF subsystem where bpf_refcount was not properly marked as unique. This post explains the technical details, affected versions, and mitigation steps.

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

CVE-2026-100074 is a Linux kernel vulnerability in the Berkeley Packet Filter (BPF) subsystem. The BPF_REFCOUNT field was not marked as a unique field in BPF data structures, despite the kernel's design requiring uniqueness. Kernel maintainers resolved the issue by correctly flagging the field.

The National Vulnerability Database has not yet assigned a CVSS score or CWE identifier. The flaw was addressed through three stable-tree commits referenced in the kernel's Git history.

Critical Impact

Incorrect uniqueness enforcement on BPF_REFCOUNT fields can lead to inconsistent reference counting semantics in BPF programs that use refcounted kernel objects.

Affected Products

  • Linux kernel (BPF subsystem)
  • Distributions shipping affected stable kernel branches
  • Systems running BPF programs that use bpf_refcount fields

Discovery Timeline

  • 2026-09-25 - CVE-2026-100074 published to the National Vulnerability Database
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-100074

Vulnerability Analysis

The Linux kernel's BPF subsystem supports refcounted objects through the bpf_refcount field type. The kernel's verifier and runtime enforce uniqueness constraints on specific field categories to maintain safety invariants for BPF programs that allocate, share, and release kernel objects.

According to the upstream commit messages, BPF_REFCOUNT was not registered as a unique field even though the subsystem's semantics require it to be. This oversight affects how the verifier reasons about BPF type descriptors containing refcounted members. The fix explicitly marks the field type as unique so the verifier applies the correct constraint during program load.

The advisory does not describe a specific exploitation primitive. The impact is limited to BPF program authors and the kernel paths that process BPF Type Format (BTF) definitions referencing bpf_refcount.

Root Cause

The root cause is a missing attribute in the BPF field metadata table. Field categories such as spin locks and timers are tagged as unique so the verifier rejects BTF records that declare more than one instance per structure. BPF_REFCOUNT lacked that tag, so the verifier did not reject structures that violated the intended invariant.

Attack Vector

The NVD entry lists the attack vector as unknown. Loading BPF programs typically requires the CAP_BPF or CAP_SYS_ADMIN capability. On systems that expose BPF loading to unprivileged workloads through container runtimes or orchestration layers, a crafted BPF program referencing multiple bpf_refcount fields could bypass the intended uniqueness check prior to patching.

No public proof-of-concept exploit is listed. The EPSS score at publication is 0.155%, indicating a low predicted probability of exploitation. See the upstream commit 61e6553, commit 641f814, and commit e42cede for the authoritative patch details.

Detection Methods for CVE-2026-100074

Indicators of Compromise

  • No public indicators of compromise have been published for this vulnerability.
  • Kernel version strings predating the fix commits on affected stable branches indicate exposure.

Detection Strategies

  • Inventory running kernels and compare build versions against the patched stable release notes referenced in the kernel Git tree.
  • Audit custom and third-party BPF programs for use of bpf_refcount fields in BTF structure definitions.
  • Review BPF program loader logs for unusual activity from unprivileged users or container workloads with BPF capabilities granted.

Monitoring Recommendations

  • Monitor bpf() syscall usage and BPF_PROG_LOAD events through audit subsystem rules.
  • Alert on processes acquiring CAP_BPF or CAP_SYS_ADMIN outside of expected administrative workflows.
  • Track kernel package update status across your Linux estate to confirm patch deployment.

How to Mitigate CVE-2026-100074

Immediate Actions Required

  • Apply the vendor-provided kernel update that incorporates the three upstream fix commits.
  • Reboot systems after kernel package installation to activate the patched image.
  • Restrict BPF program loading to trusted administrators by limiting CAP_BPF and CAP_SYS_ADMIN assignments.

Patch Information

The fix is available in the Linux stable tree through commits 61e6553, 641f814, and e42cede. Consult your Linux distribution's security advisory tracker for the specific package build that includes the backport for your kernel branch.

Workarounds

  • Set kernel.unprivileged_bpf_disabled = 1 via sysctl to prevent unprivileged BPF program loading on systems where it is enabled.
  • Remove CAP_BPF from container security profiles that do not require it.
  • Enforce Linux Security Module policies that restrict which processes can invoke the bpf() syscall.
bash
# Configuration example
# Disable unprivileged BPF program loading at runtime
sysctl -w kernel.unprivileged_bpf_disabled=1

# Persist the setting across reboots
echo 'kernel.unprivileged_bpf_disabled=1' | tee /etc/sysctl.d/90-bpf-hardening.conf

# Verify the running kernel version against patched builds
uname -r

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.