Page MenuHomeFreeBSD

tcpdump: cope with incorrect packet lengths
ClosedPublic

Authored by kp on Apr 1 2024, 2:08 PM.
Tags
None
Referenced Files
F84298407: D44580.id136405.diff
Tue, May 21, 11:55 PM
F84296492: D44580.id.diff
Tue, May 21, 11:18 PM
Unknown Object (File)
Sat, May 18, 2:21 AM
Unknown Object (File)
Sat, May 18, 2:21 AM
Unknown Object (File)
Thu, May 16, 11:07 AM
Unknown Object (File)
Thu, May 16, 10:55 AM
Unknown Object (File)
Wed, May 15, 8:04 PM
Unknown Object (File)
Thu, May 9, 4:03 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