bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-0799

8.7high

libpcap1.10.6 · 1.10.5in 4 of 4 releases

Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.

Reach libpcap · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

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.

Published 2026-09-05NVD

CVSS 3.1Local · low privileges · no user interaction

How it is reached

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None

What it costs

Confidentiality
Low
Integrity
High
Availability
High
Scope
Changed

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H

References 1
Review Av26.10.0x86_64Not exposed✓ accepted by a member, 2026-11-20 · settles 8 of 8

Fable 5.2 · medium confidence · 2026-11-19

The unfixed BPF interpreter is compiled into libpcap 1.10.6 in this image: pcapint_filter_with_aux_data() indexes mem[pc->k] with no bounds check, and the build applies no patches. However, nothing in the product can hand it an unvalidated filter program, so the verdict is NOT_EXPOSED.

Every pcap_setfilter() path in this build goes through pcapint_install_bpf_program(), which rejects any program with a scratch index of 16 or more. Only the exported bpf_filter() and pcap_offline_filter() entry points skip that validation, and no program built for the image calls them: tcpdump and nmap compile text expressions and use pcap_setfilter(), and pppd is built without filter support.

The management interfaces only pass text filter expressions (CLI tcpdump ... expression) or fixed nmap scan profiles (web UI), never raw BPF instructions. Reaching the flaw would need a shell on the device plus a custom program or script that calls bpf_filter() or pcap_offline_filter() in libpcap.so with a hand-crafted instruction array. It is not reachable from a network interface.

Evidence 12
  1. The interpreter's `BPF_LD|BPF_MEM`, `BPF_LDX|BPF_MEM`, `BPF_ST` and `BPF_STX` cases read and write `mem[pc->k]` with no check against `BPF_MEMWORDS` (16, `pcap/bpf.h:285`); `mem` is a 16-entry stack array (line 97). This is the vulnerable code.

    output/build/libpcap-1.10.6/bpf_filter.c:219-233

  2. The file is empty (0 bytes): no patches are applied. `buildroot/package/libpcap/` holds only `Config.in`, `libpcap.hash` and `libpcap.mk`, and there is no `patches/libpcap` directory.

    output/build/libpcap-1.10.6/.applied_patches_list

  3. `BR2_PACKAGE_LIBPCAP=y`; it is pulled in by `BR2_PACKAGE_TCPDUMP=y` (line 3494) and `BR2_PACKAGE_NMAP=y` (line 3411), both set in `configs/x86_64_defconfig:87,96`.

    output/.config:2710

  4. `output/build/libpcap-1.10.6/bpf_filter.o` was built; `bpf_filter.c` is an unconditional source in `output/build/libpcap-1.10.6/Makefile:95`.

    output/objects.txt:14384

  5. `pcapint_install_bpf_program()` calls `pcapint_validate_filter()` and fails with "BPF program is not valid" before a program is stored in `p->fcode`.

    output/build/libpcap-1.10.6/optimize.c:2959-2970

  6. `pcapint_validate_filter()` rejects `BPF_MEM` loads and `BPF_ST`/`BPF_STX` with `k >= BPF_MEMWORDS`, so any program installed via `pcap_setfilter()` cannot carry an out-of-range index.

    output/build/libpcap-1.10.6/bpf_filter.c:435-449

  7. The Linux live-capture set-filter path calls `pcapint_install_bpf_program()`. Savefile, usbmon and netfilter handles use it directly as `setfilter_op` (`savefile.c:565`, `pcap-usb-linux.c:483`, `pcap-netfilter-linux.c:596`).

    output/build/libpcap-1.10.6/pcap-linux.c:4622

  8. `pcap_offline_filter()` and `bpf_filter()` pass a caller-supplied instruction array straight to the interpreter with no validation. These are the only unvalidated entry points.

    output/build/libpcap-1.10.6/pcap.c:4346-4355 and bpf_filter.c:534-538

  9. `tcpdump` and `nmap` only use `pcap_compile()` on a text expression followed by `pcap_setfilter()`. A search of `output/build` found no caller of `pcap_offline_filter()` or libpcap's `bpf_filter()` outside `pppd/demand.c`.

    output/build/tcpdump-4.99.5/tcpdump.c:2276,2381 and output/build/nmap-7.95/libnetutil/netutil.cc:4087-4089

  10. `PPP_WITH_FILTER` is undefined (`# BR2_PACKAGE_PPPD_FILTER is not set`, `output/.config:3444`), so the `bpf_filter()` calls in `pppd/demand.c:337-339` are not compiled and `pppd` does not use `libpcap`.

    output/build/pppd-2.5.2/pppd/config.h:170

  11. `ENABLE_REMOTE` is undefined and `BUILD_RPCAPD` is empty (`config.log:2275`), so there is no `rpcapd` or remote-capture path that accepts filter programs from the network.

    output/build/libpcap-1.10.6/config.h:14

  12. The only management-interface users of `libpcap` are the CLI `tcpdump` command, which passes a text filter expression, and the web UI `nmap` diagnostic, which uses fixed scan profiles. Neither accepts raw BPF instructions. No finit service in `board/common/rootfs/etc/finit.d/` runs a `libpcap` consumer.

    src/klish-plugin-infix/xml/infix.xml:1178-1197 and src/webui/internal/handlers/diagnostics.go:212-235

Version and patches

The tree has libpcap 1.10.6 (output/build/libpcap-1.10.6/VERSION, buildroot/package/libpcap/libpcap.mk:7), which is the version NVD names. Its CHANGES file lists CVE-2025-11961 but not CVE-2026-0799, and the interpreter has no index check. No patches are applied (.applied_patches_list is empty). I could not read the upstream fix commit 48e8960a offline, so the fixed release is not confirmed from the tree.

Recommendation

Document as not exposed and do not prioritise an emergency backport.

Pick up the fix with the next routine libpcap bump in Buildroot, or backport upstream commit 48e8960a7108e9e828f9d7bdc7e97bdab841aec7 as a patch under patches/libpcap/ if a release is cut before then.

Re-triage if BR2_PACKAGE_PPPD_FILTER is enabled or a package that calls bpf_filter() or pcap_offline_filter() is added.

Open questions
  • –The upstream fix commit and advisory could not be read offline. The affected range, the fixed version and the exact "uncommon use cases" are inferred from the CVE text and the source in the tree.
  • –libpcap.so was not found under output/target in this snapshot (find output/target -name "libpcap*" returned nothing), although tcpdump links with -lpcap (output/build/tcpdump-4.99.5/Makefile:58) and the build uses --disable-static --enable-shared. I assumed the shared library ships in the image.
  • –nmap carries a bundled libpcap copy in output/build/nmap-7.95/libpcap/. I did not confirm from its config.log that the system library is used. Either way, nmap only uses the validated pcap_setfilter() path.
  • –The consumer search covered C, C++, Go and Python sources in output/build. A third-party binary or script that loads libpcap dynamically (for example via ctypes) would not have been found.
  • –One combined cd ... && grep command was refused by the sandbox. I ran the same search with paths from the tree root instead, so nothing was left unchecked.

Members of Kernel Kit decide. Sign in if you are one.