Page MenuHomeFreeBSD

netinet6: perform out-of-bounds check for lo0 multicast statitics
ClosedPublic

Authored by melifaro on Jul 4 2022, 8:03 PM.
Tags
None
Referenced Files
F163271379: D35715.id107780.diff
Tue, Jul 21, 3:17 PM
Unknown Object (File)
Mon, Jul 20, 11:51 AM
Unknown Object (File)
Tue, Jul 7, 5:18 PM
Unknown Object (File)
Sat, Jul 4, 8:13 PM
Unknown Object (File)
Fri, Jun 26, 11:57 AM
Unknown Object (File)
Mon, Jun 22, 12:30 AM
Unknown Object (File)
Jun 8 2026, 4:56 PM
Unknown Object (File)
May 18 2026, 12:00 PM
Subscribers

Details

Summary

Currently, some per-mbuf multicast statistic is stored in per-interface ip6stat.ip6s_m2m[] array of size 32 (IP6S_M2MMAX).
Check that loopback ifindex falls within 0.. IP6S_M2MMAX-1 range to avoid silent data corruption.
the latter cat happen with large number of VNETs.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable