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)
Wed, Mar 19, 9:50 PM
Unknown Object (File)
Mar 5 2025, 11:32 AM
Unknown Object (File)
Feb 21 2025, 2:22 PM
Unknown Object (File)
Feb 9 2025, 9:17 PM
Unknown Object (File)
Feb 4 2025, 2:31 PM
Unknown Object (File)
Jan 27 2025, 12:14 PM
Unknown Object (File)
Jan 27 2025, 12:13 PM
Unknown Object (File)
Jan 26 2025, 11:51 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