Skip to content

Update libpcap 1.10.6#98

Merged
jtt merged 3 commits intomainfrom
update-libpcap
Mar 13, 2026
Merged

Update libpcap 1.10.6#98
jtt merged 3 commits intomainfrom
update-libpcap

Conversation

@oherrala
Copy link
Member

@oherrala oherrala commented Mar 11, 2026

Fixes CVE-2025-11961.

This PR also fixes heap buffer over read that happened when reading netmask from sockaddr_in struct in macOS. In macOS the sockaddr_in struct contains only as many bytes as required to store netmask. Empirical evidence shows sockaddr_in's sin_len is between 5 to 8 in this scenario.

This issue surfaced due to change in libpcap (the-tcpdump-group/libpcap@be85331) and testing the code with LLVM's AddressSanitizer.

@oherrala oherrala force-pushed the update-libpcap branch 3 times, most recently from f1bdcb2 to caa0eb1 Compare March 12, 2026 16:33
That's why we can't cast it into sockaddr_in. Here we read the proper
amount of bytes.
@oherrala oherrala force-pushed the update-libpcap branch 5 times, most recently from 2d33977 to b29ed9b Compare March 13, 2026 09:16
@oherrala oherrala marked this pull request as ready for review March 13, 2026 13:08
@oherrala oherrala requested a review from jtt March 13, 2026 13:09
We had almost same sockaddr reading code in luomu-getifaddr and
luomu-libpcap. Now both places use shared code from luomu-common. The
code is behind "libc" feature flag because it requires libc as external
dependency and we want to keep luomu-common as dependency free by
default.
@jtt jtt merged commit 6bb6356 into main Mar 13, 2026
23 checks passed
@jtt jtt deleted the update-libpcap branch March 13, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants