Summary
Jin Wei, Kunwei Qian, and Ping Chen discovered that libpcap did not
properly validate the format of MAC addresses passed to the
pcap_ether_aton() function, leading to an out-of-bounds read and write. An
attacker could possibly use this issue to cause applications using libpcap
to crash, resulting in a denial of service, or possibly execute arbitrary
code. This issue only affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS.
(CVE-2025-11961)
It was discovered that the libpcap remote capture (rpcap) client did not
properly validate packet messages received from the server. A malicious
server could possibly use this issue to obtain sensitive information or
cause applications using libpcap to crash, resulting in a denial of
service. (CVE-2026-18238)
It was discovered that the libpcap remote capture daemon (rpcapd) did not
free memory allocated for filter programs received from clients. A remote
attacker could possibly use this issue to cause rpcapd to consume excessive
memory, leading to a denial of service. (CVE-2026-18313)
It was discovered that the libpcap BPF interpreter incorrectly handled
filter programs that contained invalid instructions. An attacker could
possibly use this issue to cause applications using libpcap to crash,
resulting in a denial of service. (CVE-2026-31911)
It was discovered that the libpcap BPF interpreter did not properly check
the bounds of filter programs, leading to an out-of-bounds read. An
attacker could possibly use this issue to cause applications using libpcap
to crash, resulting in a denial of service, or obtain sensitive
information. (CVE-2026-31912)
It was discovered that the libpcap BPF interpreter did not check for
division by zero in certain filter program instructions. An attacker could
possibly use this issue to cause applications using libpcap to crash,
resulting in a denial of service. (CVE-2026-6244)
Kaixuan Li discovered that the libpcap BPF interpreter did not limit the
number of backward jumps in filter programs. A remote attacker could
possibly use this issue with specially crafted network packets to cause
applications using libpcap to stop responding, resulting in a denial of
service. (CVE-2026-6554)
Fixed packages 3
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · 22.04 LTS 22.04:LTS | libpcap | 1.10.1-4ubuntu1.22.04.3 |
| Ubuntu · 24.04 LTS 24.04:LTS | libpcap | 1.10.4-4.1ubuntu3.2 |
| Ubuntu · 26.04 LTS 26.04:LTS | libpcap | 1.10.6-1ubuntu1.2 |
Vulnerabilities 7
-
High 7.5
infinte loop in libpcap before 1.10.7
libpcap BPF interpreter treats the offset in the 'ja L' BPF instruction as a signed integer to implement looping via backward jumps, but it does not limit the number of loop iterations. A crafted filter program or the 'protochain' primitive used on a crafted …
-
Medium 5.5
abort() in libpcap before 1.10.7 on an invalid BPF opcode
libpcap BPF interpreter calls abort() if it encounters a BPF instruction that has an invalid opcode. In particular uncommon use cases a crafted filter program can terminate the OS process.
-
Medium 5.5
OOBR in libpcap before 1.10.7
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 cr…
-
Medium 5.5
division by zero in libpcap before 1.10.7
libpcap BPF interpreter for the 'div #k' and 'mod #k' ALU instructions does not check whether the immediate value is zero. In particular uncommon use cases a crafted filter program can cause a division by zero.
-
Medium 5.0
OOBR in rpcap client in libpcap before 1.10.7
The rpcap client code that processes a RPCAP_MSG_PACKET message received from the server incorrectly validates its headers. A malicious server can send a crafted message and cause the client to treat up to 20 bytes of the client process memory beyond the end …
-
Medium 4.3
rpcapd memory leak in libpcap before 1.10.7
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 memo…
-
Low 1.9
OOBR and OOBW in pcap_ether_aton() in libpcap
pcap_ether_aton() is an auxiliary function in libpcap, it takes a string argument and returns a fixed-size allocated buffer. The string argument must be a well-formed MAC-48 address in one of the supported formats, but this requirement has been poorly documen…
References
-
report
https://ubuntu.com/security/CVE-2025-11961
-
report
https://ubuntu.com/security/CVE-2026-6244
-
report
https://ubuntu.com/security/CVE-2026-6554
-
report
https://ubuntu.com/security/CVE-2026-18238
-
report
https://ubuntu.com/security/CVE-2026-18313
-
report
https://ubuntu.com/security/CVE-2026-31911
-
report
https://ubuntu.com/security/CVE-2026-31912