[Bug 288958] netstat -ia missing multicast addresses on some interfaces

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 19 Aug 2025 13:44:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288958

            Bug ID: 288958
           Summary: netstat -ia missing multicast addresses on some
                    interfaces
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: nreilly@qnx.com

"netstat -ia" is missing multicast addresses on some interfaces. These
addresses are shown correctly in "ifmcstat".

The bug is in netstat/if.c function next_ifma(), it does a strcmp() on
sdl->sdl_data but the interface name may not be NULL terminated. This should be
changed to a strncmp() with length sdl->sdl_nlen

-- 
You are receiving this mail because:
You are the assignee for the bug.