ZeroHour

CVE-2026-0799

mass

Out-of-bounds Read/Write in libpcap BPF Interpreter via Malicious Filter Program

CVSS 3.1
8.7 high
EPSS
<1%p1
Published
()
Modified
AI analysis

libpcap's BPF interpreter fails to validate the index of scratch-memory (M) register load/store instructions, which is a 32-bit unsigned value that must not exceed 15; a crafted filter program with an out-of-range index triggers out-of-bounds memory access. On 64-bit architectures the interpreter can read and write process memory in a 16GiB window starting at the current stack frame, and on 32-bit architectures anywhere in the process address space. An attacker who can get an application using libpcap to execute a malicious filter program (a local, low-privilege vector per the CVSS 3.1 score of 8.7) can disclose process memory, corrupt memory, or crash the process, with the potential for further impact reflected in the high integrity and confidentiality ratings. Any system or application built against libpcap is affected, particularly software that accepts packet-filter programs or expressions from untrusted users; downstream consumers such as tcpdump-class tools and other capture applications link the library. No public proof-of-concept, CISA KEV listing, or exploitation activity is known, and EPSS estimates only a 0.1% probability of exploitation in the next 30 days.

What to do: Update libpcap to the patched release identified in the tcpdump.org security advisory for CVE-2026-0799 (specific version numbers are not provided in the available data), then restart or rebuild dependent applications such as tcpdump and other capture tools so they pick up the fixed library. Audit any service or application that loads BPF filter programs from untrusted users, since crafted programs are the trigger, and treat input of raw filter programs as untrusted until patched.

Affected
tcpdump.org (libpcap project) libpcap
Estimated exposure
masstens of millions of installed systems (libpcap ships by default in most Linux/BSD distributions and is a dependency of common capture tools), though only users… — libpcap is the de facto packet-capture library bundled with virtually all Linux/BSD distributions and linked by widely deployed tools, making the installed base far larger than 1M systems; this is an order-of-magnitude estimate, and the…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

In BPF instructions that load/store a value from/to a scratch memory register the register index is an unsigned 32-bit integer and must not exceed 15, but libpcap BPF interpreter does not validate the value. In particular uncommon use cases a crafted filter program can cause the interpreter to try reading and writing the OS process memory in the 16GiB starting at the current stack frame on 64-bit architectures and in the entire address space on 32-bit architectures.

Weakness
CWE-125, CWE-129, CWE-787
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H

In the news

No ingested article mentions this CVE yet.