CVSROOT: /cvs Module name: src Changes by: sas...@cvs.openbsd.org 2021/12/15 19:01:59
Modified files: sys/net : pf_lb.c Log message: fix zero division found by syzkaller. The sanity checks in pf(4) ioctls are not powerful enough to detect invalid port ranges (or even invalid rules). syzkaller does not use pfctl(8), it uses ioctl(2) to pass some random chunk of memory as a rule to pf(4). Fix adds explicit check for 0 divider to pf_get_transaddr(). It should make syzkaller happy without disturbing anyone else. OK gnezdo@ Reported-by: syzbot+d1f00da48fa717e17...@syzkaller.appspotmail.com