phylib: fix potential use-after-free (CVE-2022-48754) | HOL Guard CVE