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)
Tue, Aug 11, 2:33 PM
Unknown Object (File)
Tue, Aug 11, 2:33 PM
Unknown Object (File)
Tue, Aug 11, 2:32 PM
Unknown Object (File)
Sun, Aug 9, 12:08 PM
Unknown Object (File)
Sun, Aug 9, 11:39 AM
Unknown Object (File)
Sun, Aug 9, 7:07 AM
Unknown Object (File)
Sat, Aug 8, 5:05 PM
Unknown Object (File)
Wed, Aug 5, 6:33 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 56858
Build 53746: arc lint + arc unit