Description
libpcap BPF interpreter detects neither reaching the end of the filter program buffer due to lack of a return instruction nor executing a jump instruction with an offset that translates to a pointer outside of the buffer. In particular uncommon use cases a crafted filter program can cause the interpreter to try reading the OS process memory in the 32GiB around the buffer on 64-bit architectures and in the entire address space on 32-bit architectures.
Published: 2026-09-05
Score: 5.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the BPF interpreter of libpcap, where a lack of a return instruction or an improperly checked jump offset allows execution of out‑of‑bounds reads. A crafted filter program can cause the interpreter to read memory beyond the 32GiB buffer in 64‑bit processes, or the entire address space in 32‑bit processes, potentially exposing sensitive data or triggering a crash. The weakness is a classic memory corruption flaw, classified as a buffer overread, and would likely lead to local data exposure or instability rather than immediate remote code execution.

Affected Systems

All installations of libpcap older than version 1.10.7 are affected. The Tcpdump Group’s libpcap library underpins numerous networking tools such as tcpdump, Wireshark, and related packet‑capture utilities. Any system that loads user‑supplied BPF filter programs via libpcap through these tools is at risk.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, and the EPSS score is not available. The vulnerability is not currently listed in CISA’s KEV catalog. The most probable attack vector involves an attacker supplying a specially crafted BPF filter program to a libpcap‑based application; if the application accepts untrusted filter code, the overflow can occur locally. Current public exploitation evidence is lacking, suggesting that while the weakness exists, it is not being widely exploited yet.

Generated by OpenCVE AI on September 5, 2026 at 20:51 UTC.

Remediation

Vendor Solution

Upgrade to libpcap 1.10.7 and migrate from bpf_filter() to pcap_offline_filter().


OpenCVE Recommended Actions

  • Upgrade libpcap to version 1.10.7 or later and migrate from bpf_filter() to pcap_offline_filter() in all affected applications.
  • Recompile or rebuild all installed networking utilities that rely on libpcap, such as tcpdump and Wireshark, against the updated library to ensure proper linkage and function usage.
  • Verify that any custom or third‑party BPF filter code is executed only by trusted users or processes, and consider disabling BPF compilation for untrusted inputs until the upgrade is complete.

Generated by OpenCVE AI on September 5, 2026 at 20:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 05 Sep 2026 19:00:00 +0000

Type Values Removed Values Added
Description libpcap BPF interpreter detects neither reaching the end of the filter program buffer due to lack of a return instruction nor executing a jump instruction with an offset that translates to a pointer outside of the buffer. In particular uncommon use cases a crafted filter program can cause the interpreter to try reading the OS process memory in the 32GiB around the buffer on 64-bit architectures and in the entire address space on 32-bit architectures.
Title OOBR in libpcap before 1.10.7
Weaknesses CWE-125
CWE-1285
CWE-823
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Tcpdump

Published:

Updated: 2026-09-05T18:49:41.619Z

Reserved: 2026-03-10T09:30:50.972Z

Link: CVE-2026-31912

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-05T19:16:55.823

Modified: 2026-09-05T19:16:55.823

Link: CVE-2026-31912

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-05T21:00:05Z

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-1285

    Improper Validation of Specified Index, Position, or Offset in Input

  • CWE-823

    Use of Out-of-range Pointer Offset