loop: Fix use-after-free issues (CVE-2023-53111) | HOL Guard CVE