Skip to main content

libpcap rpcapd CVE-2026-18313

| EUVDEUVD-2026-72020 MEDIUM
Memory Leak (CWE-401)
2026-09-05 Tcpdump GHSA-f2rh-ff9r-fh4j
4.3
CVSS 3.1 · Vendor: Tcpdump
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Establish authenticated rpcap client session
  2. Delivery
    Send rapid RPCAP_MSG_UPDATEFILTER_REQ messages
  3. Exploit
    Each message allocates 65536-byte bf_insns buffer
  4. Execution
    Buffer never freed on any code path
  5. Persist
    Heap exhaustion accumulates
  6. Impact
    rpcapd crashes or OOM-killed

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

rpcapd must be compiled, running, and reachable on the network - it is an optional daemon not started by default. The attacker must possess valid rpcap client credentials sufficient to establish a session (CVSS PR:L); unauthenticated network access alone is insufficient to trigger the leak. Each RPCAP_MSG_UPDATEFILTER_REQ or RPCAP_MSG_STARTCAP_REQ message leaks up to 65536 bytes, so even a single legitimate session causes slow leakage; malicious acceleration requires only the ability to send messages rapidly within an authenticated session. Platforms running rpcapd in production (e.g., network sensors, SOC infrastructure) are at higher risk than developer workstations where rpcapd is rarely enabled.

Impact

The vendor-assigned CVSS 4.3 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L) is well-calibrated. PR:L reflects that an rpcap client session must be established - anonymous network probes cannot trigger the leak. Impact is limited to availability (A:L), as memory leaks gradually rather than causing an immediate crash, and no confidentiality or integrity impact exists. rpcapd is not a standard internet-facing service; it is typically deployed on controlled internal networks for forensic or monitoring purposes. The vulnerability exists even under legitimate use (normal clients trigger it), but malicious acceleration requires only the ability to send repeated filter messages. Not listed in CISA KEV and EPSS data is not provided; given the narrow deployment of rpcapd and the PR:L barrier, opportunistic mass exploitation is unlikely. Real-world risk is primarily insider or network-adjacent threat: an authorized but malicious rpcap user could exhaust daemon memory, disrupting remote capture sessions.

Exploit ScenarioDerived

An attacker with valid rpcap client credentials connects to an exposed rpcapd instance and rapidly sends RPCAP_MSG_UPDATEFILTER_REQ messages in a loop, each causing the server to allocate up to 65536 bytes of heap memory that is never freed. Over minutes to hours of sustained sending, the rpcapd process exhausts available system memory, causing the daemon to crash or the OS to kill it, disrupting all legitimate remote capture sessions on that host.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 05, 2026

Memory exhaustion in libpcap's rpcapd remote capture daemon allows an authenticated remote client to degrade or crash the service by triggering unreleased heap allocations. The daemon allocates up to 65536 bytes per RPCAP_MSG_UPDATEFILTER_REQ or RPCAP_MSG_STARTCAP_REQ message processed in daemon_unpackapplyfilter(), but the bf_insns BPF filter instruction array is never freed on any code path - success or error - under the pre-patch logic. A malicious rpcap client can accelerate memory exhaustion by rapidly submitting filter-update or capture-start requests. No active exploitation is confirmed and no public exploit code exists at time of analysis.

RemediationAI

Apply the upstream fix available at https://github.com/the-tcpdump-group/libpcap/commit/f9775af1a0ec76db60c7213241e6b48f1be10ac7, which restructures daemon_unpackapplyfilter() to release bf_prog.bf_insns on all exit paths. A specific patched release version is not yet independently confirmed; monitor the Tcpdump Group release page for a tagged version incorporating this commit. If rpcapd cannot be patched immediately, restrict access to the rpcap port (default TCP 2002) using firewall rules to allow only trusted client IP addresses, reducing the exposed attack surface. If remote packet capture is not required, disable or do not start rpcapd entirely, which eliminates the attack surface with no functional impact on local libpcap usage.

Affected VersionsENISA

libpcap 1.9.x
libpcap 1.10.x <1.10.7

