HomeFreeBSD

Fix use-after-free bugs in pfsync(4)

Description

Fix use-after-free bugs in pfsync(4)

Use after free happens for state that is deleted. The reference
count is what prevents the state from being freed. When the
state is dequeued, the reference count is dropped and the memory
freed. We can't dereference the next pointer or re-queue the
state.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D8671

Details

Committed
marcelDec 2 2016, 6:15 AM
Differential Revision
D8671: Fix use-after-free bugs in pfsync(4)
Parents
rS309393: Use memset(3) instead of bzero(3).
Branches
Unknown
Tags
Unknown