Page MenuHomeFreeBSD

bpf: Fix the write filter
ClosedPublic

Authored by markj on Oct 19 2021, 4:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 4, 8:26 AM
Unknown Object (File)
Mon, Aug 3, 1:36 AM
Unknown Object (File)
Mon, Jul 27, 11:54 PM
Unknown Object (File)
Fri, Jul 24, 6:16 PM
Unknown Object (File)
Wed, Jul 22, 9:43 PM
Unknown Object (File)
Tue, Jul 21, 1:00 AM
Unknown Object (File)
Sat, Jul 18, 9:04 AM
Unknown Object (File)
Jul 4 2026, 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42255
Build 39143: arc lint + arc unit