Page MenuHomeFreeBSD

bpf: Fix the write filter
ClosedPublic

Authored by markj on Oct 19 2021, 4:36 PM.
Tags
None
Referenced Files
F134644926: D32561.id97481.diff
Mon, Nov 3, 8:01 PM
Unknown Object (File)
Sun, Nov 2, 11:20 AM
Unknown Object (File)
Tue, Oct 28, 6:21 PM
Unknown Object (File)
Tue, Oct 28, 6:03 AM
Unknown Object (File)
Sun, Oct 26, 9:24 PM
Unknown Object (File)
Sun, Oct 26, 4:38 PM
Unknown Object (File)
Fri, Oct 17, 12:19 PM
Unknown Object (File)
Fri, Oct 17, 12:19 PM
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