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)
Oct 3 2024, 2:14 PM
Unknown Object (File)
Oct 3 2024, 8:44 AM
Unknown Object (File)
Oct 1 2024, 7:25 AM
Unknown Object (File)
Sep 28 2024, 3:12 PM
Unknown Object (File)
Sep 23 2024, 10:17 AM
Unknown Object (File)
Sep 23 2024, 3:16 AM
Unknown Object (File)
Sep 19 2024, 1:46 AM
Unknown Object (File)
Sep 6 2024, 9:44 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