Page MenuHomeFreeBSD

pf: Fix IP checksum on reassembly
ClosedPublic

Authored by kp on Apr 28 2021, 12:58 PM.
Tags
None
Referenced Files
F150430020: D30026.id.diff
Wed, Apr 1, 4:27 AM
F150356010: D30026.id88313.diff
Tue, Mar 31, 12:05 PM
Unknown Object (File)
Tue, Mar 31, 12:25 AM
Unknown Object (File)
Fri, Mar 27, 12:56 PM
Unknown Object (File)
Thu, Mar 26, 1:48 PM
Unknown Object (File)
Tue, Mar 24, 1:59 AM
Unknown Object (File)
Sat, Mar 21, 11:47 PM
Unknown Object (File)
Thu, Mar 19, 7:37 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38906
Build 35795: arc lint + arc unit