Page MenuHomeFreeBSD

ipfilter: Make sure fr_sifpidx does not point outside of fr_names
AbandonedPublic

Authored by cy on Oct 22 2025, 11:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 18, 3:42 AM
Unknown Object (File)
Wed, Nov 12, 10:17 PM
Unknown Object (File)
Nov 1 2025, 2:42 AM
Unknown Object (File)
Oct 31 2025, 11:18 PM
Unknown Object (File)
Oct 26 2025, 10:40 AM
Unknown Object (File)
Oct 26 2025, 10:40 AM
Unknown Object (File)
Oct 26 2025, 10:37 AM
Unknown Object (File)
Oct 26 2025, 10:21 AM

Details

Reviewers
emaste
markj
Summary

This can result in an OOB read; passed to ipf_resolvenic() and other
code.

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

Diff Detail

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

Event Timeline

cy requested review of this revision.Oct 22 2025, 11:30 PM

After testing this patch, it needs more work.

Move the test to frrequest() (on input).

It makes no sense to do this test in isolation. This test and D53276 require fp->fr_namelen not to exceed LIFNAMSIZ. The entire issue will be fixed by D53276 instead of splitting the fix into two.