HomeFreeBSD

pf: ensure mbufs are long enough before we copy out IP(v6) headers

Description

pf: ensure mbufs are long enough before we copy out IP(v6) headers

This isn't likely to be an issue on real hardware (as Ethernet has a
minimal packet length of 64 bytes), but can cause panics with short
packets on if_epair.

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

Details

Provenance
kpAuthored on Jun 24 2022, 7:41 AM
Parents
rG6f16d78c0da6: pf: add missing maximum length check for DIOCADDETHRULE
Branches
Unknown
Tags
Unknown