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)
Mon, Feb 23, 2:52 PM
Unknown Object (File)
Wed, Feb 18, 3:26 AM
Unknown Object (File)
Sat, Feb 14, 11:56 PM
Unknown Object (File)
Sun, Feb 8, 10:29 AM
Unknown Object (File)
Sun, Feb 8, 4:08 AM
Unknown Object (File)
Jan 30 2026, 4:55 PM
Unknown Object (File)
Jan 1 2026, 2:34 PM
Unknown Object (File)
Dec 26 2025, 2:27 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