Page MenuHomeFreeBSD

tcpdump: cope with incorrect packet lengths
ClosedPublic

Authored by kp on Apr 1 2024, 2:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 6, 2:22 PM
Unknown Object (File)
Mon, Dec 30, 6:21 PM
Unknown Object (File)
Sun, Dec 29, 9:11 AM
Unknown Object (File)
Dec 5 2024, 1:41 PM
Unknown Object (File)
Oct 29 2024, 8:15 AM
Unknown Object (File)
Oct 29 2024, 8:11 AM
Unknown Object (File)
Oct 16 2024, 8:51 PM
Unknown Object (File)
Sep 10 2024, 11:17 AM
Subscribers

Details

Summary

It's possible for the capture buffer to be smaller than indicated by the
header length. However, pfsync_print() only took the header length into
account. As a result we could read outside of the buffer.

Check that we have at least the expected amount of data before we start
parsing.

PR: 278034
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable