Page MenuHomeFreeBSD

bpf: Fix the write filter
ClosedPublic

Authored by markj on Oct 19 2021, 4:36 PM.
Tags
None
Referenced Files
F144434937: D32561.id97481.diff
Sun, Feb 8, 10:29 AM
Unknown Object (File)
Sun, Feb 8, 4:08 AM
Unknown Object (File)
Fri, Jan 30, 4:55 PM
Unknown Object (File)
Jan 1 2026, 2:34 PM
Unknown Object (File)
Dec 26 2025, 2:27 AM
Unknown Object (File)
Dec 15 2025, 2:05 PM
Unknown Object (File)
Nov 30 2025, 12:27 PM
Unknown Object (File)
Nov 20 2025, 11:45 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