HomeFreeBSD

pf: fix use-after-free

Description

pf: fix use-after-free

If we fragment the packet in pf_route() the first transmitted packet
will free the pf_mtag we have stored in pf_pdesc (pd). Ensure we
update that pointer for every packet to avoid using a freed pointer in
pf_dummynet_route().

Reported by: CI KASAN, markj
MFC after: 1 week

Details

Provenance
kpAuthored on Mar 23 2024, 4:02 PM
Parents
rG75d15e893b14: netpfil tests: disable ICMPv6 rate limiting in the test jail
Branches
Unknown
Tags
Unknown