Affected Packages

euvd libpcap fix: 1.10.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libpcap (CPE: cpe:2.3:a:the_tcpdump_group:libpcap:*:*:*:*:*:*:*:*) is the foundational packet capture library underlying tcpdump and most network analysis tooling. rpcapd is its optional remote capture daemon, implementing the RPCAP protocol to allow clients to capture packets on remote hosts. When a client submits a RPCAP_MSG_UPDATEFILTER_REQ or RPCAP_MSG_STARTCAP_REQ message, daemon_unpackapplyfilter() in rpcapd/daemon.c allocates a bf_prog.bf_insns array (up to 65536 bytes per message) to hold BPF filter instructions. The pre-patch code contained multiple direct return statements on both error paths (status -1 and -2) and the success path (return 0), none of which freed bf_insns. The fix restructures all exits through a single goto free_and_return_status label that calls free(bf_prog.bf_insns) before returning, correctly applying CWE-401 (Missing Release of Memory after Effective Lifetime) remediation.

Know when Libpcap gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Tcpdump) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 4.3 MEDIUM

Network-reachable but requires an authenticated rpcap session (PR:L); impact is availability-only memory exhaustion with no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Red Hat 4.3 MEDIUM

Primary rating from Vendor (Tcpdump).

CVSS VectorVendor: Tcpdump

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

DescriptionCVE.org

rpcapd can allocate up to 65536 bytes per each RPCAP_MSG_UPDATEFILTER_REQ or RPCAP_MSG_STARTCAP_REQ message received from the client, but it never frees the memory, so it leaks memory even under normal use. A malicious client can cause the server to leak memory substantially faster.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Low
rpcapd is an optional daemon rarely deployed in production
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2026-0799 HIGH
8.7 Sep 05

Unvalidated BPF scratch-register array index in libpcap's user-space BPF interpreter allows a local attacker with low pr

CVE-2026-6554 HIGH
7.5 Sep 05

Denial of service in libpcap before 1.10.7 allows an unauthenticated remote attacker to hang the offline BPF filter inte

CVE-2019-15163 HIGH
7.5 Oct 03

rpcapd/daemon.c in libpcap before 1.9.1 allows attackers to cause a denial of service (NULL pointer dereference and daem

CVE-2026-6244 MEDIUM
5.5 Sep 05

Division by zero in libpcap's BPF interpreter can crash any application using the library when processing a crafted filt

CVE-2026-31911 MEDIUM
5.5 Sep 05

Process termination via crafted BPF filter in libpcap allows a local attacker with low privileges to crash any applicati

CVE-2026-31912 MEDIUM
5.5 Sep 05

Out-of-bounds memory reads in libpcap's userland BPF interpreter allow a local attacker who can supply a crafted filter

CVE-2019-15165 MEDIUM
5.3 Oct 03

sf-pcapng.c in libpcap before 1.9.1 does not properly validate the PHB header length before allocating memory. Rated med

CVE-2019-15164 MEDIUM
5.3 Oct 03

rpcapd/daemon.c in libpcap before 1.9.1 allows SSRF because a URL may be provided as a capture source. Rated medium seve

CVE-2019-15162 MEDIUM
5.3 Oct 03

rpcapd/daemon.c in libpcap before 1.9.1 on non-Windows platforms provides details about why authentication failed, which

CVE-2019-15161 MEDIUM
5.3 Oct 03

rpcapd/daemon.c in libpcap before 1.9.1 mishandles certain length values because of reuse of a variable. Rated medium se

CVE-2026-18238 MEDIUM
5.0 Sep 05

Remote memory disclosure in libpcap's rpcap client allows a malicious or compromised rpcap server to cause a connected c

CVE-2024-8006 MEDIUM
4.4 Aug 31

Remote packet capture support is disabled by default in libpcap. Rated medium severity (CVSS 4.4), this vulnerability is

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise Micro 5.3 Affected
SUSE Linux Enterprise Micro 5.4 Affected
SUSE Linux Enterprise Micro 5.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy