Page MenuHomeFreeBSD

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

Authored by cy on Thu, Jan 8, 8:59 PM.
Tags
None
Referenced Files
F141973907: D54607.diff
Wed, Jan 14, 9:41 AM
F141959438: D54607.diff
Wed, Jan 14, 4:37 AM
Unknown Object (File)
Mon, Jan 12, 10:02 AM
Unknown Object (File)
Fri, Jan 9, 1:58 PM
Unknown Object (File)
Fri, Jan 9, 1:58 PM
Unknown Object (File)
Fri, Jan 9, 11:19 AM
Unknown Object (File)
Fri, Jan 9, 7:43 AM
Unknown Object (File)
Fri, Jan 9, 7:36 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 69735
Build 66618: arc lint + arc unit