Page MenuHomeFreeBSD

bpf: Fix the write filter
ClosedPublic

Authored by markj on Oct 19 2021, 4:36 PM.
Tags
None
Referenced Files
F95949202: D32561.diff
Mon, Sep 23, 3:16 AM
Unknown Object (File)
Thu, Sep 19, 1:46 AM
Unknown Object (File)
Fri, Sep 6, 9:44 AM
Unknown Object (File)
Wed, Sep 4, 12:53 PM
Unknown Object (File)
Wed, Aug 28, 10:23 AM
Unknown Object (File)
Aug 23 2024, 7:14 AM
Unknown Object (File)
Aug 17 2024, 8:00 AM
Unknown Object (File)
Jul 20 2024, 7:05 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