Page MenuHomeFreeBSD

ipfilter: Interface name must not extend beyond end of buffer
Needs ReviewPublic

Authored by cy on Jan 8 2026, 8:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 19, 5:51 PM
Unknown Object (File)
Thu, Mar 19, 8:00 AM
Unknown Object (File)
Thu, Mar 12, 7:58 AM
Unknown Object (File)
Fri, Mar 6, 12:34 PM
Unknown Object (File)
Feb 23 2026, 10:24 AM
Unknown Object (File)
Feb 12 2026, 8:52 PM
Unknown Object (File)
Feb 8 2026, 11:20 PM
Unknown Object (File)
Jan 26 2026, 10:59 AM

Details

Summary

sifpidx (an interface name) cannot extend beyond the end of the
fr_names buffer.
We do the validation for fr_sifpidx here because it is a union that
contains an offset only when fr_sifpidx points to an interface name,
an offset into fr_names. The union is an offset into fr_names in this
case only.

Note that sifpidx is only used in ipf_sync() which implments ipf -y.

Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com>
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69736
Build 66619: arc lint + arc unit