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)
Sat, Mar 21, 7:49 PM
Unknown Object (File)
Sat, Mar 14, 12:49 AM
Unknown Object (File)
Feb 23 2026, 2:52 PM
Unknown Object (File)
Feb 18 2026, 3:26 AM
Unknown Object (File)
Feb 14 2026, 11:56 PM
Unknown Object (File)
Feb 8 2026, 10:29 AM
Unknown Object (File)
Feb 8 2026, 4:08 AM
Unknown Object (File)
Jan 30 2026, 4:55 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