Page MenuHomeFreeBSD

ipfilter: Avoid out of bounds read in ip_state
Needs ReviewPublic

Authored by cy on Wed, Oct 22, 11:31 PM.

Details

Reviewers
emaste
markj
Summary

Avoid out of bounds read due to uninitialized index in ip_state.c.
This plugs a kernel memory leak and possible DoS resolving NIC names.

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 68036
Build 64919: arc lint + arc unit

Event Timeline

cy requested review of this revision.Wed, Oct 22, 11:31 PM

Use strnlen() instead of strlen().

sys/netpfil/ipfilter/netinet/ip_state.c
945

This looks like it's supposed to check fr_names instead.