CVE-2024-26898 aoe: fix the potential use-after-free problem in aoecmd_cfg_pkts