Page MenuHomeFreeBSD

pf: Fix IP checksum on reassembly
ClosedPublic

Authored by kp on Apr 28 2021, 12:58 PM.
Tags
None
Referenced Files
F153182186: D30026.id.diff
Sun, Apr 19, 4:03 PM
Unknown Object (File)
Sat, Apr 11, 4:43 PM
Unknown Object (File)
Thu, Apr 9, 11:32 PM
Unknown Object (File)
Tue, Apr 7, 3:28 AM
Unknown Object (File)
Wed, Apr 1, 7:59 PM
Unknown Object (File)
Wed, Apr 1, 4:27 AM
Unknown Object (File)
Tue, Mar 31, 12:05 PM
Unknown Object (File)
Tue, Mar 31, 12:25 AM

Details

Summary

If we reassemble a packet we modify the IP header (to set the length and
remove the fragment offset information), but we failed to update the
checksum. On certain setups (mostly where we did not re-fragment again
afterwards) this could lead to us sending out packets with incorrect
checksums.

PR: 255432
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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