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
Unknown Object (File)
Sat, Apr 6, 6:58 PM
Unknown Object (File)
Feb 29 2024, 5:12 AM
Unknown Object (File)
Dec 22 2023, 11:01 PM
Unknown Object (File)
Dec 12 2023, 1:20 AM
Unknown Object (File)
Oct 28 2023, 4:43 AM
Unknown Object (File)
Sep 25 2023, 7:49 PM
Unknown Object (File)
Sep 4 2023, 2:42 PM
Unknown Object (File)
Aug 21 2023, 9:12 AM
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