Skip to content

libpcap: backport seven CVE fixes from 1.10.7

Jaipaul Cheernam openembedded-core 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/27 patches 0 repliesNew
  2. v3 posting 1/23 of 7 patches 0 repliesSuperseded
  3. v27 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v17 patches0 repliesSuperseded

Changes in v3 from the cover letter

- CVE-2026-31912: apply the dropped pcap-haiku.c change to pcap-haiku.cpp (1.10.4's Haiku module predates the C++ -> C rewrite and still calls the filter) and restore the pcap_offline_filter.3pcap man-page hunk that was dropped by mistake.
- Trimmed the backport notes to the adaptations actually made.

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7libpcap: Fix CVE-2026-0799meta/recipes-connectivity/libpcap/libpcap/01-CVE-2026-0799.patch meta/recipes-connectivity/libpcap/libpcap_1.10.4.bb+68 -00 replies
2/7libpcap: Fix CVE-2026-31912meta/recipes-connectivity/libpcap/libpcap/02-CVE-2026-31912.patch meta/recipes-connectivity/libpcap/libpcap_1.10.4.bb+592 -00 replies
3/7libpcap: Fix CVE-2026-31911meta/recipes-connectivity/libpcap/libpcap/03-CVE-2026-31911.patch meta/recipes-connectivity/libpcap/libpcap_1.10.4.bb+48 -00 replies
4/7libpcap: Fix CVE-2026-6244meta/recipes-connectivity/libpcap/libpcap/04-CVE-2026-6244.patch meta/recipes-connectivity/libpcap/libpcap_1.10.4.bb+50 -00 replies
5/7libpcap: Fix CVE-2026-6554meta/recipes-connectivity/libpcap/libpcap/05-CVE-2026-6554.patch meta/recipes-connectivity/libpcap/libpcap_1.10.4.bb+93 -00 replies
6/7libpcap: Fix CVE-2026-18313meta/recipes-connectivity/libpcap/libpcap/06-CVE-2026-18313.patch meta/recipes-connectivity/libpcap/libpcap_1.10.4.bb+85 -00 replies
7/7libpcap: Fix CVE-2026-18238meta/recipes-connectivity/libpcap/libpcap/07-CVE-2026-18238.patch meta/recipes-connectivity/libpcap/libpcap_1.10.4.bb+223 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [scarthgap][PATCH v3 0/7] libpcap: backport seven CVE fixes from 1.10.7

This series backports the seven security fixes that were released in libpcap 1.10.7 to the 1.10.4 recipe.

The same set of fixes has already been addressed on master by upgrading libpcap to 1.10.7.

CVEs addressed (see the upstream 1.10.7 CHANGES):

CVE-2026-0799 - Access M[] safely in the BPF interpreter. CVE-2026-31912 - Mind the program bounds in pcap_offline_filter(). CVE-2026-31911 - Fail opcodes safely in the BPF interpreter. CVE-2026-6244 - Avoid division by zero via pcap_offline_filter(). CVE-2026-6554 - Limit "ja L" looping in pcap_offline_filter(). CVE-2026-18313 - Fix a memory leak in rpcapd. CVE-2026-18238 - Fix RPCAP_MSG_PACKET validation.

Each CVE is a separate file:// patch, ordered so they apply on top of each other. Where a fix touches the BPF filter interpreter it is adapted to the 1.10.4 pcap_filter*() names (renamed to pcapint_*() after 1.10.4). For CVE-2026-31912 the upstream pcap-haiku.c hunk is applied to pcap-haiku.cpp instead, as the Haiku module was rewritten from C++ to C after 1.10.4.

Verified by applying all seven patches in order onto a pristine libpcap 1.10.4 tree and building successfully, including with --enable-remote (rpcapd).

Changes in v3:
- CVE-2026-31912: apply the dropped pcap-haiku.c change to pcap-haiku.cpp (1.10.4's Haiku module predates the C++ -> C rewrite and still calls the filter) and restore the pcap_offline_filter.3pcap man-page hunk that was dropped by mistake.
- Trimmed the backport notes to the adaptations actually made.

Changes in v2:
- Dropped the downstream CHANGES/changelog additions.

Jaipaul Cheernam (7):
libpcap: Fix CVE-2026-0799
libpcap: Fix CVE-2026-31912
libpcap: Fix CVE-2026-31911
libpcap: Fix CVE-2026-6244
libpcap: Fix CVE-2026-6554
libpcap: Fix CVE-2026-18313
libpcap: Fix CVE-2026-18238

 .../libpcap/libpcap/01-CVE-2026-0799.patch    |  67 ++
 .../libpcap/libpcap/02-CVE-2026-31912.patch   | 591 ++++++++++++++++++
 .../libpcap/libpcap/03-CVE-2026-31911.patch   |  47 ++
 .../libpcap/libpcap/04-CVE-2026-6244.patch    |  49 ++
 .../libpcap/libpcap/05-CVE-2026-6554.patch    |  92 +++
 .../libpcap/libpcap/06-CVE-2026-18313.patch   |  84 +++
 .../libpcap/libpcap/07-CVE-2026-18238.patch   | 222 +++++++
 .../libpcap/libpcap_1.10.4.bb                 |   7 +
 8 files changed, 1159 insertions(+)
 create mode 100644 meta/recipes-connectivity/libpcap/libpcap/01-CVE-2026-0799.patch
 create mode 100644 meta/recipes-connectivity/libpcap/libpcap/02-CVE-2026-31912.patch
 create mode 100644 meta/recipes-connectivity/libpcap/libpcap/03-CVE-2026-31911.patch
 create mode 100644 meta/recipes-connectivity/libpcap/libpcap/04-CVE-2026-6244.patch
 create mode 100644 meta/recipes-connectivity/libpcap/libpcap/05-CVE-2026-6554.patch
 create mode 100644 meta/recipes-connectivity/libpcap/libpcap/06-CVE-2026-18313.patch
 create mode 100644 meta/recipes-connectivity/libpcap/libpcap/07-CVE-2026-18238.patch