net: fix out-of-bounds access in ops_init (CVE-2024-36883) | HOL Guard CVE