Page MenuHomeFreeBSD

bpf: Fix the write filter
ClosedPublic

Authored by markj on Oct 19 2021, 4:36 PM.
Tags
None
Referenced Files
F157150023: D32561.diff
Mon, May 18, 7:20 PM
Unknown Object (File)
Wed, May 13, 1:55 PM
Unknown Object (File)
Wed, May 13, 1:34 AM
Unknown Object (File)
Wed, May 13, 1:33 AM
Unknown Object (File)
Wed, May 13, 1:15 AM
Unknown Object (File)
Wed, Apr 29, 10:05 PM
Unknown Object (File)
Mon, Apr 27, 7:13 PM
Unknown Object (File)
Mon, Apr 27, 7:59 AM
Subscribers

Details

Summary

A BPF descriptor only has an associated interface descriptor once it is
attached to an interface, e.g., with BIOCSETIF. Avoid dereferencing a
NULL pointer in filt_bpfwrite() if the BPF descriptor is not attached.

Fixes: ded77e0237a8 ("Allow the BPF to be select for write.")
Reported by: syzbot+ae45d5166afe15a5a21d@syzkaller.appspotmail.com

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable