HomeFreeBSD

pfctl: fix out-of-bounds access

Description

pfctl: fix out-of-bounds access

If pfctl is called with "pfctl -a ''" we read outside of the anchoropt
buffer. Check that the buffer is sufficiently long to avoid that.

Maintain the existing (and desired, because it's used as such in
/etc/periodic/security/520.pfdenied) behaviour of treating "-a ''" as a
request for the root anchor (or no anchor specified).

PR: 264128
Reviewed by: kp

Details

Provenance
jrtc27Authored on May 22 2022, 8:31 AM
kpCommitted on May 22 2022, 8:31 AM
Parents
rGd94358e29d1e: rpc.tlsservd: Update the man page for the -C option
Branches
Unknown
Tags
Unknown